Subscribe to Arduino Academy and start learning today for FREE!

ESP8266 Deep Sleep Mode

My Adafruit HUZZAH Feather ESP8266 consumes 0.080 amps (80 ma) in normal operation. With one wire and a single line of code, I can drop that to about 0.010 amps (10 ma), according to my USB power monitor.

I connected a wire from GPIO16 (pin 16) to RESET (RST).

I’m using the Arduino IDE to program my ESP8266, so at the end of my loop, I insert

void loop() {
// other code in my sketch


Which puts the ESP8266 to sleep for 60 seconds, and then reboots, running through my code once more before going back to sleep. This greatly extends my battery life. You can change the 60 to whatever number of seconds you want the unit to sleep.

With a Adafruit TPL5110 Low Power Timer you can drop the power consumption of nearly any microcontroller or circuit to 20ua, for about $5.

Become the Maker you were born to be. Try Arduino Academy for FREE!

Notify of
1 Comment
Inline Feedbacks
View all comments
4 years ago

Let’s say my device is on battery, and asleep. I sporadically plug in power to charge it. Would that wake the device up, or would it keep sleeping?


Would love your thoughts, please comment.x