DHT22 & 0.96 OLED Display

Introduction: DHT22 & 0.96 OLED Display

I know there are lots of Instructables showing how to use a DHT22 and a 0.96 OLED display but I thought I'd show how I made mine!

Step 1: Required Components

For this Instructable I'm using the following easily available parts:

Arduino Uno or compatible

DHT22 sensor

0.96 OLED display

Breadboard and jumper wires.

Step 2: Connecting It All Together

Connect the parts as follows:

DHT22 pin1 to Arduino 5v

DHT22 pin2 to Arduino pin2

DHT22 pin3 to Arduino Ground (GND)

OLED GND to Arduino Ground (GND)

OLED VDD to Arduino 5v

OLED SCK to Arduino D5

OLED SDA to Arduino D4

Step 3: The Code

This is the code I used to get the readings from the DHT22 and display them on the 0.96 OLED.

I used the U8G2 display library as I wanted a bit more control over the text size and fonts used.

2 People Made This Project!

Recommendations

  • Make it Glow Contest

    Make it Glow Contest
  • First Time Author Contest

    First Time Author Contest
  • PCB Challenge

    PCB Challenge

3 Discussions

0
attickus89
attickus89

2 years ago

Seriously, THANK you for sharing. This Instructable really helped me understand some of the coding aspects i wasn't getting through my thick skull.
One thing i am still having trouble figuring out though, is how to convert the Temp to Fahrenheit...?
Any tips or clues would be really appreciated. Thanks again.

0
DIY Hacks and How Tos

Great first Instructable. Thanks for sharing with the community.