I built an Arduino Weather Station. It uses a DHT 11 (it will also work with DHT21 DHT22).
I explain everything in this video. So it might be easier for you if you watch it!
First SketchThe first sketch displays the sensor values to the Serial Monitor.
Sensor:
- pin 1 - 5
- pin 2 - 5v
- pin 3 - GND
In this sketch we are going to display the values onto an LCD. I used an I²C LCD for this project.
Sensor:
- pin 1 - 5
- pin 2 - 5v
- pin 3 - GND
LCD:
- SDA - A4
- SCL - A5
- GND - GND
- VCC - 5V
The final sketch also displays a realtime clock to the LCD. It uses a DS1302 module. For more information about this clock you can check out the Arduino clock I made in a previous project.
Sensor:
- pin 1 - 5
- pin 2 - 5v
- pin 3 - GND
DS1302:
- RST - 2
- DATA - 3
- CLK - 4
LCD:
- SDA - A4
- SCL - A5
- GND - GND
- VCC - 5V
The code can be found by the CODE part of this project. Libraries are in a map. You have to first unzip the map. Then install them.
First sketch
Upload the sketch: TEST. Libraries needed: Adafruit_Sensor-master, DHT-sensor-library-master .
Second sketch
Upload the sketch: LCD
Libraries needed: NewliquidCrystal, Adafruit_Sensor-master, DHT-sensor-library-master
Third sketch
Upload the sketch: LCDCLOCK
Libraries needed: DS1302, NewliquidCrystal, Adafruit_Sensor-master, DHT-sensor-library-master
SubscribeIf you like these kinds of videos you might also want to see all my upcoming work. Then you can subscribe to my channel right here: http://bit.ly/TechMakerYouTube
Comments