ESP8266 Deep Sleep with Arduino IDE

Posted on Monday, October 30th, 2017 in Arduino, tutorials by DP


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.

This entry was posted on Monday, October 30th, 2017 at 10:21 pm and is filed under Arduino, tutorials. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

2 Responses to “ESP8266 Deep Sleep with Arduino IDE”

  1. Max says:

    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. KH says:

    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 Reply to Max

Click here to cancel reply.

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

Recent Comments

  • Joe Desbonnet: Ya, I can recommend the low melting point solder. I used brand 'ChipQuik' and it's amazingly easy to use.
  • Jerome: I need a new BusPirate for the Fablab ;) Many thanks!
  • Max: Seems like an unexpectedly violent way to remove the chip indeed. A hot air station should of course do the job just fine, but in...
  • jose: Part removal described here is pure butchery, the cheapest hot air station will do a fast and clean job removing the QFP, heat air to...
  • Cody: Yes please