-->
Page 1 of 4

ESP8266 doesn't wake from deep sleep

PostPosted: Thu Sep 30, 2021 5:34 pm
by washburn_it
Hi,
some time ago I bought 2 "HiLetgo" ESP8266 (ESP-12E), one of them is used for a small solar powered weather station with a bunch of sensors.
I've set a 10 minutes deep sleep and it's working perfectly.
The other ESP8266 seems to have a problem with deep sleep.
I tried to load the same sketch as the "weather station" but with 1 minute for deep sleep, connected D0 with RST pin, it enters the deep sleep but after 1 minute I can see the blue led blinking once (it should blink when it wakes up) but it seems that is stuck at boot.
Checking with the serial monitor if I press the RST button, the ESP boots correctly (I can see some messages on the serial monitor), after the first deep sleep when it wakes up, I can just see garbage on the serial monitor and nothing else.
At that point I have to disconnect D0 from RST and reset it manually.
What should I check?
Thank you, regards.

Roberto

Re: ESP8266 doesn't wake from deep sleep

PostPosted: Thu Sep 30, 2021 7:15 pm
by davydnorris
That sounds like a possible power issue - make sure the unit has plenty of juice

Re: ESP8266 doesn't wake from deep sleep

PostPosted: Fri Oct 01, 2021 2:14 pm
by washburn_it
Well it has the right power...I tried powering it from an USB port and also with a Raspberry Pi power supply but the problem is still there.

Re: ESP8266 doesn't wake from deep sleep

PostPosted: Sat Oct 02, 2021 5:51 am
by btidey
1. Set your serial monitor to 74880. This will enable you to see what the 'garbage' is and help diagnose the problem. The ESP9266 starts up with serial port at 74880 but then switches to 115200 during the boot process.

2. The RST pin has a capacitor to ground to assist with generating a good power on reset. This can sometimes disrupt the wake up pulse particularly if significant resistance is included in the connection to RST. I often use the EN pin instead of the RST as the wake up input as this is a raw input with no added capacitance. Using EN works the same way unless you are using the non-volatile storage on the ESP8266 as this will be cleared by the EN pulse.