-->
Page 2 of 3

Re: Differentiate wakeup sleep interval vs button press

PostPosted: Wed Sep 20, 2017 6:39 am
by jankop

Re: Differentiate wakeup sleep interval vs button press

PostPosted: Wed Sep 20, 2017 8:46 am
by sayanee
Thanks! Could you confirm is this is the circuit? Looks like a possibility:
https://www.dropbox.com/s/0olpcbbbmrtm7 ... 0.png?dl=0

jarnoldbrown wrote:http://www.esp8266.com/viewtopic.php?f=32&t=8411

Re: Differentiate wakeup sleep interval vs button press

PostPosted: Thu Sep 21, 2017 2:55 am
by jarnoldbrown
The diode is round the wrong way. Also, I was assuming you were using PIO16 to wake from sleep. In which cas you need another diode from PIO16 to /RESET. One again the diode needs to have the arrow pointing away from the /RESET pin.

Re: Differentiate wakeup sleep interval vs button press

PostPosted: Thu Sep 21, 2017 6:00 pm
by sayanee
Thanks @jarnoldbrown! I have tried to simulate it on the circuit simulator: http://tinyurl.com/y8wrndog

It seems like the GPIO12 pin (which I am using to read the value right after wake up), does not hold onto LOW for long enough for the ESP to wake up so that I can read the LOW value.

jarnoldbrown wrote:The diode is round the wrong way. Also, I was assuming you were using PIO16 to wake from sleep. In which cas you need another diode from PIO16 to /RESET. One again the diode needs to have the arrow pointing away from the /RESET pin.