Introduction: Arduino Uno DHT11 LCD Weather Station DIY
This is DYI on how to make your Weather Station using Arduino Uno, DHT11 temperature and humidity sensor, LCD DFRobot 2x16 screen with keypad. Usually you can buy Arduino, DHT11 and LCD separately and since every device hs it's own libranry and example code I have not found code where DHT11 and LCD would be connected. Togeather with PS we have changed code so it shows temperature and humidity on lcd screen. It required some code work to join two examples into one. During the work itself - we decided to go with new code. Enjoy below as it works really well.
Step 1: Before You Start
Assumptions:
1. You have necessary tools to solder three wires to LCD shield.Deliverables (from me):
1. Screenshot where solder three DHT11 pins to.2. Code of Arduino Station (example, used by me)Instructions:
1. Download necessary libraries for DHT11 and LCD DFRobot (all links below in References section)2. Connect LCD shield to ARDUINO by pushing pins into sockets. Ensure all are in and stable.3. Time for some soldering.Step 2: Soldering - Info and How to Connect "wires" ;)
4. Ensure that soldering was clean and wires are not "touching" each other or any part on board. All should be stable and well connected. If not - loose cable can cause serious damage to whole device.
5.Once above is done and you have doublechecked it - connect Arduino UNO to USB, load code (see atached code in next step or e-mail me if something is wrong) and send it to device. (You do not know how to connect USB to your PC/Mac ? - go to Arduino webpage for tutorial. Links in next step).
6. Wait until it boots and you should see Arduino Station message as a welcome screen. After 10seconds you should see some blinking info (this was done mainly for LCD test purpose and you can change it if needed)
7. Once blinking is done - you should see Temp: and Humid: info WITH REAL DATA. There is no delay for REAL DATA. It should appear immediately with Temp and Humid info. Note that instead of Humidity you can get "Wilgotnosc" as this is PL version of code.
8. It refreshes every 60 seconds giving you info "Refresh" before new data is displayed.
9. I've used some LEGO to cover it and double-side tape to stick it to wall next to my ipad charger (works well :)
Step 3: Congratulations - It's All Done :)
That's it :) Comments and Questions here - crackopl@gmail.com Major changes to code, suggestions etc. - use above to share please :) See links below for more info and useful hints.
Code is attached.
Few links below:
http://arduino.cc/en/Main/arduinoBoardUnohttp://www.dfrobot.com/index.php?route=product/product&product_id=51http://dx.com/p/arduino-digital-temperature-humidity-sensor-module-121350
16 Comments
7 years ago
Enter the code here, please
it Doesn't open with me
7 years ago
Brando5641 - basics. read how to add libraries
7 years ago
C:\Users\Brandon\AppData\Local\Temp\arduino_f9cc66e4bc034c9a8dd3420704a87b1c\sketch_jan31c.ino:2:17: fatal error: dht.h: No such file or directory
#include <dht.h>
^
compilation terminated.
exit status 1
Error compiling.
8 years ago on Step 3
Hi, I built one like this but no lego's I used an old leather pouch from a PDA to hold 3 18650 batteries put the arduino in a plastic case built for that purpose and glued my DHT33 to the top of the leather case. Now I have a portable accurate system we take along in our camper to keep up on temps.
Reply 7 years ago
hi jerry how did you get the dht33 to work i cand seam to get the dht22 to work i get 2c temp showing but not moving up or down
8 years ago on Step 2
8 years ago on Introduction
I made it, but the code works only if I change "DHT dht;" into "dht DHT;" !
Thank you!
8 years ago
Good point. Thanks :)
8 years ago
Good point. Thanks :)
8 years ago on Introduction
The only suggestion I have is to spend a couple more bucks and get a DHT22 or better sensor with higher precision. The DHT11 is going to give you readings with a resolution of 1C.
8 years ago on Introduction
Hi all
sorry for delay.
I will share the code (will appear in links).
stay tuned and Happy New Year :)
8 years ago on Introduction
hello the link is down can u send me the code
9 years ago on Introduction
Hi, could you please share the code again?
The link provided does not seem to be working.
Thanks in advance,
Reply 9 years ago on Introduction
Hi,
fixed. Check again please.
10 years ago on Introduction
Case looks great ... buy the kid an ice cream !! He-He
Reply 10 years ago on Introduction
and more Legos (to steal later).