-->
Page 1 of 1

Ignore subsequent [deep sleep] wake up button presses/events

PostPosted: Tue Dec 14, 2021 2:17 pm
by Marjan Trutschl
Hello,

I have been trying to figure this out for a while with not much luck. I would like to wake up the ESP8266 from the deep sleep mode using a reed switch (or any switch). The problem is that the reed switch (or any switch) may generate multiple "events" and I need to reset the ESP-12E only once.

Is there a way to ignore all subsequent LOW signals applied to the RST Pin until the system is in the deep sleep mode again?

Thank you. :-)

Re: Ignore subsequent [deep sleep] wake up button presses/ev

PostPosted: Sat Dec 18, 2021 7:21 am
by rpiloverbd
Are you talking about the debouncing problem? For example, you press a switch once but the microcontroller detects two presses? This problem can be solved by adding a small delay to the code.

Re: Ignore subsequent [deep sleep] wake up button presses/ev

PostPosted: Sat Dec 18, 2021 6:04 pm
by davydnorris
You'll need to do this with some outboard circuitry - the simplest would be to wire one of the pins to defeat the effect of the button while the ESP8266 is awake.

You may even be able to find a pin that the ESP itself turns high/low while it's awake and use that.

Re: Ignore subsequent [deep sleep] wake up button presses/ev

PostPosted: Sun Jan 23, 2022 5:13 pm
by Marjan Trutschl
davydnorris wrote:You'll need to do this with some outboard circuitry - the simplest would be to wire one of the pins to defeat the effect of the button while the ESP8266 is awake.

You may even be able to find a pin that the ESP itself turns high/low while it's awake and use that.


Thank you for replying. I would love to know how to wire of the pins to defeat the effect of the reed switch pulling the RST pin LOW.