Arduino DHT22 (AM2302)
Arduino DHT22 (AM2302)
Arduino DHT22 (AM2302)
Arduino
Audio
Datasheets
DIY
Gadgets
Hobby
Lights
Measure
Power supply
Radio
Service
Solar
Theory
Various
Alarms
Useful
You can use the DHT22 (or AM2302) humidity/temperature sensor and the
Arduino UNO board to read data and print it out to the serial monitor or to display it
on an LCD. In my case I chose the serial monitor version because is faster and
cheaper, but you may want to look at other articles, including this one, if you want to
use an LCD.
In the sketch you can see that I use the Adafruit DHT library that is very simple to use
and if you follow the code line by line your project will have zero errors.
You may want to change maxHum and maxTemp values to the ones you desire the
fan to start. You may also use a relay instead of the fan if you need to connect some
other equipment that requires higher voltages. Also do not forget to connect a 10K
resistor between Vcc and Data pin on DHT22 sensor.
ST-50/56
rkcinst-usa.com
1.
Manar
I like it could you please add other projects using other kind of sensors thanks in
advance.
2.
irshadshark
3.
electron
4.
anthony
Hi i have everything setp the way you have it in the diagrams but my fan wont
respond to my dht22 readings i have tried changing the stats in the script but all
i can get is a reading from the dht22
5.
Troy
Cool article, I have mine with the LCD shield though. I was just after some
pointers
@anthony: Perhaps try with an LED, or use the onboard LED to test with. for
example. I just tried it with PIN13 (UNO’s built in LED), and the LED illuminated
fine. Change the code to accept a lower max temperature, then re-upload it.
change it to….
6.
Tim
7.
Anup kumar
Leave a Comment
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
Check this checkbox to get notifications of followup comments via e-mail. You
can also subscribe without commenting.