Arduino Project: Temperature and Humidity monitor Tutorial with DHT11 (or DHT22) sensor LCD shield.

  Рет қаралды 214,707

educ8s.tv

educ8s.tv

Күн бұрын

Пікірлер: 127
@decem_unosquattro9538
@decem_unosquattro9538 2 жыл бұрын
Ah very good explanation! I've done this project years ago still I like to build it again with DHT22.
@tbmtech5651
@tbmtech5651 9 жыл бұрын
This is great!!! I made it work with an 20X4 LCD screen with an I2C 2 pin connection and an Arduino UNO. the only thing I had to modify was to add this lcd.setBacklight(HIGH); right at the begining of the void loop command. Thank you!
@Educ8s
@Educ8s 9 жыл бұрын
TBM tech You are welcome!
@TriHakniPutra
@TriHakniPutra 10 жыл бұрын
you right man, after i searching and reading a blogs, measuring humidity was quiet hard. and try comparing with dht22 or another sensors, the different was so far!
@B3enthusiast2008
@B3enthusiast2008 10 жыл бұрын
Hey at last, Found something that works, just like it says on the tin, Great Tutorial, Thank you.
@Educ8s
@Educ8s 10 жыл бұрын
Arduino Noob You are welcome!
@alexgoogle2777
@alexgoogle2777 9 жыл бұрын
works, only sometimes says that you can not read the data from the sensor "Failed to read from DHT sensor!". The resistor is set to 4.7 - did not help. Used DHT-22
@TraceWaters
@TraceWaters 9 жыл бұрын
I got this working, but have a bad sensor. Will this code work for the dht22 as well? I figured if I was getting another I might as well get the one with better range.
@AAI30
@AAI30 10 жыл бұрын
OMG thanks man. You really helped me in my arduino projects.
@osipov180
@osipov180 2 жыл бұрын
Hello, thank You very match! Can I use Arduino Uno for this shield?
@vedgarge5604
@vedgarge5604 2 жыл бұрын
Hi. Thanks for the code. However, NAN is getting displayed on lcd. Pl can you tell the solution to solve this problem.?
@olafsmallspruce3730
@olafsmallspruce3730 10 жыл бұрын
I have a Arduino Uno and don't know which pins to connect on the lcd module. A connection diagram wolud be nice at least in the other tutorials.
@zeczec8733
@zeczec8733 9 жыл бұрын
hi, does the lcd is enough to display rain, and dht data? and how is the code? im new to arduino. hope u can guide me. tq.
@fpt380
@fpt380 6 жыл бұрын
Hello . Thank you for your nice explanation. I have a question: Are the sensors like LM35 and DH11-22 accurate and reliable? Are it need to calibrate? thank you
@gauravbhatt6258
@gauravbhatt6258 4 жыл бұрын
@edu8s.tv i tried this code on r3 esp8266. I am getting error : DHT does not name a type. Can you help?
@mariotoplek4511
@mariotoplek4511 9 жыл бұрын
hello! can this be used for controll temperature and humidity using a relay board? how to set up code that you can adjust parameters via buttons on LCD board? i planing to build one for my greenhouse. thanks in advance. regards, Mario
@ayeshaa96
@ayeshaa96 8 жыл бұрын
can you help me about a temperature controller using atmega16 and DHT11 through keypad and lcd?
@JugglingDan23
@JugglingDan23 5 жыл бұрын
I got the code to compile without any issues, but I am getting the readings as T: NAN C H: NAN. I know that NAN stands for Not a Number, but I don't know how to resolve the issue. Could this be indicative of a bad sensor? What else could cause this?
@Educ8s
@Educ8s 5 жыл бұрын
Check your connections again, or try a new sensor.
@mehditarabi4709
@mehditarabi4709 8 жыл бұрын
hi i have a question . i need to implement Temperature and humidity monitor, on atmega2560 with C language. do you think this source code will help me?
@RandomTorok
@RandomTorok Жыл бұрын
I am trying to get this working on an Esp32 wroom. The ESP has built in wifi and Bluetooth so I can send the data gathered to another computer.
@gunturnoorfadhly924
@gunturnoorfadhly924 9 жыл бұрын
I have a project using dht22 sensor and transmit uses NRF24L01 transmitter module. Do you have reference about NRF24L01 for 2 way communication?
@Educ8s
@Educ8s 9 жыл бұрын
+guntur noor fadhly I am going to make a video about that soon,.
@jasminrecupero8533
@jasminrecupero8533 8 жыл бұрын
is LCD TFT Display applicable for the arduino ? do they differ in coding?
@asharma8788
@asharma8788 9 жыл бұрын
hey bro! ur videos r awesome..... can u pls tell how to use a separate humidity,temperature and pressure sensor??
@mimilives
@mimilives 8 жыл бұрын
Is this compatible with a raspberry pi 3?
@udith-pz4tv
@udith-pz4tv 6 жыл бұрын
Outdoor DHT sensor doesnot read minus values at winter. Please ,how can we fix the temperature from -50 to +50
@smug_cat1
@smug_cat1 8 жыл бұрын
please make a new one with the new lib and a dht22
@aniketghule27
@aniketghule27 6 жыл бұрын
is it necessary to calibrate the sensor or it is auto calibrated??
@Educ8s
@Educ8s 6 жыл бұрын
I think they calibrate them at the factory
@roystervi
@roystervi 8 жыл бұрын
Question....The dhtt22 working great so somewhat...they are about 10 to 20ft away and I tested voltage. the voltage on the far one is 4.9v. one problem I am having is that sometimes the the temp drop from 70 degrees to 51.1 degrees. is there a way to correct this problem?
@agentsmith3577
@agentsmith3577 8 жыл бұрын
Is the sensor on it's own board like in the vid?
@dztronic1616
@dztronic1616 9 жыл бұрын
Thank you very much Man for your sharing..it helped me a lot. that was a good job.
@karlosknjura
@karlosknjura 9 жыл бұрын
Hello, I have the code up and running but how can I change Celsius to Fahrenheit? It would be good help, thanks.
@harsheelsingh4866
@harsheelsingh4866 6 жыл бұрын
Carlos M Canjura Mayes you can use a math formula to change the final ouput variable
@prateek6502-y4p
@prateek6502-y4p 8 жыл бұрын
thnx. i m getting output. but temperature is not varying very hardly!!!
@sreekumarannair.k7007
@sreekumarannair.k7007 5 жыл бұрын
My name is reghu I like your video too
@choudev5082
@choudev5082 8 жыл бұрын
how diplay data of this sensor on web page using shield ethernet ?
@nabeelshah4906
@nabeelshah4906 7 жыл бұрын
can we use arduino uno r3 for this and can it connect with dht11
@julianblow4739
@julianblow4739 7 жыл бұрын
Yes and yes, Just make sure to wire your module according to how the schematic tells you to. Make sure ground IS ground and 5v/VCC is actually 5v/VCC
@lezbriddon
@lezbriddon 9 жыл бұрын
i think when i playeed with these last year reading the data raw iand not using libraries that the sensor works in 1/3 of a degree C so returned like 10.0, 10.3, 10.6, 11.0 etc
@lezbriddon
@lezbriddon 9 жыл бұрын
I usually avoid the libraries for being slow
@juanbriones1760
@juanbriones1760 8 жыл бұрын
WORKS EXCELLENT ..THANKS BUT IF I WANT IN FARENHEIT..
@ashutoshjoshi2841
@ashutoshjoshi2841 10 жыл бұрын
Good information. I am wondering how we can add 2 library (One for Display and another one for Temp Sensor) in Arduino UNO IDE? Thank you..
@gulhermepereira249
@gulhermepereira249 10 жыл бұрын
Probably you have the LCD library already (after installing the IDE, which is my case) and you just have to #include it. Just check ...Arduino/Libraries/LiquidCrystal. If you have it you're good to go, otherwise download it and create a folder called LiquidCrystal in that location (...Arduino/Libraries) and paste it there.
@ashutoshjoshi2841
@ashutoshjoshi2841 10 жыл бұрын
Hi Gulherme, Thank you for the answer. Here are the details about my project. I am using Arduino Uno with Nokia 5110 LCD Display and DS18B20 Thermal Sensor Probe. If i connect them separately then it works file. I would like to pull the temp reading on Nokia LCD 5110 Display which is not possible because i can not add (merge) both the library (5110 Display & One wire temperature sensor ) in Arduino IDE. Any suggestion. Thank you.
@hannafebriandini93
@hannafebriandini93 10 жыл бұрын
if I use a sensor dht22, and arduino uno . whether the same way ? thanks for your videos its really helpful :)
@Educ8s
@Educ8s 10 жыл бұрын
Hanna Febriandini Yes it is the same way. You only have to change the code a little.
@dalewhitmore143
@dalewhitmore143 9 жыл бұрын
Hello. I copyed your code exactly and i get a list of errors. Im using uno with input from sensor on D3 with srew shield.
@phai00100
@phai00100 9 жыл бұрын
need control temp use this set and modifly code??
@armylemah
@armylemah 8 жыл бұрын
this is the error i get when verify... can anyone help me? In file included from C:\Program Files (x86)\Arduino\libraries\DHT\DHT_U.cpp:22:0: C:\Program Files (x86)\Arduino\libraries\DHT\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory #include ^ compilation terminated. exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560. \
@daletappy9327
@daletappy9327 7 жыл бұрын
Arduino: 1.8.2 (Windows 7), Board: "Arduino/Genuino Uno" C:\Users\Tapalla\Desktop\AlarmClock2\AlarmClock2.ino:3:17: fatal error: DHT.h: No such file or directory #include "DHT.h" ^ compilation terminated. exit status 1 Error compiling for board Arduino/Genuino Uno. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. Hope you could also help me ;(
@mattdathew2794
@mattdathew2794 10 жыл бұрын
cool, he measures power too
@rajwadia414
@rajwadia414 8 жыл бұрын
can i use the same code for arduino uno r3 (except the pin mode. i will change it.)
@smug_cat1
@smug_cat1 8 жыл бұрын
Raj Wadia no u cant get the dht.h lib any more only the DHT.h
@AAI30
@AAI30 10 жыл бұрын
I copied you code but a warning comes at the beginning. # include "DHT.h" it say that there is no such thing. Please help.
@Educ8s
@Educ8s 9 жыл бұрын
AAI30 Please, check that you have installed the DHT library correctly.
@MoeGreensRightEye
@MoeGreensRightEye 9 жыл бұрын
How many degrees are there?
@asherpa4u
@asherpa4u 8 жыл бұрын
There are as many degrees up as you have nickles for. On the way down though, they get rarer and rarer until they transform entirely into turtles. From there, it's turtles all the way down.
@mustafakenany1310
@mustafakenany1310 10 жыл бұрын
nice projects but you when convert float to string why we use number 0 and 2 and 5 and 1 in forumal
@Educ8s
@Educ8s 10 жыл бұрын
mustafa kenany I explain: dtostrf(temperature, 5, 1, tempF); the 5 is the max digits. Temperature can be -10.1 for example which has 5 digits. The 1 is how many digits after the dot we want. We want only one digit for precision. For humidity, it is simpler. We can't have negative values, we can have values for 00 to 99, so we only need 2 digits and we don't care about float numbers, so we put 0 for the digits after the dot. We only need to print integers.
@abhijitleihaorambam3763
@abhijitleihaorambam3763 7 жыл бұрын
can i use with arduino uno
@jj6321
@jj6321 7 жыл бұрын
yes
@crocker5731
@crocker5731 6 жыл бұрын
HOW TO MAKE a RobotDyn LCD Keypad Shield 1602 16x2 Display Module for Arduino Uno - Blue IT WORK WHIT a wemos d1?
@asrinhalim347
@asrinhalim347 9 жыл бұрын
do you have the circuit? plzzz need it
@210jrd
@210jrd 10 жыл бұрын
Looks great is there a download for the code??
@Educ8s
@Educ8s 10 жыл бұрын
Yes of course the is. In the description of the video. Everything is posted there. Thanks!
@210jrd
@210jrd 10 жыл бұрын
Many thx, great instructable
@Educ8s
@Educ8s 10 жыл бұрын
210jrd Thank you!
@deijacyaraujomiguel9069
@deijacyaraujomiguel9069 9 жыл бұрын
Amigo,você vende um esquema de de um termostato que controle a temperatura e umidade com temporizador.
@jfeely
@jfeely 8 жыл бұрын
i am using a arduino uno with lcd screen and the same sensor as in video but i donot have same inputs for sensor on arduino can anyone help?
@adrianoragazzo1321
@adrianoragazzo1321 7 жыл бұрын
On the video description it state : "In this video we are building a Temperature and humidity monitor, using an Arduino Mega." Arduino Mega = more pins . Peoples should get used to read imho.
@TKomoski
@TKomoski 10 жыл бұрын
Just watched was cool, just got one trying to see what it can do. Will subscribe to your chanel.
@Educ8s
@Educ8s 10 жыл бұрын
It is easy. Try it, and please come back if you need any help, or want to share your success!
@AndraSerban95
@AndraSerban95 7 жыл бұрын
Hello. When I Try to download the code from the website, I am having this problem: The requested URL /Arduino/WeatherStation/code.zip was not found on this server.
@Educ8s
@Educ8s 7 жыл бұрын
Sorry for that, I will fix it soon.
@AndraSerban95
@AndraSerban95 7 жыл бұрын
educ8s.tv thank you!
@Educ8s
@Educ8s 7 жыл бұрын
The problem is now fixed! Cheers!
@travelvlog7910
@travelvlog7910 10 жыл бұрын
please Tell me one thing that is this project compatable for arduino Uno??? i have a ardunio Uno , in this microcontroller pins are less compared to the Arduino mega ,so i am getting confused as how to use this Arduino Uno...
@Educ8s
@Educ8s 9 жыл бұрын
udayan pandey Yes it is compatible with Arduino Uno.
@batticha462
@batticha462 6 жыл бұрын
DHT dht(DHTPIN, DHTTYPE); ----> 'DHT' does not name a type ?
@jakelumpy86
@jakelumpy86 10 жыл бұрын
i keep having problems with this. it keeps telling me that dht was not declared in this scope. I even downloaded the library.
@Educ8s
@Educ8s 10 жыл бұрын
It seems from what you say, that the library is not set up correctly. Try to close Arduino IDE and reload it. If it is still not working, have you unzipped the library in the correct folder?
@jakelumpy86
@jakelumpy86 10 жыл бұрын
i know what i did. i added the library after i wrote the code so it didnt properly put the library in the code
@Educ8s
@Educ8s 10 жыл бұрын
Jake Lampada So now it works?
@jakelumpy86
@jakelumpy86 10 жыл бұрын
yes. it works great. I even added to the code to convert the celsius to fahrenheit.
@TraceWaters
@TraceWaters 9 жыл бұрын
Jake Lampada Where can you find that code?
@LibrarianSlayer2033
@LibrarianSlayer2033 9 жыл бұрын
Can someone show me how to/write me a code for the temperature in F rather than C
@christophersheffield9574
@christophersheffield9574 9 жыл бұрын
+jeremy williams °C x 9/5 + 32 = °F
@LibrarianSlayer2033
@LibrarianSlayer2033 9 жыл бұрын
+Christopher Sheffield thanks, but I really have no clue what I'm doing so I don't know where to put that and get the screen to read out the temp in F
@Educ8s
@Educ8s 9 жыл бұрын
+jeremy williams I will prepare the code for the F in a few days. I will include it in the file that you can download in the description. Stay tuned.
@LibrarianSlayer2033
@LibrarianSlayer2033 9 жыл бұрын
+educ8s.tv thank you so much I greatly appreciate you taking the time to help me
@LibrarianSlayer2033
@LibrarianSlayer2033 9 жыл бұрын
+educ8s.tv Sorry to bother you again, but the code still reads off in C even though it should be in F. I dont know what to do.
@edgarddiaz9193
@edgarddiaz9193 6 жыл бұрын
Good video
@CleanmasterCyprus
@CleanmasterCyprus 10 жыл бұрын
θέλω το Power supplyνα είναι 24 V DC (3.3-6V DC) και το Output signal να είναι analogue 0-10 V ή 4-20 mA (digital signal via single-bus) έχεις καμιά ιδέα; ευχαριστώ Θεοτόκης από Κύπρο .
@Educ8s
@Educ8s 10 жыл бұрын
Δυστυχώς Θεοτόκη δεν μπορώ να σε βοηθήσω σε αυτό.
@CleanmasterCyprus
@CleanmasterCyprus 10 жыл бұрын
Σε ευχαριστώ πολύ.
@RickBergs
@RickBergs 9 жыл бұрын
Need to send out a warning about the DHT11 relative humidity-sensor. Its measurement values are very inaccurate. When humidity goes down below ~45% it fails badly. Check this graph that I posted on my Twitter account: twitter.com/Diodens/status/640440428173639680 Note that you need a +13 offset for the DHT11 to even measure somewhat correct at any humidity.
@Educ8s
@Educ8s 9 жыл бұрын
+Diodens Thank you, very helpful!
@RickBergs
@RickBergs 9 жыл бұрын
+Educ8s.com Hi! You should check my tests of the DHT11 vs DHT22 here: plus.google.com/+RickardBergstr%C3%B6m/posts/VxCPt5cv3b4 Seems to be way much better than the DHT11.
@akroutsamo
@akroutsamo 9 жыл бұрын
+educ8s.tv this is a helpful tutorial but could you add a fan and a relay to activate heating element and use the Lcd along with the buttons to set and control the temperature it will be active station or maybe with TFT touch screen ;) thanks (y)
@Educ8s
@Educ8s 9 жыл бұрын
+Akrout Osama Hello, using a relay is not difficult. Also I am planning on using project with a touch screen soon!
@akroutsamo
@akroutsamo 9 жыл бұрын
+educ8s.tv Hi; yes but setting the temp value and store it in the Eeprom this i found it difficult . using a touch screen with GUI it id gonna be awesome ... i can't wait (y) ;) thanks
@mohamedakkafaraj728
@mohamedakkafaraj728 8 жыл бұрын
i have this solution but with microcontroller PIC 16F887
@omarcortes6589
@omarcortes6589 9 жыл бұрын
excelente vídeo saludos
@JerryEricsson
@JerryEricsson 9 жыл бұрын
Thanks a million, I have been trying to get mine working for awhile now with some but limited results. Been playing with a DHT11 but got my DHT22 in the mail today, that combined with your stuff and a bit of my Americanization of it, I now have mine working giving me the Temp in F instead of the dreaded C that we in American look upon with fear and loathing. Here is my sketch, well your sketch but with a bit of modification: #include // DHT code from: // Example testing sketch for various DHT humidity/temperature sensors // Written by ladyada, public domain #include "DHT.h" #define DHTPIN 13 // what pin we're connected to // Uncomment whatever type you're using! // #define DHTTYPE DHT11 // DHT 11 #define DHTTYPE DHT22 // DHT 22 (AM2302) //#define DHTTYPE DHT21 // DHT 21 (AM2301) DHT dht(DHTPIN, DHTTYPE); // LCD // LCD RS=3, EN=4, DS4=5, DS5=6, DS6=7, DS7=8 #include LiquidCrystal lcd( 8,9,4,5,6,7); void setup() { Serial.begin(9600); // set up the LCD's number of columns and rows: lcd.begin(16,2); dht.begin(); } void loop() { // Reading temperature or humidity takes about 250 milliseconds! // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor) int h = dht.readHumidity(); int t = dht.readTemperature(); // set the cursor to (0,0): lcd.setCursor(0, 0); // print from 0 to 9: lcd.print("Temp: "); lcd.print(t*9/5+32); lcd.print("F"); // set the cursor to (16,1): lcd.setCursor(0,1); lcd.print("Humidity: "); lcd.print(h); lcd.print("%"); delay(200); }
@smug_cat1
@smug_cat1 8 жыл бұрын
omg i cant thank u enough i was sitting the whole night in front of my pc and had the dht.h all most wanted to burn it down xD ps. welcome from germany
@JerryEricsson
@JerryEricsson 8 жыл бұрын
Glad it helped you out, my Grandfather came here from Germany back in the 1910's and began farming in North Dakota.
@errorserver3000
@errorserver3000 7 жыл бұрын
Jerry Ericsson Fahrenheit is shit
@titouanb2871
@titouanb2871 7 жыл бұрын
Why my lcd show me NAN
@Educ8s
@Educ8s 7 жыл бұрын
Then there is something wrong with the connection with the sensor, check your connections again
@CleanmasterCyprus
@CleanmasterCyprus 10 жыл бұрын
iparxi kapio video gia na me efkolini parakalo;
@TriHakniPutra
@TriHakniPutra 10 жыл бұрын
cool.
@udith-pz4tv
@udith-pz4tv 8 жыл бұрын
Goog evening, I download, and upload ( educ8.com/arduino/weatheratst, ) but not working. come error message. please, help me
@ensaraltuntas193
@ensaraltuntas193 7 жыл бұрын
Arduino:1.8.3 (Windows 8.1), Kart:"Arduino/Genuino Uno" In file included from C:\Program Files (x86)\Arduino\libraries\DHT\DHT_U.cpp:22:0: C:\Program Files (x86)\Arduino\libraries\DHT\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory #include ^ compilation terminated. "DHT.h" için birden fazla library bulundu Kullanılıyor: C:\Program Files (x86)\Arduino\libraries\DHT Kullanılmıyor: C:\Users\EyyüpEnsar\Documents\Arduino\libraries\DHT-sensor-library-master exit status 1 Error compiling for board Arduino/Genuino Uno. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. ???????
@ensaraltuntas193
@ensaraltuntas193 7 жыл бұрын
i have dht21
@lindamuvic8110
@lindamuvic8110 8 жыл бұрын
Your fucking setup melted my sensor
@Educ8s
@Educ8s 8 жыл бұрын
You probably did something wrong!
@julianblow4739
@julianblow4739 7 жыл бұрын
Make sure to double check that YOUR work looks correct to YOUR module and don't follow along blindly. for example, MY module reads (from left to right, looking at the front) GROUND, DATA, VCC
@youtube4fun_894
@youtube4fun_894 7 жыл бұрын
dude are you sick your voice is not alive or expressive
@MrC1066
@MrC1066 7 жыл бұрын
Bernard, Could you give the tutor a break, he is speaking to you in his second language, I take it your Greek is faultless? I joke but you need really to take the lesson not the delivery seriously. Sorry to be so preachy but it helps to keep a neutral mind and look at the subject matter and usefulness, Best wishes to you and good luck with your learning.
DHT11 and DHT22 Sensor Using with Arduino
7:20
Maker 101
Рет қаралды 77 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Tutorial - Multi-sensor setups for ESP32 & Home Assistant
7:20
Byte My Bits
Рет қаралды 112 М.
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 2,6 МЛН
Arduino Garden Controller - Automatic Watering and Data Logging
9:13
Practical Engineering
Рет қаралды 3,1 МЛН
Using LCD Displays with Arduino
46:23
DroneBot Workshop
Рет қаралды 1,7 МЛН
ESP32 DHT Web Server Project
5:53
DIY TechRush
Рет қаралды 144 М.
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,4 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН