Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By rudy
#67208 OK a new thought. I would replace the 470 Ohm resistor with a schottky diode. One with a lower forward voltage drop. But you can probably get it to work with a conventional diode. The band on the diode (cathode) should be towards GPIO16.

This will allow GPIO16 to cause a reset when it goes low. When it is GPIO16 is high, and your circuit is activated, the circuit will not have to fight against GPIO16 (through the 470 Ohm resistor). It will only need to pull down the current of the 10 K resistor and the charge on the 0.1uF cap.
User avatar
By Marmachine
#67242 I've put a diode (1N4001) cathode to GPIO16 and anode to R5 (470Ohm) which is connected to RST:
The normal state of the switch is closed (meaning the door is closed, so the magnet is near the reed switch)
The WeMos D1 board wakes up after 5 minutes, with the circuit attached, this is still working!

Setup without the capacitor has the following result:

With the diode in place, the board now also wakes up when the contact closes, but only after the contact was opened first. So, in other words, when the door opens, nothing will happen until the door closes again. I was actually expecting and hoping it would wake up right when the contact/door opens.

When i leave the contact open, nothing happens. Meaning, the board won't even wake-up by itself after 5 minutes, but only once the contact/door is closed again.

With the capacitor in place, all this doesn't work at all. Only the self-wake-up works.
Image