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

User avatar
By Malfunction
#21591 According to my understanding, there are two ways to wake up from deep sleep:

setting a timer (ESP.deepSleep(time in uS, mode)). GPIO16 must be connected to the external reset pin for that work.
pulling down the external reset pin

Isn't there a way to wake up the chip using the GPIOs, with something like, say, a pin interrupt? Using the external reset pin isn't a great choice, because it will reset the chip even if it isn't sleeping (if, for example, I connect a motion sensor to the reset pin, the chip will be reset every time motion is detected, not only when the chip is in deep sleep).
User avatar
By tytower
#21593 You would connect the motion sensor to a pin and have code that is run by interupt when triggered I would say . Deep sleep starts the chip from scratch . Interupts dont and there are quite a few ways to sleep during running . See the wiki above
User avatar
By Malfunction
#21851 I'm sorry, but I don't understand what you're trying to say.

You're suggesting that I try running code with an interrupt. What exactly do you mean by that? Are you suggesting that I use something other than deep sleep mode?
User avatar
By martinayotte
#21856
tytower wrote:You would connect the motion sensor to a pin and have code that is run by interupt when triggered I would say . Deep sleep starts the chip from scratch . Interupts dont and there are quite a few ways to sleep during running . See the wiki above


This guy simply doesn't know any things about what he is talking ...
During deep-sleep, interrupts wont be served at all !!! The only way to go out of deep-sleep is to have a reset.