This is a nice little project that shows the Time, Date, Temperature and Humidity onto a OLED Module. Would work good as a little bed side clock so you know how chilly it is before you get up.
If you like this then please DONATE!
Step 1: Step 1: Parts You Need
You will need the following parts to construct this project;
- Arduino Uno or similar
- DHT 22 Temp and Humid Sensor (Like this one)
- RTC Module
- 5VDC Regulated Power Source
- On-Off Switch
- 4 LEDs or similar (For warnings)
- Jiffy Box or similar to house project
Step 2: Step 2: Constructing the Hardware - Electronics
To make the Hardware for this project follow these steps:
1) Solder the RTC module, DHT22 and 4 LEDs onto the OLED Shield
2) Solder RTC module to appropriate pins then solder the DHT 22 wires so that power goes to power GND to GND and data to pin 9
3) Solder the LED wires so the cathode goes to GND and one of each connect to power (3V3 works good for this) and pin 5, 6, 8.
4) If used solder the power supply to the VIN pin and GND. With +5V going through the switch.
Step 3: Step 3: Constructing the Harware - Box
To construct the housing for this project (optional, but will look a lot neater) follow the following;
1) On one side of the box dill holes to fit the DHT22 sensor.
2) On the opposite side dill a hole to fit the on-off switch and power lead.
3) On the lid to the box (front) drill out a spot for the 4 LEDs
3) On the lid of the box (front) also, drill the space for the OLED module
4) Tidy up any rough edges
Step 4: Step 4: Uploading Software to Arduino
To upload the software for the arduino you will need the following libraries installed:
- DHT from freetronics
- RTClib from adafruit
- FTOLED from freetronics
To set the time on the RTC download the RTC_Update sketch and upload. Then download the OLED_TTHD_RV3 sketch and upload. You can download these files from here. This is the master program. Modify to suit. The sketch does use most of the room on the arduino.
Step 5: Step 5: Finishing It Off
Now that the electronics have been constructed plug the OLED Shield into the Arduino. Mount the DHT module in its slot along with the switch and power lead. Plug in the OLED module and mount in place. Connect lid and tidy up as necessary.
Step 6: Beware of Burn in on the OLED
Beware of Burn in on the OLED
If you expect the OLED128 to be left on for a long time (a day or longer), beware of burn-in.
The phosphours in the display will wear out unevenly, and you can be left with a pale “ghost” of the long-term image caused by burn-in.
Step 7: Step 5: Thanks for Reading
Thanks for reading. Please comment or follow on twitter at @jed_Hodson
Also feel free to change the code to suit your needs. Just please include that the original sketch was created by Jed Hodson (me)
Please DONATE to help the work I do!