Saturday, October 22, 2016

Arduino BMP180 Barometric Pressure & Temp Sensor with I2C OLED Display

Arduino BMP180 Barometric Pressure & Temp Sensor with I2C OLED Display

This video show how to build BMP180 Barometric Pressure & Temp Sensor with I2C OLED Display and Arduino Uno. A 128X64 i2c Oled ssd1306 display is used to display the barometeric Pressure, temperature and altitude. I used an Arduino UNO 3.3V clone. BMP180 sensors are cheap and easily available on ebay, bangood, sparkfun etc.
Library used U8Glib: Installed directly from the Library Manager in Arduino IDE. Select version 1.18.0. For Some reason Version 1.19.0 update gave crc error. The OLED display VCC is connected to 3.3V of Arduino. Gnd to Gnd of Arduino. SDA of OLED to SDA or Arduino, SCL of OLED to SCL of Arduino.




Arduino Code: Copy to a file and save with .ino extension.



Follow me on Twitter : https://twitter.com/embedded_user
Other Videos:
Subscribe to my channel

1 comment:

  1. Unfortunatelly the display library does not work for me (I do have the 1.19 version). Examples from this library give me an error:

    C:\Users\vincent\Documents\Arduino\libraries\U8glib\examples\HelloWorld\HelloWorld.ino: In function 'void draw()':

    HelloWorld:146: error: 'u8g' was not declared in this scope

    u8g.setFont(u8g_font_unifont);

    ^

    C:\Users\vincent\Documents\Arduino\libraries\U8glib\examples\HelloWorld\HelloWorld.ino: In function 'void setup()':

    HelloWorld:159: error: 'u8g' was not declared in this scope

    if ( u8g.getMode() == U8G_MODE_R3G3B2 ) {

    ^

    C:\Users\vincent\Documents\Arduino\libraries\U8glib\examples\HelloWorld\HelloWorld.ino: In function 'void loop()':

    HelloWorld:175: error: 'u8g' was not declared in this scope

    u8g.firstPage();

    ^
    exit status 1
    'u8g' was not declared in this scope

    ReplyDelete