Sunday, October 23, 2016

How to build Humidity and temperature meter using DHT11 and OLED Display

Arduino Light Meter with photo resistor and OLED display

https://www.youtube.com/watch?v=g-rcEd_2I-w
This video show how to build a humidity meter using a DHT11 humidity sensor, I2C OLED display and Arduino Uno.

 A 128X64 I2C Oled ssd1306 display is used to display the humidity, temperature and heat Index.

I used an Arduino UNO 3.3V clone which uses Atmega328P. DHT11 humidity sensors are cheap and easily available on Ebay, Bangood, Sparkfun etc.

DHT22 humidity sensor can be used in place of DHT11 for more accuracy.

Library used U8Glib: Installed directly from the Library Manager in Arduino IDE.

Connect the humidity sensor pin 2 to D2 pin of Arduino. Also connect an 10K resistor between D2 and 3.3V pin of Arduino. 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.

Humidity Meter code: Download/copy in the box below and save with .ino extension.
https://gist.github.com/embeddeduser/e7adc347397f1b3d1a9ae7e2598b4dc3

Arduino Light Meter with photo resistor and OLED display

Arduino Light Meter with photo resistor and OLED display


This video show how to make an Arduino Light Meter using an Photoresistor or Light depended resistor(LDR). A 128X64 i2c Oled ssd1306 display is used to display the light intensity in percentage numeral and bar. I used an Arduino UNO 3.3V clone which uses Atmega328P.
Photo resistors are cheap and easily available on Ebay, Bangood, Sparkfun etc. Library used U8Glib: Installed directly from the Library Manager in Arduino IDE. Connect the photoresistor or LDR between 3.3V and A0 analog input pin of Arduino. Also connect an 12K or 10K resistor between A0 and ground pin of Arduino. 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.



Light Meter code: Arduino Code download/copy the code in the box below to a file and save with .ino extension.
https://gist.github.com/embeddeduser/feab7144aceeabb6a9aa4e5862b92c75




Follow me on Twitter : https://twitter.com/embedded_user
 
Previous Videos: 
How to connect 128X64 i2c Oled display to Arduino:
Nokia 5110 graphical lcd Demo using Arduino
Controlling RGB LEDS with Arduino and TLC5940

Subscribe to my channel
https://www.youtube.com/channel/UCqJym4fsMaT1CZ2i6GxWURQ

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