The use of the ESP8266 in the world of IoT

User avatar
By bbx10node
#31712 Try something really simple like the following to make sure ESP12 and deepSleep really work. deepSleep on a Huzzah board works fine for me.

Code: Select all/*
   Deep sleep test
   Pins RST and GPIO #16 must be shorted
*/

#define SECONDS_DS(seconds)  ((seconds)*1000000UL)

void setup() {
  Serial.begin(115200);
  delay(1000);
  Serial.println(F("Before deepSleep"));
  ESP.deepSleep(SECONDS_DS(10), WAKE_RF_DISABLED);
  // Execution resumes at the top of this function.
}

void loop() {
  // The call to deepSleep in setup() means nothing much happens here.
}
User avatar
By TheWho
#31805 Simplified the code and it FAILED....again, the red light is on. requires complete reboot to get it started again.
Failed about 1/2 way through the output line from the serial monitor.
It has to be an implementation issue...im stumped...any ideas?
User avatar
By torntrousers
#31816 DeepSleep does work ok for me and many other people posting in this forum...I know you said already that you've tried different power supplies but i do still wonder if its power related. Try skipping the regulator and powering the ESP directly from a couple of alkaline batteries?