So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By hfletch
#74486 Update.

I have simplified my code and software in an attempt to locate a cause.
Here is my current circuit (A jumper is soldered from the RST pin to GPIO 16 on the chip).

Image

The code is now much easier to read as well.

#include <ESP8266WiFi.h>
#include <WiFiClient.h>

const int sleepDuration = 1; //Deep Sleep Duration in minutes

void setup() {

Serial.begin(115200);
Serial.println("\n \n Serial Test"); //Test Serial Output
Serial.println("sleeping");

delay(15000);
ESP.deepSleep(sleepDuration*6000000,WAKE_RF_DEFAULT);//Enter deep sleep, code executes from beginning on reboot
delay(15000);

}

void loop() {

}


Serial Output - With a reboot after flashing with Arduino IDE

At 115200 baud

Image

At 74880 baud

Image

After the allotted time is up the blue LED blinks once and turns off.
The last line of question marks at 74880 baud appears when it should wake up.

All voltages read as previously

Any more suggestions or tips?
This problem has been recreated with two esp8266-1 modules. I might end up with a nodeMCU.
User avatar
By schufti
#74487 a) why do you use different baudrate in sketch?
especially during debug one would want to see every detail
and yes, setting 74880 in sketch works ...

b) there is something called "zombie mode" occasionally occuring after deepsleep
may depend on version of core and sdk
use google and/or boardsearch
User avatar
By hfletch
#74514 schufti,

Thanks for your suggestion. I've learned that the problem could be related to the quality of the power supply and will try experimenting with different components. The issue may also be related to the method of programming (Arduino IDE). I will try using the nodemcu firmware, LUA scripts and ESPlorer IDE.

As for the baudrates. I believe the serial output from the running software is read at 115200 while the serial outputs from the boot loader is read at 74880. Software is always flashed at 115200 baud in my case.