loading

I found this nice two color 128x64 pixel OLED display on eBay and thought it would make a perfect display for a simple temperature and humidity meter.

I've used Alex Chu's code from instructables How to use OLED display and DHT library for DHT-21 (AM2301) temperature and humidity sensor (this library can be used with other DHT sensors too).

I've added a BIG 32 pixel monospace font for the thermometer (only numbers and few other characters are implemented). Note that only the top part of the display is yellow and the bottom part is always blue, so you can't change color of any pixel.

Total cost of hardware for Arduino Nano, DHT temperature and humidity sensor and blue/yellow 128x64 OLED display is not much more than 10 dollars on eBay.

Step 1: Connect the OLED Display and DHT21 Sensor to Arduino

Connect the OLED module to Arduino

OLED     Arduino
----------------
SDA      D9
SCL      D10
RST      D13
DC       D11
VCC      5V
GND      GND

Connect the DHT21 (AM2301) temperature and humidity sensor wires to Arduino

DHT21    Arduino
----------------
yellow   D5
red      5V
black    GND

Step 2: Upload the Code to Arduino

Upload the code to the Arduino.

<p>please copy DHTlib files to arduino/library/DHTlib directory from <br><a href="https://github.com/RobTillaart/Arduino/tree/master/libraries/DHTlib" rel="nofollow">https://github.com/RobTillaart/Arduino/tree/master...<br></a>and try again. You can also try examples under DHTlib.</p>
<p>Arduino: 1.6.3 (Windows 7), Board: &quot;Arduino Uno&quot;</p><p>sketch_mar16a.ino: In function 'dht read_dht()':</p><p>sketch_mar16a.ino:572:17: error: 'class dht' has no member named 'read21'</p><p>sketch_mar16a.ino:576:10: error: 'DHTLIB_OK' was not declared in this scope</p><p>sketch_mar16a.ino:579:10: error: 'DHTLIB_ERROR_CHECKSUM' was not declared in this scope</p><p>sketch_mar16a.ino:582:10: error: 'DHTLIB_ERROR_TIMEOUT' was not declared in this scope</p><p>Error compiling.</p><p> This report would have more information with</p><p> &quot;Show verbose output during compilation&quot;</p><p> enabled in File &gt; Preferences.</p>
<p>This is great! I'd love to have more info on how you made this! </p>

About This Instructable

10,660views

50favorites

More by kariaa:Network time syncronized clock for Arduino OLED temperature and humidity meter 
Add instructable to: