TIMOTHY MWALA
Published © GPL3+

Build your own Barometer

Revolutionize your smart home with a cloud-free barometer! The project utilizes BMP180 sensor for accurate Temperature&pressure monitoring.

BeginnerFull instructions provided1 hour179
Build your own Barometer

Things used in this project

Hardware components

96Boards Tripler Adapter
×1
Bosch BMP 180
×1
Seeed Studio Grove - OLED Display 0.66" (SSD1306)- IIC - 3.3V/5V
Seeed Studio Grove - OLED Display 0.66" (SSD1306)- IIC - 3.3V/5V
×1
Wemos D1 Mini
Espressif Wemos D1 Mini
×1

Story

Read more

Custom parts and enclosures

Components

Schematics

bmp180_d1-mini_0_66-oled_unconnected_Ic7stlO6Qs.png

Code

Untitled file

C/C++
#include <Wire.h>
#include <Adafruit_BMP085.h>
#include <SFE_MicroOLED.h> 

#define PIN_RESET 255 
#define DC_JUMPER 0 

MicroOLED oled(PIN_RESET, DC_JUMPER); // Example I2C declaration
Adafruit_BMP085 bmp;

void setup(){
Serial.begin(9600);
  
if (!bmp.begin()) {
Serial.println("Could not find a valid BMP180 sensor, check wiring!");
while (1) {}
}
  
oled.begin();
oled.clear(ALL); // Clear the display's memory (gets rid of artifacts)
oled.display();
}

void loop()
{
// Wait a few seconds between measurements.
delay(2000);
  
oled.clear(PAGE);
oled.setFontType(0); 
  
oled.setCursor(1, 3);
oled.print("Pressure = ");
oled.setCursor(1, 12);
oled.print(bmp.readPressure());
oled.print(" Pa");
  
oled.setCursor(1, 21);
oled.print("Temp =");
oled.setCursor(1, 30);
oled.print(bmp.readTemperature());
oled.print(" *C ");
  
oled.display();
  
delay(2000);
  
//2nd page of readings
oled.clear(PAGE);
oled.setFontType(0); 
  
oled.setCursor(1, 3);
oled.print("Altitude = ");
oled.setCursor(1, 12);
oled.print(bmp.readAltitude());
oled.print(" m");
  
oled.setCursor(1, 21);
oled.print("Sea level=");
oled.setCursor(1, 30);
oled.print(bmp.readSealevelPressure());
oled.print(" Pa");
  
oled.display();
}

Barometer

You need no coding skills! Connect your device to your computer and install the setup and you're good to have a Smarthome. https://github.com/MwalaTimothy/D1_Mini/tree/main/BMP180_D1-Mini_0.66-OLED

Credits

TIMOTHY MWALA
29 projects • 17 followers
I am an Embedded engineer who like prototyping
Contact
Thanks to Chipglobe .

Comments

Please log in or sign up to comment.