Why Did I Pick Wi-Fi over ESPNow?

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มิ.ย. 2024
  • An overview video of version 3 of my contact sensor.
    10 PCBs for $5 USD at www.pcbway.com
    Get My Contact Sensor - store.mrdiy.ca/p/wireless-con...
    Source code and schematics - gitlab.com/MrDIYca/ultra-low-...
    My list of ESP8266 Dev boards
    =========================
    ■ ESP01
    geni.us/esp0 (Amazon)
    s.click.aliexpress.com/e/_dZj... (AliExpress)
    ■ Wemos D1 Mini
    geni.us/wemos1min (Amazon)
    s.click.aliexpress.com/e/_Af36zD (AliExpress)
    ■ Programmer USB to Serial
    geni.us/OQ1rGJ (Amazon)
    s.click.aliexpress.com/e/_dZs... (AliExpress)
    My Contact Sensor System Playlist - • My Ultra Low Power Sen...
    The links above are usually affiliate links that support the channel (no additional cost for you).
    00:00 Intro
    00:10 refresher
    00:57 Going Hubless
    02:57 Sample code
    03:04 sponsor
    03:34 Sample code
    04:04 Bonus
    04:27 Picking a name
    04:43 Outro
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @StefanWelker
    @StefanWelker 11 หลายเดือนก่อน +4

    I was using espnow before. I was using it mostly for the reason it is really fast to send and receive a packet (i've measured under a millisecond) and also because this system works without using a wifi so in some cases making the hub reliable may be desirable. I have not yet made a hub myself, i was using it to control lights to the rythm of music with a ps2 controller. So i don't know if esp now hubs will fail sometimes, but it seems to me its possible to make a very reliable system.

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

    This is a great project! Your title makes it sound like you have given up on ESP-NOW. It seems you are making the best of both worlds, ESP-NOW and WiFi.

  • @MisterkeTube
    @MisterkeTube ปีที่แล้ว +9

    Wait, you have a delay of seconds on your doorbell notification? Wow, over here that would probably mean the UPS guy at the door has already run off the driveway and you can now go and pick-up your packet elsewhere ... (Joking of course - but not by much)

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

    I like the idea, but isn't a shelly door sensor the same with already a optimized fast response time?

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

    Hi thanks for this project. I'm trying to start one by one and ..to start first with attiny...i uploaded your code tested . but in deep sleep its consuming 300uA . not sure why is that? is that's how your code supported to work for attiny in deep sleep? i just power attiny and used a switch input that's all..all.othe pins are floating or untouched

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

    Running espnow on esp32 with continuous data transfer heating esp board. Are there any specific requirements to throttle up data sending rate for optimum heating??

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

    Very educative video
    Can you make on iot 32/64 channel home automation with esp32 or esp8266

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

      not as-is, but you can always extend the I/Os

  • @timc3600
    @timc3600 12 วันที่ผ่านมา

    +1 for PCBWay

  • @user-ww8wl1zi8v
    @user-ww8wl1zi8v 7 วันที่ผ่านมา

    But wifi is super unstable if you live in an urban area. I tried bluetooth BLE but i cant find a freaking good library that can provide easily a simple host BLE (Python, Node, C#). Everything in C# seems targeted for Xamarin lately, the same with Kotlin and Android. With this I mean send the data from the ESP32 to my NAS server with bluetooth

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

    If you use ESP32 on your hub I think you will need only one module for both receiving ESP NOW messages and connect to AP and send data to MQTT broker. Why are you instead using 2 ESP8266?

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

      It is the same issue with ESP32. In theory, it can be done - you can watch this segment th-cam.com/video/AqpCiIf_XJM/w-d-xo.html

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

      @@MrDIYca Very well explained. I have missed that part of the video. Thank you.

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

    set a static ip in the code, and the esp will connect much faster most of the time

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

      these numbers were with a static IP ( DHCP was longer but not by much)

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

      I used static ip and saved the wifi channel.
      I got down to 200ms from sleep to send out a tcp message

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

    I was seriously surprised by the cost of your contact sensor. It's like 4 times as high as I expected it to be. What drives the cost so high? This just seems like a dev board with a microswitch, which is like a $1-2 component. Very discouraging, since my product would be basically the same thing with about 5 microswitches and would also require a 3d printed part.

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

      I understand this might not be for everyone. I made all the schematics and full source code for the ATtiny and ESP8266 (sender, receiver and gateway) available to everyone for free. You're welcome to use my design and code to build your own.

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

      @@MrDIYca Thanks. At this time, the lowest cost solution for my system seems to be using I2C GPIO boards, combined with small custom PCBs to hold the microswitches. I'll take a look at your microswitch and how its attached, to see if I can get a board that fits the niche I'm trying to fill.

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

    could you not use esphome to code it

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

      not familiar with esphome

  • @the-matrix-has-you
    @the-matrix-has-you ปีที่แล้ว

    Well I have designed my own made a Wemos d1 mini deep sleep wake shield if you define mac address in wifi settings in your code you can connect and send message to home assistant MQTT broker as low as 500ms not fast as ESPNow ofcourse but you dont have to deal with a ESPNow to mqtt hub anymore😉 cause even I mod my Wemos d1 mini's for less consumption in deep sleep mode which is 17uA but The hub does not sleep and it is always open. Acorrding to datasheet of esp 8266 modules ex: wemos d1 mini ESP12F can consume around 75 to 80mA when in Wifi Station mode so long term battery powered hub is not possible solution. I highly recommend you to try connectting with defining AP MAC address configuration you will see it will connect to your AP about 500ms or 600ms depends on your Router configuration also make sure to configure wifi Channel on your Router and on sensors wifi configuration code

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

      Can you explain more on how you used the AP MAC address to connect to Wi-Fi? Did you mean using a static IP instead of DHCP?

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

      can you make some documentation on that or explain more ?

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

      I'm interested in this can you share how you made esp consume only 17uA in deep sleep mode?? can we connect in discord or telegram??

    • @the-matrix-has-you
      @the-matrix-has-you ปีที่แล้ว +1

      @@MrDIYca yes static address with channel of ssid defined this makes Connecting to wifi about 500ms depends on the Router though

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

      @@the-matrix-has-you thanks can I text you in discord or telegram???

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

    Tic Tac Sensor

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

      I kind of like it :)

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

    👊 promosm