Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Krislds
#91620 Hi,

I'm new to this forum and a new to the ESP8266.

I've been trying to get my ESP8266 Thing to go into very low power mode. Seems quite straightforward, but I noticed that it only stayed at 78 uA for a moment before jumping to a steady 540 uA. See link below. Has anyone else experienced this before? It's as though a peripheral is suddenly switching on. I couldn't find much in the way of documentation, so debugging is very difficult. Any help would be much appreciated.


Code: Select all#include <Ticker.h> // Ticker can periodically call a function
Ticker blinker; // Ticker object called blinker.

int ledPin = 5; // LED is attached to ESP8266 pin 5.
uint8_t ledStatus = 0; // Flag to keep track of LED on/off status
int counter = 0; // Count how many times we've blinked

void setup()
  pinMode(ledPin, OUTPUT); // Set LED pin (5) as an output
  blinker.attach(0.25, blink); // Ticker on blink function, call every 250ms

void loop()


void blink()
  if (ledStatus)
    digitalWrite(ledPin, HIGH);
    digitalWrite(ledPin, LOW);
  ledStatus = (ledStatus + 1) % 2; // Flip ledStatus

  if (counter++ > 20) // If we've blinked 20 times
    ESP.deepSleep(60000000, WAKE_RF_DEFAULT); // Sleep for 60 seconds