Arduino Tutorial 50: How to Connect and Use the DHT11 Temperature and Humidity Sensor

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 มิ.ย. 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/arduino-tutori...
    [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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 409

  • @dbhamilton9555
    @dbhamilton9555 3 ปีที่แล้ว +67

    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 !

    • @aaronmilliman7685
      @aaronmilliman7685 ปีที่แล้ว

      How is it coming along?

    • @muhammadrafiqulislamkhan6994
      @muhammadrafiqulislamkhan6994 ปีที่แล้ว +2

      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.

  • @johnganci933
    @johnganci933 4 ปีที่แล้ว +10

    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!

  • @theteenengineer7589
    @theteenengineer7589 4 ปีที่แล้ว +36

    the voice of Paul is music to my ears :)

  • @socorrotravassos2397
    @socorrotravassos2397 4 ปีที่แล้ว +42

    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!

    • @chrisingram7277
      @chrisingram7277 4 ปีที่แล้ว +2

      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.

    • @DaleDix
      @DaleDix 4 ปีที่แล้ว

      Back then it was uni or apprenticeships. Tech school or high school. A whole new world now

    • @DeeGeeDeFi
      @DeeGeeDeFi 3 ปีที่แล้ว +2

      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!

    • @robertwilkerson9723
      @robertwilkerson9723 3 ปีที่แล้ว +1

      "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).

    • @TMRu22311
      @TMRu22311 2 ปีที่แล้ว +2

      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.

  • @couteaghajarry6332
    @couteaghajarry6332 2 ปีที่แล้ว +20

    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.

  • @williamwachter3279
    @williamwachter3279 ปีที่แล้ว

    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!

  • @nachoKrinkle
    @nachoKrinkle 3 ปีที่แล้ว

    My 9yr old daughter and I walked through this and had a great time watching you. Thanks! I like graphing out the temps.

  • @bn1651
    @bn1651 4 ปีที่แล้ว +13

    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.

  • @klrwhizkid
    @klrwhizkid 3 ปีที่แล้ว +3

    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!

  • @opalprestonshirley1700
    @opalprestonshirley1700 4 ปีที่แล้ว +1

    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.

  • @devtest8259
    @devtest8259 3 ปีที่แล้ว +2

    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.

  • @adamcurtice3584
    @adamcurtice3584 2 ปีที่แล้ว

    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.

  • @user-ys6bc7yh7z
    @user-ys6bc7yh7z 6 หลายเดือนก่อน

    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!

  • @thomasmaxwell4396
    @thomasmaxwell4396 ปีที่แล้ว +1

    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.

  • @chrisvandergriff504
    @chrisvandergriff504 2 ปีที่แล้ว +1

    Paul, you have single-handedly revived my conviction to complete my project. You're a legend, sir.

  • @souvikmandal1919
    @souvikmandal1919 3 ปีที่แล้ว +2

    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.

  • @zennithaplatform4963
    @zennithaplatform4963 4 ปีที่แล้ว

    Thank you Paul I am at lesson 31 now trying to catch up! Really enjoy the Elegoo kit so far.

  • @cesaramaral7007
    @cesaramaral7007 3 ปีที่แล้ว

    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

  • @ericsmith7988
    @ericsmith7988 3 ปีที่แล้ว

    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.

  • @alexm.4720
    @alexm.4720 2 ปีที่แล้ว +9

    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!

    • @jadondewey1237
      @jadondewey1237 2 ปีที่แล้ว +1

      I tried that but my code is still putting out errors

    • @deadsquadmortal8448
      @deadsquadmortal8448 2 ปีที่แล้ว

      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.

    • @josegayoso2452
      @josegayoso2452 ปีที่แล้ว

      Thanks Alex, I follow your recommendation and it worked.

  • @tonyperry6702
    @tonyperry6702 4 ปีที่แล้ว

    i too experienced some issues with loading the library but in the end it worked. great video.

  • @chrisb7250
    @chrisb7250 9 หลายเดือนก่อน

    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!

    • @sorryboss8550
      @sorryboss8550 8 หลายเดือนก่อน

      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

  • @erygion
    @erygion 3 ปีที่แล้ว

    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.

  • @davidrender4028
    @davidrender4028 2 ปีที่แล้ว

    Thanks again Paul. Truly enjoying. Great community idea

  • @robertnelson1802
    @robertnelson1802 3 ปีที่แล้ว +1

    Thanks Ylen had the same issue. Thanks again Paul loving the course - this is a better fix than ice cold coffee :-)

  • @davidtomasgaitanrodriguez1356
    @davidtomasgaitanrodriguez1356 3 ปีที่แล้ว +1

    Just ordered a few nanos, jumper wires and more more breadboards! Let's goooooo!!

  • @coltanjoyce6109
    @coltanjoyce6109 2 ปีที่แล้ว

    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 .

  • @JohnStanleyWilkins
    @JohnStanleyWilkins 5 หลายเดือนก่อน

    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.

  • @goldpsp
    @goldpsp 4 ปีที่แล้ว

    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!

  • @JohannBaritono
    @JohannBaritono 3 ปีที่แล้ว +1

    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.

    • @JohannBaritono
      @JohannBaritono 3 ปีที่แล้ว

      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 ;)

  • @sritamroy4430
    @sritamroy4430 4 ปีที่แล้ว +2

    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 .

  • @user-tc3dp3ik6x
    @user-tc3dp3ik6x 3 หลายเดือนก่อน

    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.

    • @paulmcwhorter
      @paulmcwhorter  3 หลายเดือนก่อน

      Wow, thanks for the kind words. Hope you continue to enjoy them.

  • @blackbox330
    @blackbox330 ปีที่แล้ว +1

    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.

  • @lucasdeoliveiranascimento1462
    @lucasdeoliveiranascimento1462 4 ปีที่แล้ว

    Another fantastic lesson!

  • @krisdevoecht
    @krisdevoecht 4 ปีที่แล้ว +1

    Thanks Paul, I have coded my arduino by myself so it can controle my solarboiler....thanks to you!

  • @mazarronmacum9386
    @mazarronmacum9386 4 ปีที่แล้ว

    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!

  • @frang342
    @frang342 8 หลายเดือนก่อน

    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.

  • @gustavoapasquel9715
    @gustavoapasquel9715 ปีที่แล้ว

    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.

  • @arlo4051
    @arlo4051 3 ปีที่แล้ว

    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.

  • @sssagc
    @sssagc 3 ปีที่แล้ว

    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 !!!

  • @Thejbelow
    @Thejbelow 10 หลายเดือนก่อน

    Loving these videos Paul, Thanks again

    • @paulmcwhorter
      @paulmcwhorter  10 หลายเดือนก่อน +1

      Glad you like them!

  • @kiljupiter596
    @kiljupiter596 2 ปีที่แล้ว

    YOU NEVER DISAPPOINT. THANKS FOR THE HELP

  • @raymondsenyo4853
    @raymondsenyo4853 4 ปีที่แล้ว +1

    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

  • @robertschuldenfrei2402
    @robertschuldenfrei2402 6 หลายเดือนก่อน +1

    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.

  • @martinhebben2072
    @martinhebben2072 4 ปีที่แล้ว

    Heij Paul, 1000x Thanks, for doing these video's. Love to see something like a communitie around your lessons. I want to go to more advance diveses in the future. And looking to your channel i will stick around for some time.

  • @michelfeuiltault4013
    @michelfeuiltault4013 4 ปีที่แล้ว

    good lessons and the sensor is fairly accurate. Thanks

  • @popege9186
    @popege9186 3 ปีที่แล้ว

    Sir I followed you cuz your videos are really more easier attach to..... great stuff

  • @matthewcollins1858
    @matthewcollins1858 ปีที่แล้ว

    Present. I really do appreciate all of the work and explanations you do. I feel like I've grown allot watching your videos.

  • @user-pd2ph6ws5r
    @user-pd2ph6ws5r 6 หลายเดือนก่อน

    Nm Paul, I read other options and it’s working. Thank you guys. 😊

  • @hughpatterson1480
    @hughpatterson1480 2 ปีที่แล้ว

    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!

  • @sailingskismo
    @sailingskismo 2 ปีที่แล้ว +1

    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.

  • @nuray4717
    @nuray4717 ปีที่แล้ว

    you have a new fan here:)thanks for your great-quick lessons!

  • @nevilled
    @nevilled ปีที่แล้ว

    Nice job Mr. McWhorter

  • @anilkhandelwal01
    @anilkhandelwal01 4 ปีที่แล้ว

    i am 12 years all your projects worked

  • @lesliethatcher9125
    @lesliethatcher9125 3 ปีที่แล้ว

    I had the same problem and loaded the new library thanks for the info guy's

  • @MarvPerk3
    @MarvPerk3 3 ปีที่แล้ว

    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!

  • @remotaurog
    @remotaurog 9 หลายเดือนก่อน

    Great I got it working ,thanks for helping us out another one ticked .

  • @johntran468
    @johntran468 3 ปีที่แล้ว

    I love you and your teachning methods

  • @MJCPeters
    @MJCPeters 4 ปีที่แล้ว

    Thanks to all in the community that responded to the error loading the library. Saved me hours of head scratching.

  • @DrDave327
    @DrDave327 ปีที่แล้ว

    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.

  • @er.kakshshah2868
    @er.kakshshah2868 4 ปีที่แล้ว +1

    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.

  • @randallsemrau7845
    @randallsemrau7845 3 ปีที่แล้ว +7

    9:00 "I'm learning along with you" ??? That's real confidence inspiring Paul....

  • @frankowalker4662
    @frankowalker4662 2 ปีที่แล้ว

    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. :)

  • @TheFly3boy
    @TheFly3boy 3 ปีที่แล้ว

    Awesome content!!

  • @invertedisosceles2715
    @invertedisosceles2715 4 ปีที่แล้ว +1

    Paul, my guy....
    Do you know how much I struggled with the libraries trying to do just this exact thing.
    One of those whose stuff helped was yours. And gladly I can say the project and many others relating to it were successes.
    Much obliged for your incredible work.

  • @scrappybobbarker5224
    @scrappybobbarker5224 2 ปีที่แล้ว

    Thanks for the lesson.

  • @Lisas4us
    @Lisas4us 4 ปีที่แล้ว

    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?

  • @jittlim4422
    @jittlim4422 3 ปีที่แล้ว

    Thks Paul, great lesson during this "LockDown" in my country. Need to download and installed the full Adafruit Sensor Library to get the Arduino and DHT11 to work properly. :)

  • @designedby
    @designedby 3 ปีที่แล้ว

    awesome video!

  • @boobler2626
    @boobler2626 4 ปีที่แล้ว +1

    that was a struggle. that extra download of adafruit was essential. still a great lesson

    • @hddk2855
      @hddk2855 2 ปีที่แล้ว

      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?

  • @mosft
    @mosft 4 ปีที่แล้ว

    i am Engineer , before you i am zero in Ardunio now I give my self 8/10 thank you and don't Stop........

  • @bigbear333uk1
    @bigbear333uk1 4 ปีที่แล้ว

    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.

  • @G8YTC
    @G8YTC 4 ปีที่แล้ว +8

    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.

    • @chrisingram7277
      @chrisingram7277 4 ปีที่แล้ว

      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?

    • @legendarycraft5499
      @legendarycraft5499 4 ปีที่แล้ว

      @@chrisingram7277 probably just fry the sensor... as I did probably... (a new one is on the way) =))

    • @DaleDix
      @DaleDix 4 ปีที่แล้ว

      @@legendarycraft5499 Not too hard to fry sensors lol. I always check about ten sites before I plug some stuff in.

  • @VasilKurdov
    @VasilKurdov 2 ปีที่แล้ว

    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 :)

  • @bilbo593
    @bilbo593 2 หลายเดือนก่อน

    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.

  • @wallymurray620
    @wallymurray620 4 ปีที่แล้ว

    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.

  • @larryfostano6626
    @larryfostano6626 4 ปีที่แล้ว +4

    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

  • @tameraziz2104
    @tameraziz2104 4 ปีที่แล้ว

    Thanks Paul.

  • @APolles
    @APolles ปีที่แล้ว +1

    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!

  • @chuckpickering6040
    @chuckpickering6040 4 ปีที่แล้ว +16

    The Arduino IDE will also add/install a zipped library automatically for you via the sketch/include library/Add .zip Library...

    • @johndoudar6395
      @johndoudar6395 4 ปีที่แล้ว +3

      Or you can use the library manager.

    • @dougnash6316
      @dougnash6316 4 ปีที่แล้ว

      Thanks for that comment. It helped.

    • @dougnash6316
      @dougnash6316 4 ปีที่แล้ว

      @@johndoudar6395 Thanks for that.

    • @dougnash6316
      @dougnash6316 4 ปีที่แล้ว

      Thanks Chuck

  • @matthewcollins1858
    @matthewcollins1858 ปีที่แล้ว

    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.

  • @davebroster5560
    @davebroster5560 2 ปีที่แล้ว

    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.

  • @jamesgoacher1606
    @jamesgoacher1606 4 ปีที่แล้ว +1

    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.

  • @user-wn7ye2ng8w
    @user-wn7ye2ng8w 4 ปีที่แล้ว +1

    Thanks Paul, i am waiting for pH meter tutorial

  • @daanvdlinden4971
    @daanvdlinden4971 3 ปีที่แล้ว +2

    Hi Paul, I really like your tutorials. They have taught me soooo much. Thank you for that ;). On what site do you get the drawings of the circuits and any good websites for finding the different functions you could use if your using a library?

  • @devtest8259
    @devtest8259 3 ปีที่แล้ว

    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.

  • @bertmouthaan
    @bertmouthaan 3 ปีที่แล้ว

    Works fine!

  • @CodingScientist
    @CodingScientist 4 ปีที่แล้ว

    This is very nice

  • @gjd54321
    @gjd54321 3 ปีที่แล้ว

    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...

    • @jayakrishnanv2399
      @jayakrishnanv2399 3 ปีที่แล้ว

      th-cam.com/video/fB6lbmu-mk0/w-d-xo.html

  • @wayneandrews1738
    @wayneandrews1738 ปีที่แล้ว

    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

  • @okieinexile
    @okieinexile 2 ปีที่แล้ว

    I like that you are using good coding habits.

  • @stelios2000chania
    @stelios2000chania 4 ปีที่แล้ว +1

    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.

  • @magnumopus1415
    @magnumopus1415 4 ปีที่แล้ว

    Mr. Paul your the best 😊 😊! I have some ideas. Using matrix display or a timer 🕒

  • @wayneandrews1738
    @wayneandrews1738 ปีที่แล้ว

    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.

  • @michaelpatterson1096
    @michaelpatterson1096 2 ปีที่แล้ว +1

    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.

  • @trevorjanes1181
    @trevorjanes1181 3 ปีที่แล้ว

    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.

  • @carbon273
    @carbon273 2 ปีที่แล้ว

    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.

  • @SimpleHumanInNY
    @SimpleHumanInNY 2 ปีที่แล้ว +1

    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

  • @Sharft6
    @Sharft6 3 ปีที่แล้ว +1

    You also need the Adafruit Unified Sensor library found in Arduino library manager.

  • @wallaceshackleton1889
    @wallaceshackleton1889 4 ปีที่แล้ว +1

    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.