Chat freely about anything...

User avatar
By samehhady
#7927 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.
User avatar
By villTech
#7935 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.
User avatar
By gwizz
#7960 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.
User avatar
By samehhady
#7996
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.