Building a Wireless Temperature Sensor with ESP8266 & Arduino

Поделиться
HTML-код
  • Опубликовано: 24 апр 2017
  • For my first video, I walk through building a wireless temperature sensor based on the ESP8266 chip - the hardware, some theory, and the code.
    The code used in this clip is freely available here: github.com/andrewgodwin/ardui...
    This is my first try at getting something like this together into a video, so constructive comments are appreciated!
  • НаукаНаука

Комментарии • 72

  • @vonrollveeg
    @vonrollveeg 5 лет назад +31

    I'm 71. It does my soul good to see there are still bright creative people in the world. Good work. I'm going to play around with this.

    • @bitschips
      @bitschips 4 года назад +1

      Go for it and build it!!

    • @ilyushin78
      @ilyushin78 2 года назад

      Are you alive?

  • @adityatyagi1869
    @adityatyagi1869 5 лет назад

    Excellent video, Andrew. My embedded systems project team used your video to learn how to wire our temperature sensor to our ESP8266. Keep up the good work! Strong presentation skills with intuitive explanations and top-notch video editing. Consider making more videos.

  • @jseneque
    @jseneque 6 лет назад +3

    Awesome first video!!! Keep it going

  • @sadistfcfm
    @sadistfcfm 6 лет назад +1

    Wow, i knew i know you before... what a coincidence being working on both ESP8266 and django channels! Great work man.

  • @SaurabhRastogiRC
    @SaurabhRastogiRC 6 лет назад

    Very good video ...... Andrew. Looking for more from you.

  • @DavidJJJ
    @DavidJJJ 3 года назад +3

    Great project, I’ve done the same thing except I’m using an esp32 and sending the data directly to MySQL (and then reading it with grafana from there). I have 5 sensors around the house and I use the MAC address to distinguish between the sensors in the database. Works quite well. I’m also doing the deep sleep thing and have a 5 minute timeout between temperature reads. I’m also using an stm based temp/humidity sensor.

  • @peterharris7682
    @peterharris7682 4 года назад

    A very useful video Andrew. I used it as the basis for a remote temperature sensor but with a few changes
    Firstly I needed an external antenna and couldn't find a suitable 8266 with a uFL antenna socket so I used an ESP32 which worked fine
    Secondly I used a DS18B20 temperature sensor instead of your thermistor which was easier as it didn't need complex calibration and calculations
    Thirdly, I needed to extend the battery life. I found even deep sleep mode wasn't good enough as the board is still drawing 6.5mA when asleep. I therefore ended up using a TPL5110 Nano Power Timer (the Sparkfun version) which works a treat and only draws 35nA of power when sleeping. It was dead easy to implement and since the main board effectively does a cold boot each time it is woken up I don't get the occasional lock-ups I got using the ESP32 deep sleep mode.
    Once again thank you
    Peter

  • @Taylor-zq3qr
    @Taylor-zq3qr 5 лет назад +1

    Andrew. Love the video! Can you update your description to include a shopping list and make a waterproof/resistant sensor?

  • @Gerry2xs
    @Gerry2xs Год назад

    Thanks Andrew. Like your video, nicely explained.

  • @TysonClugg
    @TysonClugg 7 лет назад +17

    Great stuff Andrew!
    I have one suggestion. Instead of placing the voltage divider between Vcc and ground, place it between an available output pin and ground. In this way, you can switch that part of the circuit off to both save power, and prevent heating of the thermister which will skew your readings. Activate the output pin, wait a short moment for the circuit to quiesce, take the voltage reading, and deactivate the output pin again.

    • @AndrewGodwin
      @AndrewGodwin  7 лет назад +3

      Yes, I did that in a previous revision, I'm not sure why I didn't here. Thanks for the tip!

    • @TeamRiceUSA
      @TeamRiceUSA 6 лет назад

      Tyson Clugg nice commits on Mr. Godwin wifi temp

  • @bitschips
    @bitschips 4 года назад +1

    Nice video, very good very well explained and interesting! Thanks for time.

  • @sausage5849
    @sausage5849 6 лет назад +1

    Good job with this video. Great explanations too. Subbed!

  • @ryandoyle9674
    @ryandoyle9674 2 года назад

    Super helpful, thanks Andrew! Your video was comprehensively informative and clear ... as a newbie in this space, I really appreciate the completeness of your explanations. I was wondering about expanding this project to also track humidity and light for a fuller picture of the atmosphere. Any thoughts on how I might accomplish this?
    How might I add a photoresistor to this circuit? Could I swap the thermistor for a DHT11 and track both temperature and humidity with the same component? Am I thinking along the right track?

  • @dbrgn
    @dbrgn 7 лет назад

    Nice video. You can also get an even simpler circuit by using a DS18B20 one-wire temperature sensor.

  • @mikeperry2561
    @mikeperry2561 Год назад

    Very well explained!

  • @RaiyanKamal
    @RaiyanKamal 3 года назад

    Hi Andrew thanks for this tutorial. I often see ESP32 but this is the first time I heard of ESP8266. If I may, I'd like to request a video review comparing these two components.

  • @0nedon
    @0nedon 9 месяцев назад

    well done video and well explained, really helpful to help me decide on my next project, thank you Andrew. - Would i be able to use the ESP32 in place of the ESP8266?

  • @rolocox100
    @rolocox100 6 лет назад

    fantastic clear talk and video. would it be possible link a microwave radar sensor such as the RCWL-0516 and then output this via the ESP8266 to make a low cost remote motion sensor.

  • @mohammedzaman1937
    @mohammedzaman1937 6 лет назад +1

    awesome! is it possible to control a led/relay remotely based on a set temperature on this one.

  • @KM6VV
    @KM6VV 6 лет назад

    Thanks for publishing! Where can I find ESP_thermometer? I've downloaded and looked in arduino-examples-master per your link below, but haven't been able to find it.

  • @aquilax
    @aquilax 7 лет назад

    Nice and informative. I wonder how easy it will be to hijack the connection with second WiFi with the same SSID?

  •  5 лет назад +2

    Hi, can you put the parts list in the description. I’d like to try to build the same

  • @ytbTheogr
    @ytbTheogr 6 лет назад

    That's a very good project idea! Can you please tell me which version of influxdb did you use? I'm trying to write data to influx via http with arduino and i get "Method Not Allowed". Thanks

  • @servant74
    @servant74 6 лет назад

    Question: Could I put say, 3 thermistors on one of these devices? I need each away at 1 then 2 and 3 meters from the ESP8266?

  • @MrHandsomejackuk
    @MrHandsomejackuk 6 лет назад

    excellent project maybe worth lookig at a sonoff th10 as this has all the hardware built in it is mains powered but could be battery powered too

  • @nothingtoseehere5760
    @nothingtoseehere5760 Год назад

    Just brilliant! I wonder if you have tried putting it in a chest freezer and if it still connects? I am worried about the freezer insulation acting as a Faraday cage but don't have anything that I can control/test with...

  • @dlseverns
    @dlseverns 5 лет назад

    Really well done and thorough. Thank you!

  • @Electromaniaworld
    @Electromaniaworld 6 лет назад

    can you show to to setup plotting of that graps ?

  • @mhamzahkhan
    @mhamzahkhan 5 лет назад

    Kind of off topic question... what stand are you using for your monitors? I am pretty sure I have the same desk as yours (ikea galant?) and I'm looking for a better monitor stand that I can use.

  • @101appsCoZa
    @101appsCoZa 4 года назад

    great video. thanks!

  • @steve42lawson
    @steve42lawson 5 лет назад

    0:17 "Only a _couple_ of the steps? What about the rest of the steps?!? Are you going to leave, a quivering mess, while you cackle maniacally over my smallness?!?" Sorry, just messing with you. Great video! It gave me all I needed to proceed with my own project. I've always wondered how you pass data using POST and GET. The documentation I found on this lacked examples, making the whole thing rather vague, for me. Your example cleared that all up, so thanks!
    One *Note* Though: At 13:13, why would you have the LED glow for the 10 second idle period, and extinguished for the short data acquisition period? Wouldn't you want that the other way around, so there's not such a load on the battery?

  • @Brickkzz
    @Brickkzz 3 года назад

    great video! subscribed!

  • @phil4000n
    @phil4000n Год назад

    very interesting. Couple of questions: never heard before of influxdb and grafana, do you mean to heavy to run the ESP8266 as a server? Do you have or now a good tuto, but sounds steep learning curve.
    I'm not getting if you found an advantage on using Adafruit Huzzah Feather ESP8266 over nodeMCUv2 Amica, can you comment.
    Excellent that you show the physical soldering, too rare on YTUBE.

  • @sodapop111
    @sodapop111 6 лет назад +2

    can you specify the resistors and the type of thermistor you used? (basically the parts used in this video because it is vaguely said)

    • @AndrewGodwin
      @AndrewGodwin  6 лет назад +2

      The thermistor is a 4K7 NTC type. The resistors are, I believe, 2kOhm on one side of the divider and 4.7kOhm on the other, standard carbon type.

  • @ExopMan
    @ExopMan 2 года назад

    How would you update this build now using more modern/smaller components? Thank you!

  • @felixlaurencelle7016
    @felixlaurencelle7016 6 лет назад

    I loved that video! I was going to start that project but i have 0 knowledge about the software part. Do I need to install InfluxDB and Grafana on one of my computer? And do i name the "host" that computer IP Adress? Do you suggess an video to learn that process better? Thanks a lot in advance!

    • @Dreathan
      @Dreathan 6 лет назад

      I got same questions... Did you receive an answer?

  • @3vedinishit
    @3vedinishit 4 года назад

    Hi Andrew.. is it possible to make contactless temperature sensor(like temp. gun) using ESP8266 ?

  • @hackinblack7102
    @hackinblack7102 6 лет назад

    very good video,very clear...but i cant help thinking it would be easier, and more accurate, if you used a 'smarter' sensor; either a linear output thermistor, or a temp to voltage converter IC; then you wouldn't need to measure anything (your temperature measurement AND you resistance measurement both introduce errors) most sensors give 10mV per degreeC and upto +/_1% accuracy. you could probably even use a normal IN4148 diode as a sensor; almost any PN junction shows a mV change with temperature.

    • @leglessinoz
      @leglessinoz 6 лет назад

      Hack In Black or one could use an LMT01 digital sensor.

  • @manojrjadhao
    @manojrjadhao 6 лет назад

    Hi, Andrew, it is really nice introduction of wireless sensor. I am also working on same board. I have a question, is there a way where we can make the device use very less power from battery and let it lasts for more than 6 months? I am thinking making its size and cheaper.

    • @AndrewGodwin
      @AndrewGodwin  6 лет назад

      The ESP8266 board has a deep sleep mode where you can save battery - you can make it sleep for intervals of up to 70 minutes, and then wake up and send a measurement. You could probably stretch it out to a few months of battery if you made the recording interval 5 minutes or so and used a couple of AAs.

    • @manojrjadhao
      @manojrjadhao 6 лет назад

      Hi, thanks for quick reply. Can you tell me, how much power will be required for a day if I keep the interval of 5 minutes? I am thinking of using this battery: www.amazon.in/Robu-Samsung-2600mAh-18650-Lithium/dp/B0765SL77F?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=f1cf1053-27c4-4cda-8c82-682d058ea547

    • @Ed19601
      @Ed19601 6 лет назад

      Manoj Jadhav when you Google esp8266 deep sleep you will find the current use in deep sleep as well as the current use while making WiFi contact. Add to that the current flowing through the ntc. That gives you the amount of current over 5 minutes
      There are 12*24 periods of 5 min in a day

  • @athief
    @athief 5 лет назад +4

    battery life given a full charge would have been very useful. How long does it last with that setup? 3 hours? 3 days?? 3 weeks???

    • @1_HighDuke
      @1_HighDuke 4 года назад +1

      It's probably a very power-hungry setup. Measuring and transmitting every 10 seconds will eat up the battery in no-time. If you want longer battery life, first measure & transmit less often. And second, implement deep sleep so that you reduce consumption between polls.

  • @mikepickell8792
    @mikepickell8792 6 лет назад

    Is there a bluetooth type?

  • @deDutchRooster
    @deDutchRooster 5 лет назад

    Parts list?

  • @gouravdabade
    @gouravdabade 4 года назад

    what is the range ?

  • @kollaattori2494
    @kollaattori2494 2 года назад

    Am I missing something? To my knowledge there is NO analog pin (A0) in ESP8266.

  • @etiennemp7100
    @etiennemp7100 5 лет назад

    Hi ! What's the name of the graph interface that you use ?

  • @yvindmathiassen7617
    @yvindmathiassen7617 6 лет назад

    are there coming more videos like this? I liked it very much, I subbed you just in case :)

    • @AndrewGodwin
      @AndrewGodwin  6 лет назад

      Hopefully! I have plans for the next one, need to find time to film it.

  • @dand8282
    @dand8282 6 лет назад +1

    does that send the password in the url in clear text? https is a pain w/8266...

    • @AndrewGodwin
      @AndrewGodwin  6 лет назад +1

      It does - as you say, HTTPS is a pain. In my case it's only going over a local network, thankfully.

  • @jpthedelawarebeeman6239
    @jpthedelawarebeeman6239 4 года назад

    How do I get Fahrenheit and not Celsius ?

  • @VoeViking
    @VoeViking 6 лет назад +1

    Bit vague in the important stuff. If you really want to make a good video start at the beginning, first the earth cooled than the dinosaurs came, after that I installed this server in this manner using this and that...

  • @MrVarunsharma014
    @MrVarunsharma014 4 года назад +1

    Andrew, I am designing a product on which I need someone with knowledge of electronics to help. Can you help me out? I can pay you fee for your services. Thank you.

  • @thehomeschooldev6126
    @thehomeschooldev6126 4 года назад

    #Thehomeschooldev #IoTEngineering

  • @MrBobWareham
    @MrBobWareham 6 лет назад

    I was most interested in the project until you used the adafuit hazzah being a very expensive product like all adafruit products so will not be following your video thanks!!

    • @Ed19601
      @Ed19601 6 лет назад +1

      Bob Wareham get a wemos D1 mini

  • @whatmust8146
    @whatmust8146 11 месяцев назад

    Thermistor is the way to go. You can get one for free from old battery pack particularly the Ryobi one. I have done a ton and never need to buy any thermistor. I build many thermistor base Arduino one with multiple reading of temp. I am doing IOT now with every thing if possible over wifi and web base.
    Reduce reuse recycle is way harder than to buy anything everything brand new. People choose the latter because the former is way harder and more work to do. I always choose the 3 R's because that is me. Reduce Reuse Recycle.
    Everyone needs to do their part by doing the R's!!!!!!

  • @bhekintanzi6761
    @bhekintanzi6761 4 года назад

    Parts list?