Let's build a room sensor - Part 1 - Temperature, Humidity, and Bluetooth

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 มิ.ย. 2024
  • I am aware of some glitches in the video, I was trying something new and apparently failed, please ignore it.
    In this video we will add the Bluetooth Proxy functionality to our Basic Setup as well as have a discussion around the Bluetooth Low Energy sensors, then add a DHT22 Temperature and Humidity sensor.
    You can find the bill of materials and code on my GitHub Page linked below.
    You will find the accompanying code on my GitHub Repo @ github.com/homeautomatorza/es...
    Support me by
    ▶ Buying me a tea: www.buymeacoffee.com/homeauto...
    ▶ On Patreon: / homeautomatorza
    ▶ Timestamps ⌚:
    00:00 - Opening
    02:44 - Hardware
    05:46 - Software
    06:10 - Wiring and NodeMCU
    08:23 - About the DHT11 and DHT22
    11:15 - Putting the hardware together
    12:28 - Software Versions and updates
    13:19 - Basic Setup
    14:21 - Bluetooth Proxy and BLE with demo
    20:16 - DHT22 with demo
    24:23 - Adding the temperature and humidity sensors to Home Assistant
    25:32 - Adding the temperature and humidity sensors to a dashboard
    28:08 - Final Thoughts
    ▶ Links mentioned in the video 🔗:
    - GitHub Page: github.com/homeautomatorza/es...
    - NodeMCU documentation: docs.ai-thinker.com/_media/es...
    - Sparkfun DHT22 Datasheet www.sparkfun.com/datasheets/S...
    ▶ Copyrights
    •••••••••••• Intro and Outro Music By •••••••••••••
    Jay Man - OurMusicBox
    "Soaring''
    www.our-music-box.com
    /ourmusicbox
    #smarthome #homeassistant #esphome #diyelectronics #diyiot
  • แนวปฏิบัติและการใช้ชีวิต

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

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

    Hi and thanks for your outstanding walkthroughs. I'm a newb to electronics and would appreciate it if you could explain a little more about the role of the capacitor in this configuration.

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

      Hi Steve,
      Thank you so much for the feedback and please never hesitate to ask anything, we've all been new at this.
      The capacitor between EN and Ground is only there to enable anytime firmware upload via the serial port to the ESP32 without having to fiddle with the Boot button to get the ESP32 into programing mode. It is not a necessity for most use cases, it just simplifies my life, and I would remove it once it gets deployed and would never feature on a PCB.
      I hope that clarifies it's use.
      -- Pascal

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

    I had been looking for ESP32 Home Assistant connection videos for days without much success for a first time user. Now, miraculously your video was right there top of the list! I even have my DHT11 and ESP32 wired up on the breadboard.
    Now have to watch your earlier videos especially on the yaml file. BTW it is great that you explain what things are, and in depth, so that beginners can follow. Much appreciated!

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

      Thank you, I am doing what I hoped would be on TH-cam when I started and could not find.
      Glad I could help.

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

    excellent thanks subscribed :)

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

    Gread video thanks for sharing😀

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

    I still do like the structure 🙂 You will want to do a housing later on, at least, my wife doesn't like loose electric components all over the place. In the housing, you need to separate the temp sensor from the esp32 board (it produces enough heat to influence your temp measurement). I now use an ESP32 C3 mini, that is very small (so my housing is not too big) and it is low energy (minimizing the influence on the temp sensor).

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

      I have plans to learn how to use a CAD program, but, as the saying goes, there are only so many hours in the day. I also want to design PCBs to go with the tutorials, but that is also something I need to learn.
      Right now, it’s all about the delivery, format and DaVinci Resolve. I am new to all of this TH-cam thing, sure I did many presentations over teams but that was interactive.
      But thank you for the feedback, it’s welcomed.

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

    Some sensors for you to check out if you aren’t familiar with them!
    (The bh1750 you’re already familiar with, great show!)
    Bme680 (temp, humidity, pressure and gas sensor);
    LD2450 (mmWave sensor);
    Great video, keep it up!

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

      I am aware of these however the BME680 is an overkill for a room sensor and expansive at least here in South Africa.
      As for the LD2450, it is not freely available in South Africa last I checked. I use the LD2410C and I disable the Bluetooth, it often gets paired with a PIR where it is feasible for faster motion detection.
      Many thanks for the comment

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

      @@homeautomatorza how’s South Africa relationship with AliExpress??

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

      I just saw this message, sorry for missing it.
      We can get stuff from AliExpress but the import duties and VAT often do not make it viable.

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

    Great tutorial Pascal. Easy to follow and I will be looking out for more as this evolves into an all ‘in one sensor’.
    Question for the future, do you and case/housing for this all with all the sensors you want to place as I am sure that will be getting the wife approval as in need her approval.

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

      Thank you Barry, glad you are enjoying and finding value in my tutorials.
      To answer your question, yes, 3D printable cases are on the to do list but first I need to learn some CAD software, I am already down the Fusion 360 rabbit hole, I just need the time.
      In fact, a PCB may come before that, and I must learn the PCB CAD too, again it's about the time.
      Right now, I am laser focused on learning Davinci Resolve to give you a easily understandable tutorial with enough background information but not so much that it overwhelms you and honing my presentation skills.
      But thank you for raising these points, it helps me to plan videos and give this channel a compass to follow.

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

    That is a great tutorial. I have a DHT11 on hand so I will try this tonight when I have a free minute. I do have a couple of things to ask.
    What pin do you have the capacitor attached to, so that if one is using a different board we know what to attach to?
    When presenting the YAML text, is it possible to zoom in (CTRL+) or something so that the code can be read? On my screen (1920x1080) is is a wee bit small for these old eyes. 🙂
    Thank you very much for making this series of tutorials. They are very helpful to new people. Thank you for sharing!!!
    -- Joe

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

      Hi Joe,
      The capacitor in on the EN - Reset pin to the Ground, it should work wit most ESP32s.
      You have a good point regarding the YAML, and I completely forgot to mention that all the code is on my GitHub, github.com/homeautomatorza/esphome/tree/main/Lets_build_a_room_sensor/Part%201
      I based this channel on what I would have wanted when I started, so now you know why this channel exists.
      I appreciate your questions and suggestions, please keep them coming, it can only make this channel better for you and others.
      I am hoping the format is geting better as well.
      -- Pascal

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

    Pascal, Thought I would give a follow up. I have the project together and running. Seems to work like a charm. The only difference is I used a DHT11, since that is what I had available. One odd thing is my ESP32 board seems to reboot every 8 and 1/2 hours and is very consistently with this time. Seems odd to me. Any ideas? Or just maybe a flaky board? Iam using and older DEVKIT V1. Thanks again. I am looking forward to following along with you on the next installment. (Sorry, posted under my wifes YT account)
    --Joe

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

      Hi Joe,
      I have a board that does that to me too, I've automated a restart every 6 hours, I need to check if it fails on another board. I use a very similar board as yours by the way, mostly for development. I switched to ESP32 D1 Mini for production use.
      No worries about the wife, give her my greeting and thanks.

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

      @@homeautomatorza Thank you Pascal. I certainly will let her know! 🙂
      -- Joe

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

    Pascal, If not electing to use a usb to power the esp32 and instead use an external 5vdc power supply, should a capacitor be used across the voltage input as a filter? And if so, what value would you recommend?
    -- Joe

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

      I would indeed use a capacitor to smooth out the voltage, as for the acopacitor itself, I'll need to check.

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

      @@homeautomatorza Thank you very much. I would like to use an ESP32 for a controller for exlights running 12V nodes. I am using a 12V to 5V buck converter to power the ESP. That is why I am asking. As I have it wired now, it works, but if it will make things better to have a decoupling cap then I would want that. Thank you, sir, for being such a wonderful resource.
      --Joe

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

      My pleasure

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

    little oopsie there m8. @8:14 the pointer to gpio26 is pointing at gpio25.

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

      Yup, one of the many issues I had with DaVinci Resolve, I seemed to have reverted to a previous version of my edit and given that it took an hour and a half to render I let it go. The next one will be better, I promise.
      Live and learn, right?