ESP-01 Deep Sleep not waking properly
Posted: Wed Jan 22, 2020 2:06 pm
I am trying to get my ESP-01 to go into deep sleep and wake up properly. From tutorials elsewhere I have soldered a 10k resistor from GPIO16 to RST.
Code:
Output:
There is a 20s pause after the 'Going to deep sleep for 20 seconds' line before printing the boot mode, but then nothing happens after that. Here is my flashing config: https://i.imgur.com/TdovAtD.png
What am I doing wrong?
Code:
Code: Select all
#include <ESP8266WiFi.h>
void setup() {
Serial.begin(74880);
Serial.setTimeout(2000);
delay(2000);
Serial.println("I'm awake.");
Serial.println("Going into deep sleep for 20 seconds");
ESP.deepSleep(20e6); // 20e6 is 20 microseconds
}
void loop() {
}
Output:
Code: Select all
I'm awake.
Going into deep sleep for 20 seconds
ets Jan 8 2013,rst cause:5, boot mode:(3,4)
ets_main.c
There is a 20s pause after the 'Going to deep sleep for 20 seconds' line before printing the boot mode, but then nothing happens after that. Here is my flashing config: https://i.imgur.com/TdovAtD.png
What am I doing wrong?