Humidity and Temperature Detector &Timer
by billchang1282 in Circuits > Arduino
84 Views, 0 Favorites, 0 Comments
Humidity and Temperature Detector &Timer
This product is a tool used for detecting the Humidity and temperature of the current environment and shows it on the LCD panel. This product was the extension of my last project from this website.
Supplies
DHT-22 sensor
Breadboard x 2
Arduino UNO / Leonardo
LCD panel with I2C Module
Speaker
Dupont Wire x 30
Power bank or 4 AA Batteries
Battery Case for 4 AA Batteries
USB Transmission Line
shoebox
cutter
button x 5
Step 1: Circuits
Reminder: you can use the battery box too by connecting the positive charge on the battery box to the positive charge where you connect other components on the breadboard and connecting the negative charge on the battery box to the negative charge where you connect other components on the breadboard. Or you can also simply connect your transmission line to a power bank!
Step 2: Source Code
The third step of making this project is to install libraries to Arduino and source codes.
- First, you have to download the LiquidCrystal_I2C library and the DHT sensor library.
- Press the sketch bottom on the upper left corner.
- You will see "Include Library" and click it
- You will see the first one said "manage libraries" and click it
- Type "LiquidCrystal" Install the first one made by adfruit.
- Type "DHT sensor library"Install the one made by adfruit.
- Now you install two libraries.
Here is the source code
After downloading the source code, you need to upload it to your Arduino UNO.
- You take a USB transmission line connected to the Arduino UNO and your computer.
- Choose Arduino UNO and upload.
Step 3: Decoration
After upload, the source code and your Arduino and components can work smoothly, you need to make a cover for your product.
You have to find a shoebox.
- You measure the width and length of your LCD panel and DHT 22 sensor(only the screen part on LCD and the white sensor part of the DHT 22 sensor)
- draw the measured area on the side of the box and cut it
- You can stick your components in the box and embed the LCD sensor and DHT sensor on the hole you create.
- You can also create a huge hole for the button(I just embed my button on the breadboard so I extend the wire on the breadboard so I can just press the button without creating a hole)
You can start to decorate your box!!!