ESP Sleep Modes: The Five Power States and Deep Sleep Mastery
ESP Sleep Modes: The Practical Guide to Not Killing Your Battery
Here's something that surprises new IoT developers: a device that runs 24/7 isn't always better than one that sleeps most of the time. For battery-powered sensors, aggressive use of sleep modes is what separates a device that lasts a week from one that lasts two years. Let's talk about how ESP sleep modes work.
The Five Modes, Explained Simply
The ESP32 family has five power states. Most tutorials only mention deep sleep, but understanding all of them lets you pick the right tool for each job.
| Mode | Current | CPU Running? | Wi-Fi Active? | Wake Sources |
|---|---|---|---|---|
| Active (Wi-Fi TX) | ~240 mA peak | Yes | Yes | — |
| Active (CPU only) | ~20–80 mA | Yes | Off | — |
| Modem Sleep | ~20 mA | Yes | DTIM sync only | Automatic |
| Light Sleep | ~0.8 mA | Paused | Suspended | Timer, GPIO, UART, touch |
| Deep Sleep | ~10 µA | Off | Off | Timer, EXT0/1, touch, ULP |
Note: Current values are typical for ESP32 modules with LDO regulators. Actual consumption depends on module variant, operating voltage, and temperature. Deep sleep current on bare ESP32 chip can be as low as 5 µA; module-level consumption includes LDO quiescent current.
Sign In Or Register Comment after
No comments yet. Be the first to comment!