Это видео недоступно.
Сожалеем об этом.
Arduino Tutorial 50: How to Connect and Use the DHT11 Temperature and Humidity Sensor
HTML-код
- Опубликовано: 17 авг 2024
- You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:
/ paulmcwhorter
In this lesson we show you how to measure temperature and pressure using the DHT11 sensor. The needed library does not come with the arduino download, but the video shows you how to intall the needed library.
You can get the kit I am using for this series at the following link:
amzn.to/2I7N4Ek
This is a heads up that in lesson 51, you will be able to have a much more practical and elegant solution if you use an arduino nano instead of the uno, which we have been using. Go ahead and get ready for lesson 51 by picking up a nano here:
amzn.to/2WXTC2M
As projects get more complicated in these lessons, you guys really need to get a set of breadboard jumper wires which allow you to make neater connections on the board in your projects. You can pick a pack of these wires up here:
amzn.to/2XrY5Kq
In addition as projects get more complicated, you are going to need a bigger breadboard. This is a reasonable one here:
amzn.to/2IY4d3M
Check out all the great Free educational resources at our WEB site HERE:
toptechboy.com...
[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. This means if you visit the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.]
#Arduino
PS -- I'm 78, retired Chemistry instructor, and decided to learn electronic basics as a Covid relief. Never too old to learn new things. From one instruction to another, I find your presentations very well thought out. Thank you !
How is it coming along?
I love your proverb never too old to learn new things and I would like to use it inspire other people who count ages though it seems to be a number. Thank you.
Another great video! Two comments.
1. An alternate way to install the DHT11 library is to use the Arduino IDE. (I'm using version 1.8.10 of the IDE.) From Tools->Manage libraries... enter "dht" in the "Filter your search" box; after about 1 second, you will see some results (I see "DHT sensor library by Adafruit Version 1.3.8" as the second entry). If you put your mouse in the area for an entry, an Install button appears. Clicking it installs the library. Done! Note: the same version, 1.3.8, appears at the top of the list when doing the search you describe in the video.
2. At 17:00 you noticed that "readHumidity" did not highlight correctly. This is due to something not being right in the "keywords.txt" file that is in the DHT library folder. I found the following problem and fix that describes what is probably wrong:
github.com/adafruit/DHT-sensor-library/commit/a1169d20b4f287810c9c237859a856bcbc0b6ea2
I suspect that if you use a hex editor to look at the readHumidity line in your keywords.txt file, you will see that there is not a tab (0x09) character between readHumidity and KEYWORD2. See the keywords.txt snippets below.
Note: In my installed 1.3.8 keywords.txt file, tabs are where they should be. Entering readHumidity() (and readTemperature()) in a sketch produces highlights as expected.
I just downloaded the "1.3.4" version of the DHT library (supposedly the same one you did when you created the video), unzipped it, and looked at the keywords.txt file line for "readHumidity". It does have 0x09 between readHumidity and KEYWORD2. However, when I look at the timestamp for the keywords.txt file, I see "30 April, 2019", which is after the release date of 2019-02-18, so this file may not be the one you were using! Looks like Adafruit slipped in changes after the release date.
Here's a snippet of what I see in the 1.3.4 keywords.txt, both in ASCII and in hex. All instances of lowercase 'b' in the ASCII snippet represent (what appear to be) spaces. In the hex snippet, the "spaces" are seen to be tabs (0x09), as they should be. The hex output shows 16 bytes of output per line; the hexadecimal numbers are the byte values--4 groups of 4 bytes; the text
at the end of each line is the corresponding ASCII; periods represent unprintable characters. The periods on the first line of the ASCII snippet skip over the beginning of the text line up to the point it matches the corresponding hex output.
***** begin ASCII snippet *****
..............exbbbbbbbbKEYWORD2
readHumiditybbbbKEYWORD2
readbbbbKEYWORD2
***** end ASCII snippet *****
***** begin corresponding hex snippet *****
6578094B 4559574F 5244320A 72656164 ex.KEYWORD2.read
48756D69 64697479 094B4559 574F5244 Humidity.KEYWORD
320A7265 6164094B 4559574F 5244320A 2.read.KEYWORD2.
0A .
***** end corresponding hex snippet *****
I'm guessing that you have a space (0x20) between Humidity and KEYWORD2.
While I thoroughly enjoyed the video and working on the sketch for Lesson 50, I think I had more fun looking into the keyword issue!
Paul, I am a 67 year old carpenter. I just recently got turned on to the exciting world of electronics, arduinos, robots and all the rest. I regret having missed all this earlier in my life.
But I just wanted to tell you how much I appreciate your tutorials. They are excellent in every regard. Everything is top drawer. Your personal teaching style, the graphics, the sound and lighting, the topics covered and the pace all make me keep coming back for more. Well done man! Keep up the good work!
Hey Socorro, I'm also a carpenter, 60 years old. You should also try Paul's Fusion360 tutorials, it's about 3d printing, the software is free for personal use. I ended up buying a 3d printer last Christmas and it aligns perfectly with our skills. It's amazing how many replacement parts I've made. There are loads of jigs to be made too, shop vac adapters, etc.
Back then it was uni or apprenticeships. Tech school or high school. A whole new world now
I’m only 52, and I had a few Radio Shack electronic kits as an 11 year old. Radios, FR transmitters, lights and noises. This whole arduino/programming is amazing!
"Hey" brother right along with you do it at 72! Retired Carpenter/Project manager 50 years studied electronics in High School, to dumb for Math and C++ but enjoy following along and creating, making this stuff work keeps the mind active (not so much for the body).
This is so cool, I am a 51 year old Carpenter and just started learning electronics. It's really what I wanted to do in life, I even took electronics classes in high school, but college was not an option for me :( But now, with the internet and wonderful people like Paul, you only need time and the will to learn :) The Arduino seems to be a great place to start in learning electronics, but I also recommend eBooks.
the voice of Paul is music to my ears :)
For library installation you can just go to sketch>include libraries > add ZIP. Library without extracting the zip file .
And by the way thanks for your tutorials Paul ;) keep up the great work.
Thank you so much!
This is the way
Cheers fella.
I got it working first time. Then I changed the LCD to one with Serial input and using a sensor shield to tidy up things. Got it working; BOOM! I really appreciate your willingness to share. With a background in Electrical Engineering and Computer Science, I spent 32 1/2 years in the technical support and technical training area of Toyota Motor Company; most of it training Toyota dealership technicians. I can appreciate all the time and effort that you put into each of these activities. Great job and keep up the good work!
When I saw that the Nano had bluetooth capability, I got really excited for the projects that lay ahead. Thank you for all you do Paul! these projects have really opened my eyes to some of the systems i have been using all my life... eg. the automatic door at the grocery store, the thermostat on the wall, fans... Almost every time I do a project, I can see it's application in the real world. This has been very enjoyable. I plan to keep doing the lessons!
Yea, I have wasted so much money buying a Bluetooth module and a wide chassis for my projects, I thought the nano would be more like a rasb pi, boy was I wrong
Paul, you are an educator and mentor. If I helped half as many people as you have I would be happy. Luckily I did have teachers like you in school. You make learning fun and interesting and I hope you never lose interest in teaching.
Hey Paul! Loving the tutorials, i'm an arduino veteran but stepping back into it after years and this has been a great refresher. PLEASE make sure you update your link on the elegoo kit, it looks like they may have made a new product listing so none of us can support you by following the link. I'd suggest updating it on all your video descriptions so you can get the well deserved referral credit.
I have followed and enjoyed all of your videos in this series so far. I followed your explanation on installing the DHT library and I received an error message "file not found". After some research, I had to also download the ADAfruit_Unified_Sensor zip file as well. Now all is working.
I can’t tell you how much I appreciate your walking through the actual process and the comments that provide further info to orient me!
Hey Paul, thanks for the amazing lessons. I was able to do the assignment from lesson 49. It was easy.
As for this lesson. when i tried uploading the code it gave me com error but after googling i was able to solve the problem. I had to delete the DHT Library folder and download it directly from the Arduino IDE and i also had to install the Adafruit Unified Sensor Library but after doing this everything worked perfectly. I am amazed how simple it is to use this sensor and displaying the readings to the LCD was a piece of cake. Thank you for these amazing lessons!
I tried that but my code is still putting out errors
yeah it wont work but if you delete that folder and then install it from the arduino itself it will work. I think its because it needs other libraries as well to work.
Thanks Alex, I follow your recommendation and it worked.
Paul, you have single-handedly revived my conviction to complete my project. You're a legend, sir.
Excellent!
I came here because my project wasn't working. I looked at the documentation and it's definitely wrong. From the pins on the sensor to the test scheme they provide.
When I did it, it kept saying "can't read from DHT". I followed your tutorial and everything run smoothly.
Thank you for such outstanding tutorials.
May I ask how you got to know the commands you had to use? I'm afraid I'll need that skill when using other sensors or different hardware. I feel really lucky that I had bought the Elegoo kit and coincidentally you use it for your tutorials. I think I won't be that lucky in the future ;)
Hello Mr. Macwhorter, am Raymond from Ghana-west Africa. I started learning Arduino Programming by watching your videos and when my desire and hunger for it increased, I went online to look for books on it and have actually finished learning one of the books. Your videos have been very inspirational and fundamental to my increasing taste for Arduino.
I have watched all your videos on Arduino from start to finish just that, I don't watch it online, I download and practice so you may not see me responding to your "secret world" challenge.
Due to my increasing desire to know more, I have come across some options that may be helpful;
1. You know, for the equations that you derive to help match some group of values with the other, there is a function in Arduino called "map()" and I do think it can be used inplace of the equations.
2. Secondly, for the buzzers, there is also a function called "Tone()" and also "noTone" that can be used to control the buzzer.
So I am humbly suggesting this suggestions so it could be researched to see how helpful it could be in the making of subsequent videos.
Mr. Macwhorter, keep up with the good work you are doing because, you are actually helping someone somewhere indirectly Usher into the world of programming and the technologies that come with it.
I personally want to ask if you would start Arduino video tutorials on wireless devices.
Thank you sir.
Gmail: raymondsenyo92@gmail.com
Contact: +233542924336
Okay, I've done the homework for this lesson. My Arduino kit did not come with the DHT sensor and Nano and so both had to be ordered separately. The LCD came in the Arduino kit came with an I2C module embedded with it and that eliminated the extra wiring needed; however it needed for an extra library to be downloaded and installed. The Nano had some compatibility issues and after some research came to understand that some of these foreign manufactured items needed a separate driver to be downloaded and run. The DHT sensor too required an additional "Adafruit sensor master library" as well as the "DHT sensor library" installed.
I coded the lcd to display "Humidity" and its value in the first screen and after 2 seconds the display clears and shows "Temperature" in the 1st line and the values in Celcius and Farenheit in the 2nd line. Enjoyed the challenge !!!
Got everything to work fairly quickly on this assignment. I discovered the sq() and PI functions which made the formula for the area much easier and more accurate. The rest was just utilizing what I learned in the last tutorials. Easy to learn when you have a great teacher. Thanks for the lessons. I also got the humidity and temperatures to display without any real issues. The biggest problem is fitting everything to the display.
The Arduino IDE will also add/install a zipped library automatically for you via the sketch/include library/Add .zip Library...
Or you can use the library manager.
Thanks for that comment. It helped.
@@johndoudar6395 Thanks for that.
Thanks Chuck
My 9yr old daughter and I walked through this and had a great time watching you. Thanks! I like graphing out the temps.
Thank you for all your dedication and effort in your videos.
I am currently not able to follow along these lecture on a daily basis (for some reasons). 😔
But your constant effort and beautiful teaching is leaving me mesmerized each time i see it and learn something new.
Good day , Sir and I hope with all my heart that you are doing well during these pandemic times.
OMG! I've made it so each time you press the toggle switch the display cycles through Humidity, temp in C or temp in F, display! I'm so pleased with my ageing brain :) Oh, and the library recognition was an absolute sphere-ache, seems a lot has been updated in the last 12 months.
Had to go in and update from the libraries and install the DHT11 from Adruino program. I tried different ways to get it to work but finally got it. Also when I went and started coding all of the names " DHT11, DHT, humidity, readHumidity, and readTemperature all turned orange. It works great and had no problems down loading it.
Thank you Paul for a great lesson.
Just ordered a few nanos, jumper wires and more more breadboards! Let's goooooo!!
Sir, Great video. Just an update. I had got nan output. Trapped output in long variable. Got -2147483648 as output. Finally loaded Files>Examples >DHT sensor library. Uncommented DHT11. Commented DHT22. Compiled & loaded. Got correct output.
Thanks for great videos. Your explanations are excellent. When ever possible, please tell us about arduino board. There are so many videos on internet, but your style is second best to none.
Assignment is completed!
Did it with the recommended wires and bigger breadboard, and it feels and works so much better!
Waiting for my Arduino nano!
Thank you very much for your amazing tutorials!
Elegoo haven't used the normal pin layout on the PCB for the 11. The middle pin on most DHT11 units is data. Just in case someone isn't using the Elegoo kit. Thanks for the tutorials.
Thanks for the heads up, I almost connected the DHT11 as per a datasheet from the internet and remembered your comment. Any idea if I would have released the smoke by reversing the Vcc and data pins?
@@chrisingram7277 probably just fry the sensor... as I did probably... (a new one is on the way) =))
@@legendarycraft5499 Not too hard to fry sensors lol. I always check about ten sites before I plug some stuff in.
Had big issues getting this library installed, until I found a much simpler way. As long as you're connected to the internet, do this:
From the Tools menu in Arduino, select 'Manage Libraries'
In the search box, type DHT, it will search download sites for you
When the results appear, choose the Adafruit DHT Sensor Library and select Install
It will probably warn you that there are dependencies and other libraries are required.
Arduino will download the dependencies for you and install everything.
That's it, worked perfectly, without even leaving Arduino.
Had fun with this project, tried to do it on an ESP8266 Node MCU V3. Got the code to install with a few minor changes, serial monitor is showing the print lines as expected but no readings other than humidity 0.00 and some temp reading I have to fix with the print lines. I used A0 for the sense pin and declared it in the sketch as an int .Temp reads nanC and nanF
Did I mention that I manage to melt the DHT11?
Serves me right for getting distracted by a troublesome piece of code on a previous play. Si I had lots of fun with the more accurate AM2302 sensor.
However I did learn so much more on this lesson than all the previous cut and paste jobs with other peoples codes.
I'd like to know, why the "true" against F?
The Celcius measurement works without any mention of TempF.
Homework Done!
Here's the LCD output:
Humidity: 51.00% (first row)
Temp: 73.94F (Second row)
I will try to use the character map to print the degree symbol that looks like a small circle. But this is fine.
Wayne
Great lesson. My out put was so scrambled it was driving me crazy until I saw it was plugged into pin one but everything going well now. Thanks Paul.
Great lesson, as usual. After this tutorial was made it became NECESSARY to include . All the recent comments report this. I have a highly accurate chemical thermometer. It seems my DHT11 is reading 3°F high. So, I display dTemp which is tempF-3.0.
Hi Paul - LOVED the lesson and the Homework! Goes great with a planned Weather Station build I want to make when I feel I've learned enough.
Hey, Paul! I just built a project using my Arduino and the DHT11 to switch on my garden well pump to sprinkle my fig trees to prevent them from freezing in order to extend the growing season of the trees. I used the 5v relay in the kit to drive another relay that handles the high current load.
Excellent!
Hi Paul,
I've started from lession 1 and now I'm on lession 50. I've learned a lot along the way, especially on coding. You are very easy to follow as a beginner. I plan on finishing these lessons and then jumping over to the raspberry pi pico w. Thanks for taking the time to do what you do. You always wonder if people watch the whole video and do your homework. Well I do watch all the way through and do the homework,however I wonder if you go back and read these comments on these lessons that you posted 3years ago. Today is 10/13/23.
Still had my lcd screen so instead of printing to the monitor i printed the sensor results to the lcd works awesome thanks for your videos they are great.
Excellent ! Very easy to learn from a Teacher like YOU. Waiting for Fingerprint Sensor(R307) and Bluetooth module(HC05) together programming and more surprise. Thank you SIR .
THIS IS AWESOME. I started learning C++ and just wanted to do something other than web development. I'm so excited about how you have made this subject accessible for anyone to understand. I'm so excited to start working on IoT things.
My problem of 20 minutes or so below... RESOLVED! Paul, at a suggestion found on the internet, I plugged the Arduino into a USB port on a powered Hub and it WORKED! I guess the power from the "on board" USB port on my PC didn't have enough juice. Now I can go on with the lesson!
For anyone who struggles with compilation errors while compiling: Try only downlaoding the library via the bib manager under sketch and include the necessary adafruit software in the process.
Otherwise, great video as always!
thank you!
Thank you for walking us through instead of just opening a library example. Now I understand how to use and code for the sensor, instead of copying it. :D
Hey Paul! I just wanted to say your videos are truly amazing. You actually explain how these things work. Thanks for all your time and effort you put in them.
Wow, thanks for the kind words. Hope you continue to enjoy them.
Thanks to all in the community that responded to the error loading the library. Saved me hours of head scratching.
Hi Paul , I now have it all working, I updated ide 1.8.9 to ide 1.8.18 and now it all works. I had alot of problems getting the nano card to work but the update fixed that as well.
Had problems with the recommended library and running on a Mega 2560, loaded a library from different source and works fine (but slightly different output format)
Most excellent!
There are three ways to install a library. Paul explained the manual way.A semi automatic way would be to download the Zip file, go to Sketch and click on Add Zipfile. The easiest way is however to go to Sketch, choose Library Manager and search for DTH11, click on install. Knowing this two days ago would have saved me lots of time...
ruclips.net/video/fB6lbmu-mk0/видео.html
Paul, I use the Tools -> Library Manager and type in DHT11 in the Search box. The Manager will put the folder in libraries folder.
I installed the MCP4725 library for the DAC chip from adafruit.
YOU NEVER DISAPPOINT. THANKS FOR THE HELP
i am Engineer , before you i am zero in Ardunio now I give my self 8/10 thank you and don't Stop........
I installed the DHT sensor library by downloading the zip file, and then in the Arduino IDE menu, I selected Sketch > Include Library > Add .ZIP file. It was a bit simpler than Paul's method.
And to answer Paul's question about #include "DHT.h" vs #include , they will both work fine. The difference is where the code compiler looks first to find the .h file, in the libraries folder or in the user's own code folder. If it doesn't find the .h file in the first folder, it will look in the other one.
There is a lot I need to learn. At the moment I'm just cherry picking to get my bearings.
All the rambling helps, I've been doing it since I was pre-teen, I'm now in my 50's. :)
Thanks Paul, I have coded my arduino by myself so it can controle my solarboiler....thanks to you!
Great I got it working ,thanks for helping us out another one ticked .
At 10:35 Paul says that you have to use Arduino digital pin 2 to connect to the sensor left pin. I used a different pin and it worked fine.
You also need the Adafruit Unified Sensor library found in Arduino library manager.
Another great lesson, missed the "Most Excellent" explanation on how the DHT11 works "under the hood" , between winter and this Covid thing you're keeping me sane (mostly anyway), Thank You.
Hi Paul, I had to delete and reinstall the Library for the DHT11. Otherwise I got an error message regarding the Arduino Board. However, it was a good experience because things often fail and require thinking outside of the box to correct. I learned a great deal by doing so! Great lesson as always and I will pass it to my students!
Haha, I was expecting the homework, so therefore I didnt detach the LCD from previous Tutorial and interestingly enough I started programming with that exact idea in my head much before I reach the end of the episode, so in the end I was ready with my homework, even before you mentioned it :)
Nice work!
i too experienced some issues with loading the library but in the end it worked. great video.
Loving these videos Paul, Thanks again
Glad you like them!
Nm Paul, I read other options and it’s working. Thank you guys. 😊
Present. I really do appreciate all of the work and explanations you do. I feel like I've grown allot watching your videos.
Great to hear!
In order to get the Arduino to accept the DHT11 Sensor via the library I had to add the 'Adafruit Unified Sensor' library." as well as the Library shown by Paul.
you have a new fan here:)thanks for your great-quick lessons!
Welcome aboard!
Dear Paul, I really appreciate your lessons. I am improving fast. I bought your kit and try some other little projects. Actually I am in marketing and communication, and I often have a tainted view from this perspective. I was thinking, if you make a second level class in a bit different way, I think you would get many more viewers,. The objective would be to develop a steady hartware tool to enable the student to use it in own projects and grow on it. My idea is, to start with an interface that we keep throughout the entire class, F.e. lets start with an bigger arduino. Than connect and program basic components, create chapters inside the ide. 1. Serial port. 2. Display and some Leds and switch 3. Real Time clock, 4. Memory Card, 5. esp2866 6, Blynk. - This components accompany us, hartwired to the arduino, throughout the entire class. We build sensors, projects actuators on this achitecture. At the end we can grow complex and more usefull things with arduino instead always starting from scratch, at the end just having one little part in a lowest level possible working. What do you think, Paul?
Homework done ok.
😀
Funny story. I'm using the Sunfounder Elite Explorer kit for Paul's series on the R4 Wifi. I'm ok with programming but a beginner in electronics. When it came to the LCD the one I have has a piece of electronics on the back that prevented me from plugging the LCD in to the breadboard. Should I pull it off then maybe I can plug the rest in?. Fortunately, I did some research instead and found it was an I2C module. What is I2C? So I did some more research and found how to use it and found some libraries to drive it. It works fine and is a lot better than connecting all those wires to the Arduino. So Paul, not only am I learning from you, I'm learning by doing my own research and trying things for myself. Great lectures and I can't wait for the R4 Wifi series to advance.
i am 12 years all your projects worked
Another great video. If you create any beyond #68, perhaps include how you figured out that we need to add these commands. #define Type DHT11 /*declaring a constant*/ DHT HT(sensePin, Type); // as most of us need to understand how you figure that out as well. My guess is that it is in the CD that was sent with the kit. Regardless, great job. Love the videos. We appreciate your hard work.
Thanks again Paul. Truly enjoying. Great community idea
Folks, for those having issues with the DHT.h not loading, you need to install adafruit unified sensor for the DHT.h library to work correctly
Thank you
I finally was able to detach from the computer!!!! I used a pro mini instead of a nano. And all I had to do was connect it to an outlet.
Oh, and unfortunately, I'll have to wait to get the nano for a bit, but I did order the bigger board and the wire connecters. I do plan on getting it and any of the products you endorse, and if I ever need more, I intend to utilize the links that you provided.
yes, if you read the readme file find in the DHT library is says ===> # Dependencies
* [Adafruit Unified Sensor Driver]
you just have to download it ant copy it the same way as the DHT library.
Nice job Mr. McWhorter
Homework finished. Hooked up to a Nano and my LCD is displaying Humidity on row one and Temp toggling between C & F on row 2 every second a half. 😃. Plus hooked up to a battery and fully mobile. Now on to lesson 51 and see how my work compares to yours.
ignore the hate paul you are carrying my Electronics engineering career thank you for what you do for free
Thanks Ylen had the same issue. Thanks again Paul loving the course - this is a better fix than ice cold coffee :-)
that was a struggle. that extra download of adafruit was essential. still a great lesson
Thanks for mentioning adafruit, saved me some moments of frustration. I installed and included the library but still get an error message. Anything else there is to do?
This has been particularly interesting to me because my major reason for getting interested was to built a Freezer monitor after I accidentally unplugged one of mine. Eventually I will want to have (four) of them communicating to something by WiFi but this is an essential first step, for that project. I have used PICs in the past and used Assembly Language for them but I found Python confusing but 'C' I have been using for 40 odd years in various guises and I am comfortable with this interface. I am still accumulating items.
BTW - giving advice of what to get with links is essential. I am following another author who does not and sometime I have to skip back and forth over the Video to catch what he has said and sometimes am not successfull. Thank you.
I had a difficult time loading the library. It started by me not initially installing the Arduino program correctly in the first place. So I have to reload the entire program again, and this time in the Document folder, not the download folder. Since I am using a MAC, Arduino did not know where to find the folder for the DHT unit. It took real hair pulling, but really need to read the fault screens in great detail. I am really surprised that the Arduino has lots of interface communications for goofs like me. But it took me right to the problem by stating where it looks for the files which in my case is deeper than the library. You have to put it in the Arduino, library,Bare minimum folder, then install the DHT files there. Other than that, I really enjoyed the Tutorial. Thank you very much Paul
For the DHT11 sensor if u have 4 pins try connecting the left pin to VCC ,the next pin to DIGITAL PIN 2 and right most pin to GND.
Great video Mr. McWhorter : ) it worked perfectly for me and I always do the homework. Thank you for the lessons even for experienced folks its a good brush up.
Thank you for the information you have provided and for being so helpful and understanding on every peace of information when needed really appreciate it .
Project did not work at first. Googled it. Said via 'Tools', 'Manage Libraries...' find and install 'Adafruit_Unified_Sensor'. Once this was done, project worked like a dream. Thank you.
My question is: What is the point of the 'int setTime=500' line? It was not used anywhere. Should this have been used for the delay instead of then defining a new variable 'int dt=1000'?
Thanks for an excellent set of tutorials. I got the Arduino on 25/12/2020 and I got to tutorial 50 by the 15/01/2021.
Thankyou very much i am looking for this tutorial from beginning of this series.
I request to make a complete tutorial on SPI and I2C interface communication later in this series.
Thanks for another great video Mr Paul.....
Is it possible to make a video of how to read from libraries the commands and how to use them , cause every library has its own commands and there are thousands of libraries out there.
Thanks again.
I like that you are using good coding habits.
9:00 "I'm learning along with you" ??? That's real confidence inspiring Paul....
Sir, I had a serious problem!! I followed everything, but my sensors are giving "nan" value. How can i solve this ? !
I just solved it for me. The coding was all correct, I took the sensor off the bread board and connected the wires directly to sensors pins and it started spitting out data instantly. For some reason I am not getting a good connection when its mounted on the bread board.
for me, I took the DHT11 to the breadboard. So if you follow the tutorial well, it's probably your wiring. either make sure everything is not loose or change your jumper.
I use the "Miuzei" brand kit, I found out that if you switch the pin2 and 5v wires it stops this error. It must be made a little different. (left 5v, middle Pin2, right GND) .
I love the nano. Eat them like snacks. Order them by the dozen lol. Whats noce is I can build all these examples and just keep them and not have to reuse the items due to the nano price point. Takes extra breadboards but very worth it for my own library. I also make my own jumpers from copper wire to avoid the wire mess. You have great advice in a very approachable style.
I was looking forward to seeing how you included libraries, so this tutorial answered most of my questions. The main remaining one is this: how you get a list of commands that are available in the downloaded library? You illustrated how to use some of them, but is there a location that has a complete list for the selected library?
Thank you Paul I am at lesson 31 now trying to catch up! Really enjoy the Elegoo kit so far.
i had a problem where it just showed me "nan" for the reading so i did some small checks and then i found out that i had to connect it to A2 or any analog readpins and then changing the code for 2 to A2 it started working just fine. i dont know why did your one was working but my did not work and this was the solution that i had to come up with.
and thank you for your videos i love them
Thanks! I was having the same problem and it worked out with your comment.
I had the same problem and loaded the new library thanks for the info guy's
Sir I followed you cuz your videos are really more easier attach to..... great stuff
I know this is outside of the normal format but I'd love to see you do a tutorial on arduino LCD touch screens one day! Love the series and the iced coffee Paul!
I also had to add the Adafruit_sensor.h library. I went a little further and connect the sensor to my LCD. Next is to connect I2C 20X4 LCD and add comments based on temp/humidity. Comfortable, Tolerable, ...you get what I mean. It was 104 yesterday at my home here in Texas.
Hi Paul here in England we call this symbol # a hash key and not pound just thought i would say.
Still great lessons though you make them so interesting.
I also had problems installing the DHT library. However I used the Library Manager from arduino and scrolled down to DHT library. I then installed from there and it came back saying that I was missing important files. I clicked yes to this and all was ok. Just one comment to Paul........ in England £ is pound. # is hash. Love the lessons though.
I also needed to install the adafruit unified sensor library for th DHT library to work.