Hackster will be offline on Monday, June 15 from 5pm to 7pm PDT to perform some scheduled maintenance.
Nick Koumaris
Published © CC BY-NC

Arduino Easy Weather Station With BME280 Sensor

Dear friends welcome to another Arduino project tutorial! In this tutorial we are going to take a first look at the new BME280 sensor, a ...

BeginnerFull instructions provided1 hour39,993
Arduino Easy Weather Station With BME280 Sensor

Things used in this project

Hardware components

Arduino Mega
×1
BME280 I2C
×1
Standard LCD - 16x2 White on Blue
Adafruit Standard LCD - 16x2 White on Blue
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

Code snippet #2

Plain text
void setup(void) {  lcd.begin(16, 2);
  lcd.print("Reading sensors");   bool status;
    
    // default settings
    status = bme.begin(0x76);  //The I2C address of the sensor I use is 0x76    if (!status) {
        Serial.println("Could not find a valid BME280 sensor, check wiring!");
        while (1);
    }
}

Code snippet #3

Plain text
delay(2000); getPressure();
 getHumidity();
 getTemperature();
 
 lcd.clear(); 
 //Printing Temperature
 String temperatureString = String(temperature,1);
 lcd.print("T:"); 
 lcd.print(temperatureString);
 lcd.print((char)223);
 lcd.print("C ");

Github

https://github.com/adafruit/Adafruit_BME280_Library

Github

https://github.com/adafruit/Adafruit_Sensor

Credits

Nick Koumaris
15 projects • 317 followers
My name is Nick Koumaris and I am a software engineer from Sparta, Greece. I love building projects and share them with the world!

Comments