I'm trying to get the deepSleep() function working on a Wemos D1 mini. The board hangs after the first wake up.
I connected D0 to the RST pin with a simple wire.
I use the following arduino sketch.
When started, I get the first "Before deepSleep" string. Then, the board goes to deepsleep.
It wakes up exactly after 10s but it hangs. (I know it wakes up because I get garbage in the terminal, but I never get the second "Before deepSleep" string).
How is the CH_PD pin connected on the D1 mini ? From what I read, it may be the cause of this hang.
How should I wire the D1 mini to get the deepsleep function working properly? I already tried to add a pullup on GPIO0 & GPIO2.
The bellow code works fine on one of my nodemcu boards with only a wire connected between D0 and RST.
Regards,
Redge
#define SECONDS_DS(seconds) ((seconds)*1000000UL)
void setup() {
Serial.begin(115200);
delay(1000);
Serial.println(F("Before deepSleep"));
ESP.deepSleep(SECONDS_DS(5), WAKE_RF_DISABLED);
}
void loop() { }
reply quote 0