Time, Date, Temperature and Humidity on OLED

TitleTHTDOLED

About

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. This project uses the Freetronics OLED Display and DHT22 module from Freetronics (with a few modifications to make it fit). It also includes a DS1307 RTC Module for time and 4 SMD LEDs for status. Put it in a case with a old NOKIA phone charger and switch and combine with Arduino and my OLED Shield and you get this a Temperature, Humidity, Time & Date on OLED Display.

Advertisment


You Will Need:

• Arduino UNO or compatible board
Freetronics OLED Display Module
OLED Shield for Arduino (Or you could make your own)
• DHT 22 Temp and Humid Sensor (Like this one)
• RTC Module
• 5 Volt DC Regulated Power Source
• On-Off Switch (Optional but recommended)
• 4 LEDs or similar (For warnings/status)
• Jiffy Box or similar to house project

Construction:

Part 1 – Electronics:

OLEDELECTRONICS
Step 1: Solder the RTC module, DHT22 and 4 LEDs onto the OLED Shield
Step 2: Solder RTC module to appropriate pins (Power, GND and I2C – refer to module datasheet) then solder the DHT 22 wires so that power goes to power, GND to GND and data to pin 9
Step 3: Solder the LED wires so the cathode goes to GND, one of the LEDs (The Power On one) connects to power (3V3 works good for this) and the others to pins 5, 6, 8
Step 4: If used solder the power supply to the VIN pin and GND. With +5V going through the switch

Part 2 – Enclosure:

Step 1: On one side of the box dill holes to fit the DHT22 sensor
Step 2: On the opposite side dill a hole to fit the on-off switch and power lead
Step 3: On the lid to the box (front) drill out a spot for the 4 LEDs
Step 4: On the lid of the box (front) also, drill the space for the OLED module
Step 5: Tidy up any rough edges

Part 3 – Loading Software:

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 the downloads page. This is the master program. Modify to suit. The sketch does use most of the available space on the Arduino. You may like to change the colours and fonts to suit your requirements.
downloads page

Part 4 – Finishing 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.

Advertisment


Notes:

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 phosphors 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.

Be sure to comment if you liked it!

Leave a Reply

Your email address will not be published. Required fields are marked *