Why Did I Pick Wi-Fi over ESPNow?

  Переглядів 16,479

MrDIY

MrDIY

День тому

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

КОМЕНТАРІ: 33
@MisterkeTube
@MisterkeTube 11 місяців тому
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)
@StefanWelker
@StefanWelker 9 місяців тому
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 10 місяців тому
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.
@Science1144
@Science1144 Рік тому
I like the idea, but isn't a shelly door sensor the same with already a optimized fast response time?
@TechnoAutomation
@TechnoAutomation 9 місяців тому
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??
@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
@techfunial3817
@techfunial3817 Рік тому
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
@innomkr
@innomkr Рік тому
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 ukposts.info/have/v-deo/eaGhd5-AnZWJq4E.html
@innomkr
@innomkr Рік тому
@@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 Рік тому
these numbers were with a static IP ( DHCP was longer but not by much)
@ripper121
@ripper121 7 місяців тому
I used static ip and saved the wifi channel. I got down to 200ms from sleep to send out a tcp message
@dartfrogdk
@dartfrogdk Рік тому
could you not use esphome to code it
@MrDIYca
@MrDIYca Рік тому
not familiar with esphome
@richdobbs6595
@richdobbs6595 6 місяців тому
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 6 місяців тому
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 6 місяців тому
@@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.
@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 Рік тому
@@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 Рік тому
Tic Tac Sensor
@MrDIYca
@MrDIYca Рік тому
I kind of like it :)
@theo5260
@theo5260 Рік тому
👊 promosm
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 508 тис.
ESP-Now Range Test: Real-World Results for ESP32 Devices!
8:01
atomic14
Переглядів 101 тис.
Помилка,  яку зробило військове керівництво 🙄
01:00
Радіо Байрактар
Переглядів 333 тис.
Contact Sensor 3 - an ESP8266 Door & Window Sensor
5:31
MrDIY
Переглядів 14 тис.
Control System using Arduino and Ignition (SCADA system)
15:21
BVlabs
Переглядів 1,4 тис.
CAN Gateway: Monitoring Cars Wirelessly!
8:02
MrDIY
Переглядів 117 тис.
What Is ESP Wi-Fi MESH? (2021) | Learn Technology in 5 Minutes
5:19
Build your own CT Clamp Power and Energy Monitor with ESPHome
9:34
Speak to the Geek
Переглядів 63 тис.
The Hub 3 - an ESPNow to Wi-Fi / MQTT gateway
6:45
MrDIY
Переглядів 14 тис.
#291 External antennas and ESP32 Long-Range mode
13:57
Andreas Spiess
Переглядів 213 тис.
ESPNOW for beginners! #ESP32 #ESP8266
35:09
Programming Electronics Academy
Переглядів 117 тис.
Самый маленький игровой ПК
0:46
ITMania - Сборка ПК
Переглядів 567 тис.
Phone charger explosion
0:43
_vector_
Переглядів 30 млн