Post topics, source code that relate to the Arduino Platform

User avatar
By theenggprojects
#80751 I have copied these two functions from your code.
Code: Select allvoid toSleep() {
  Serial.println("Going into deep sleep");
  ESP.deepSleep((60e6), WAKE_RF_DEFAULT);
  delay(500);
}

void wakeUp() {
  delay(500);
  Serial.println();
  Serial.println("Waking up from deep sleep");
}


In the toSleep function, you are adding the command ESP.deepSleep but in wakeUp you are just displaying text to your Serial Terminal but not actually waking it up. I think that's why ESP8266 is not waking up.
User avatar
By mchlrv
#80828
rudy wrote:My thought was to use a schottky diode in place of the resistors he has tried.

I'll give that a try. Any specific type that you recommend?

theenggprojects wrote:I have copied these two functions from your code.
Code: Select allvoid toSleep() {
  Serial.println("Going into deep sleep");
  ESP.deepSleep((60e6), WAKE_RF_DEFAULT);
  delay(500);
}

void wakeUp() {
  delay(500);
  Serial.println();
  Serial.println("Waking up from deep sleep");
}

In the toSleep function, you are adding the command ESP.deepSleep but in wakeUp you are just displaying text to your Serial Terminal but not actually waking it up. I think that's why ESP8266 is not waking up.

As far as I'm aware the wakeUp is done by the chip itself and there is no code needed for that. I just print the text so I know it has woken up.