3 ms·
I’m almost ignorant on this device, but FTA (https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/#2-the-main-components https://frenck.dev/diy-smart-doorbel
by Someone 2y ago
I’m almost ignorant on this device, but FTA (https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/#2-the-main-components https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/#2-t...)
“This relay module board for the ESP-01(S), It comes pre-soldered, and the ESP will just slide on top of it.”
So, bending that pin breaks a connection between the CPU board and the relais board, so that pressing the doorbell wouldn’t be able to send a reset signal to the CPU, or, as the article says:
FTA: “Without this modification, a doorbell button push would result in a reset/restart of the chip, which of course, isn’t what we want”
That made me wonder why the hardware is hooked up that way by default in a device that gets sold for this specific purpose.
A few searches learnt me that the device has a deep sleep state where it uses very little power. The only way to wake it up externally from that state is through a reset.
https://johnmu.com/quick-boot-button/ https://johnmu.com/quick-boot-button/ taught me that it can boot in about 100ms, and get WiFi on in a few seconds.
=> I think that keeping that pin in place is the intended way to use this hardware combo.
The device would boot when the bell is rung, first close the relais switch to ring the bell, and then do any home automation stuff a few seconds later. Latencies look acceptable to me.
I ideally would want to power it completely from the button push or, at least, from the same adapter as the doorbell, but both will be challenging. The first doesn’t deliver enough power for long enough, the second likely doesn’t run on 3.3V.
- leni536 2y ago> The first doesn’t deliver enough power for long enough Charge up a capacitor, maybe?
- undecisive 2y agoAhh! So it's not the ESP that has an extra connection, it's the relay breakout board. That makes much more sense. Yeah, I guess you would need to sound the doorbell every boot, and that might be inconvenient in places with a lot of power supply issues / loadshedding. That said, that quick-boot-button link? That's some brilliant info right there.
- krisoft 2y ago> I guess you would need to sound the doorbell every boot Funny that the store bought wireless doorbell I have does exactly that. :D I guessed it does that to avoid/reduce returns from people who doesn't manage to pair it with the doorbell button and think that it is "not working". So pre-emptively they do a chime right after you plugged in to show that it is working.
- sebazzz 2y ago> I guess you would need to sound the doorbell every boot It disconnects from wifi when rebooting, doesn’t it?