[SOLVED] Deep Sleep Constantly Resetting
Posted: Tue Jan 01, 2019 11:33 pm
I am having an issue with putting the NodeMCU 1.0 (ESP8266-12E) into deep sleep. As per the instructions I have found in numerous places, I connected GPIO16 (marked D0 on the board) to RST. I uploaded simple code to light the on-board LED for a set amount of time, turn it off and then deep sleep. The board goes into deep sleep but once the wake-up signal is sent to RST it constantly resets the board.
Powering up the ESP8266 with RST already connected to GPIO16 also causes the board to constantly reset. I have tried the exact same code and wiring on two units and I am experiencing the same problem. I noticed some people also had this issue but never found a solution.
Am I doing something wrong or is there another issue at play here?
This is the code that was flashed to the unit using Arduino IDE.
Powering up the ESP8266 with RST already connected to GPIO16 also causes the board to constantly reset. I have tried the exact same code and wiring on two units and I am experiencing the same problem. I noticed some people also had this issue but never found a solution.
Am I doing something wrong or is there another issue at play here?
This is the code that was flashed to the unit using Arduino IDE.
Code: Select all
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
delay(5000);
digitalWrite(LED_BUILTIN, HIGH);
ESP.deepSleep(10e6); // 10 seconds
}
void loop() { }