ESP8266 Deep Sleep with Arduino IDE


Rui Santos has written a great guide shows us what’s Deep Sleep and how to use it with the ESP8266 in the Arduino IDE.

With most of the ESP8266 modules, you can’t change the hardware to save power, but you can write software to do it. If you use the sleep functions with the ESP8266, it will draw less power and your batteries will last longer. In this guide, we’re going to talk about Deep Sleep with the ESP8266.

See the full post on his blog, Random Nerd Tutorials.

Check out the video after the break.

Join the Conversation


  1. Except for some lucky corner cases the ESP8266 is pretty useless for sleep / battery operation in the first place. There are a number of reasons for that starting with the botched “need to reset the whole chip each time you want to wake up” mechanic, all the way through each wifi reconnection and transmission eating more than your sleep current for any reasonable wake-up interval / the adjacent memory chip not being in sleep mode / most boards featuring various additional stuff like LEDs or regulators that far exceed sleep current unless you go in with a soldering iron etc. etc. etc… But hey – if you want One More Thing that needs to be charged all the time…

  2. Agree that best results require a soldering iron. There’s nothing much one can do about resetting the chip on waking up from deep sleep, because given the speed of the chip and the process used, sleeping with SRAM powered will be costly. Even many modern PICs do not fully power SRAM on deep sleep, IIRC they give you something like two special register words on the same power rail as the deep sleep circuits to store your program state. Want super fast wake? Maybe we should ask manufacturers to make a FRAM MCU, heh. ;-P

Leave a comment

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.