Low Power ESP8266 – Sleeping at 78 micro Amps

I recently bumped into NodeMCU firmware for the ESP8266. It’s an Lua interpreter, making tinkering with IoT ideas really simple. Just flash the firmware onto the ESP8266 and connect via serial console. You can start prototyping right away using the interactive Lua interpreter. You can easily persist your ideas on a simple flash file system.


For convenient development, there is ESPlorer, a basic IDE for Lua on the NodeMCU. It allows you to develop the Lua scripts locally and then save them to the MCU via serial protocol.

To make developing with the ESP-01 module easier, I created a basic development board. It provides easier access to the individual pins, has jumpers for flashing mode (GPIO00) and enable (CH_PD), offers a button for reset, and also integrates a socket for a step-down power supply.
ESP8266 (ESP-01) dev board top-view ESP8266 (ESP-01) dev board side-view
ESP8266 (ESP-01) dev board front-view ESP8266 Development Board

Although NodeMCU provides access to the deep-sleep mode of the ESP8266


this is not available straight away on the ESP-01 module, as the ‘post-sleep-reset-pin’ XPD_DCDC (8) of the MCU is not connected to the reset pin. I solved this by manually soldering a single wire of a stranded cable between the reset pin of the module and the XPD_DCDC (8) pin of the MCU (bottom right corner of the mcu in the first photo). On top of this, I also removed the red power LED by simply prying it off with a tiny screw driver.
With these two modifications, the module is able to make use of the deep-sleep mode and successfully resets and restarts after waking.

During deep sleep the module now uses just 78 microAmps! On two normal AA batteries with 2600mAh, that’s good for well over 3 years!

Update 2015-04-12:

Due to frequent questions about the Fritzing file or schematics, I uploaded the Fritzing file:
(if the file extension gets mixed up, apply .fzz manually)

Update 2015-11-18:

Marv Marvelous over at http://blog.grafovision.sk/ translated this article into Slovak. Thanks Marv!

