Experiment 5 Using OLED to Display Temperature and Humidity

Share for us

Description: In this routine, we will let OLED dynamically display temperature and humidity values read from DHT11 with dynamic graphical effects.

Components:

SunFounder Uno R3 * 1

0.96 Inch OLED * 1

DHT11 * 1

USB Cable * 1

Jumper Wires

Steps:

First, connect the circuit

                          SunFounder Uno                DHT11               OLED

                          D4 ------------------------------- S

                          5V ------------------------------- +

                          GND ------------------------------ - --------------------- GND

                          3.3V ------------------------------------------------------- VCC

                          SCL -------------------------------------------------------- SCL

                          SDA ------------------------------------------------------- SDA

Second, program (please go to our official website www.sunfounder.com to download the example code by clicking LEARN -> Get Tutorials)

Third, compile the program

Fourth, burn the program into SunFounder Uno R3 board

After all the above steps, you will see temperature and humidity data dynamically display on the OLED, the physical diagram is as shown in figure 25: