-->
Page 1 of 4

Deep Sleep Question

PostPosted: Thu Jan 22, 2015 3:01 am
by samehhady
Hello, I've searched the forum and was able to find how to make the ESP go for Deep Sleep and how to wake it up.

But i didn't quite understand how can I wake it up by pressing on a button, shall this button be connected to pin 16 or something?

What I want to do is to let my remote go for deep sleep after lets say 1 min of inactivity and keep like that forever, once I press on a button it should wake it up and act normally.

Also my other question, is there a way for " Forever Deep Sleep " ?

For my project is it better to use Deep Sleep or Light sleep? I want to save as much power as I can and only use the power when button pressed and being used.

Thank you.

Re: Deep Sleep Question

PostPosted: Thu Jan 22, 2015 5:20 am
by villTech
what esp module are you using?

you can disconnect the wake up pin to reset pin, then after sleep, you can use the reset pin to wake it up via a button.

Re: Deep Sleep Question

PostPosted: Thu Jan 22, 2015 1:40 pm
by gwizz
If you don't need any activity at all then you might be able to come up with a cunning circuit with a mosfet that stays 'on' powering the module until cleared by a gpio signal - this would power down the esp. The button could then reset the mosfet to turn it on again.

That way the only current consumed whilst 'off' would be the leakage through the mosfet - likely to be lower than even deep sleep.

Re: Deep Sleep Question

PostPosted: Thu Jan 22, 2015 11:18 pm
by samehhady
villTech wrote:what esp module are you using?

you can disconnect the wake up pin to reset pin, then after sleep, you can use the reset pin to wake it up via a button.


I am using the ESP-07 16 pin version

This is a good solution, but think of it. If I have a remote control with 2 buttons on and off in that case I will need 3rd button to be pressed first to start the remote before doing anything which is not that nice.

Can't I attach somehow any other pins to wakeup the ESP on interrupt ?

gwizz wrote:If you don't need any activity at all then you might be able to come up with a cunning circuit with a mosfet that stays 'on' powering the module until cleared by a gpio signal - this would power down the esp. The button could then reset the mosfet to turn it on again.

That way the only current consumed whilst 'off' would be the leakage through the mosfet - likely to be lower than even deep sleep.


This would also work but would need extra mosfet while I wanted to work directly with ESP, but do you think with this solution I can make the Mosfet be on with any button Interrupt?

Thank you guys for your replies.