46 thoughts on “Low Power ESP8266 – Sleeping at 78 micro Amps

  1. Pingback: Hack allows ESP-01 to go to Deep Sleep | Hack The Planet

  2. Pingback: Hack allows ESP-01 to go to Deep Sleep | 0-HACK

  3. Markinhos

    Can you use interruptions to wake up the module when is in deel sleep mode? Or just with a timer?

    Nice work!

  4. Pingback: ESP8266 – Low Power Sleeping - Hacked Gadgets – DIY Tech Blog

  5. Pingback: ESP8266 – Low Power Sleeping | Hi-tech news

  6. Pingback: ESP8266 – Low Power Sleeping • W1GNL WebsiteW1GNL Website

  7. Pingback: A conencted world with the ESP8266 | stijnvandrunen.nl

  8. Ales

    It would be great if one version of ESP8266 would come with all pins on the site.
    A combination of ESP-01 and ESP-03 would be perfect.
    Breadboard friendly and more pins available so we we could focus more on development instead of making it work as it should.
    Who’s in to start a petition for Espressif Systems to do it?

  9. Yusuf BAYLAV

    It is really a great job. It would be superb if you make a YouTube video on this.

  10. Yusuf BAYLAV

    Tim, can you at least provide more details for you simple dev board for newbies? I’m really interested on it.

  11. Tim Post author

    I’m sorry, I’m rather busy these days.
    A few brief words: The board is just for convenience and not needed for the dsleep function. Dsleep just relies on that tiny wire between the reset pin and the XPD_DCDC pin.

  12. Dennis H

    Hi… I have tried to get it into deep sleep for some time now.

    When idle, it uses about 68mah
    In deep sleep, i can’t get lower than 12mah.

    Is my meter brooken, or am i missing something? – The “hack” with the wire to RST, is only if you want it to wake up right?

  13. Tim Post author

    yea, the wire is just to reset after sleep… Any other components drawing current?

  14. Leonard

    I just followed this guide, except for pulling off the LED. Only the wire seems to be needed. Pulling off the leds is only for saving the current for that. So you might want to leave the leds in place for developing purposes and only remove it if the module will be in the field.

  15. danz

    Can you post the schematic of the board? The fritzing pic is so messy

  16. Tim Post author

    I don’t have the time to look into schematics right now, but I uploaded the Fritzing file. Check the update at the end of the post.

  17. Toni

    I’m a bit puzzled; why isn’t the post-sleep-reset-pin connected to reset by default on the chip itself?

  18. Tim Post author

    Good question, I suppose it’s a bit more flexible in its application this way?

  19. plucker

    you can use the reset pin to wake up from deep sleep, not really an interrupted as the soc will reset the user program. The wake up signal pin can be used as gpio as well
    This explains why the connection is not done in the chip.

  20. Pingback: ?????? ????? ? ?????????? ??????? ESP8266 | Zit@i0

  21. Pingback: ??? ????? ?esp8266 esp-01 | ?????? ??? ??? ???

  22. John

    What’s the capacitor under the ESP8266 for and what’s its value?

  23. Tim Post author

    That’s to smoothen the power supply… I can look up the value when I get home…

  24. Sascha

    Found you over Google. Nice work!

    One question – if you put your ESP to sleep, does PWM still work?

    – Set PWM to X%
    – Set ESP to sleep

    Is PWM still active at X%?

  25. Tim Post author

    Good question 😉
    I might give it a try and report here if I find out anything…

  26. Dave Whittington

    I’d like to use the ESP 8266 as a means to locate (using a cellphone with the WIFI Analyzer app) small things – i.e., just for maybe 30min after turning the chip on. The problem is that I need to use something like a CR1025 battery (10mm radius) to power it and I don’t think that battery has enough current capacity. If I could make it just activate for 2 minutes and then sleep for 1min – but how much added circuitry would that require. Any ideas? Thanks!


  27. Tim Post author

    I cannot say this for sure, but I don’t think you would need any additional components. Apply the dsleep hack, program the module, pull CH_PD high, and apply the 3V power supply from the cell.

  28. Pingback: Let your Arduino get enough sleep | fadvisor.net/blog

  29. DL

    I did some testing in preparation for a battery powered application and found that it takes about 300ms to wake up from deep sleep. During that 300ms wakeup period, the ESP8266 consumes about 70ma, with short (10-20ms) spikes of up to 500ma. The 300 ms does not include any time needed to connect to a network.

    For me, this means that deep sleep will not result in the kind of power savings I was looking for so that I could have a battery powered application report data every 2 seconds. It suggests that deep sleep will not result in substantial net power savings unless sleep is for an extended period. The current spikes also indicate that that the power source must be capable of supplying 500 ma for short periods. Alkaline batteries should work, but coin cells should not due to high internal resistance.

    I am now going to check out other sleep modes not needing a full reset.

    NB Measurements were made by placing 1ohm resistor in series with the power source and observing the voltage across the resistor on a scope. If you do this, be sure to isolate the grounds by using either a battery powered chip or a battery powered scope.

  30. Pingback: ESP8266 | Mickology

  31. Pingback: ESP8266 – Deep Sleep low power | Moderný blog o technike a vývoji

  32. YellowSky

    Im’ wondering how what is your firmware because when i use nodemcu the current in deep sleep mode is 3mA (50 times more…)

  33. Pingback: ESP8266 vs Sub 1-Ghz? | LowPowerLab

  34. Trevor

    Tried to solder wire to the MCU but abandoned it after fourth attempt. I’m struggling to see and attach wire. I twisted two small strands together and tinned the wire. Then tried to solder to MCU pin. It either wouldn’t fix or looked to solder two pins. If you have any tips it would be appreciated.

  35. Pingback: Programming ESP01 (ESP8266) - Home Circuits

  36. Tim Post author

    Two strands might be too much. I used a single strand of a stranded AWG22 wire. You will need really good light, good eyes, and a steady hand.

  37. Tim Post author

    Are you certain this is just the module by itself? No other components which might draw additional current?

  38. Pingback: My Internet of Things | Einar Ingebrigtsens Playground

  39. Pingback: BitBastelei #190 - ESP8266 & AMS2302 WLAN-Temperatur- und Feuchtesensor - Adlerweb

  40. Pingback: ESP8266 module comparison: ESP-01, ESP-05, ESP-12, ESP-201, Test Board and NodeMCU – Squix TechBlog

Leave a Reply

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