Page 1 of 1

ESP8266 Thing Very Low Power Mode

PostPosted: Sun Jun 13, 2021 2:48 am
by Krislds

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

Re: ESP8266 Thing Very Low Power Mode

PostPosted: Sun Jun 20, 2021 10:38 am
by Krislds
Anyone there?