Power and batteries
How battery-powered IoT devices sleep, why datasheet sleep figures from different makers cannot be compared directly, how regulators and lithium cells fit in, and how to measure current properly.
Overview
A battery-powered device spends most of its life asleep, and its battery life is set by how deeply it sleeps, how often it wakes and how long the radio stays on each time. This hub is for makers who want a sensor to run for months and for product teams who must publish a defensible figure. It explains sleep modes, why sleep figures from different makers cannot be ranked, and covers regulators, lithium safety, energy harvesting and current measurement.
For the arithmetic, use our power budget worksheet, which is backed by a committed, tested calculation script. This page does not do the sums by hand.
Key ideas
A sleep mode is a list of what stays on
Each sleep level turns off more of the chip. The ESP32-C5 datasheet (v1.5, Table 5-12) shows the pattern. In Light-sleep the main CPU stops and peripheral clocks are disabled, at a typical 0.25 mA, and the datasheet says wireless connections can remain active. In Deep-sleep only the LP (low-power) system stays on, including the RTC (real-time clock) timer and LP memory, which holds the wireless connection data, at a typical 0.012 mA. With CHIP_PU held low the chip is off, at a typical 0.002 mA. The LP CPU can stay powered in Deep-sleep, so a small program can check a sensor without waking the main core. Deeper sleep costs time on the way back: the ESP32-C6 datasheet (v1.6) notes that Deep-sleep takes longer to wake up from. Measure the wake-up as well as the floor.
Sleep figures from different makers are not comparable
Makers quote sleep in different units, under different conditions, with different blocks left on. Here are the lowest commonly quoted figures for four chips, each with the conditions its maker gives:
| Chip | Figure | Mode and conditions as stated | Source |
|---|---|---|---|
| ESP32-C5 | 12 µA typical | Deep-sleep, RTC timer and LP memory on | Datasheet v1.5, Table 5-12 |
| ESP32-C6 | 7 µA typical | Deep-sleep, RTC timer and LP memory on | Datasheet v1.6, Table 5-11 |
| RP2350 | 188 µW total, typical | Low-power state P1.7, all supplies 3.3 V, room temperature, USB PHY off | RP2350 datasheet, Table 1692 |
| nRF54L15 | down to 0.8 µA | System OFF with the global RTC running, 3.0 V | Nordic product page (vendor page, not the datasheet table) |
The RP2350 figure is power, not current. The nRF54L15 figure comes from a product page, not a datasheet table. Each mode keeps a different set of timers and memory alive. Any ranking built from this table would compare unlike things. Use it to see what to ask for: the mode, what stays on, the supply voltage, the temperature and whether the figure is typical or maximum.
All four are chip figures. A devkit draws more. The ESP32-C5-DevKitC-1 v1.2 carries a USB-to-UART bridge, a 5 V to 3.3 V regulator, a power LED and an RGB LED, all fed from the same supply.
The budget is an average over a full cycle
Battery life depends on the average current over one complete sleep-wake cycle: the sleep floor for most of the time, plus short, tall peaks for wake-up, sensor reading and radio. The peaks are brief but large, so they can dominate. Measure a whole cycle, not only the floor.
Regulators have modes and a floor of their own
The regulator converts the battery voltage to the chip’s supply, and it draws current even when the load sleeps. Check its quiescent current in the regulator datasheet, at your load. The Raspberry Pi Pico 2 W accepts 1.8 V to 5.5 V on VSYS and uses a buck-boost switching regulator to make 3.3 V. It runs in PFM (pulse frequency modulation) by default for efficiency at light load. Forcing PWM mode lowers ripple but costs efficiency, so switch it only while you need a quiet ADC supply (/topics/sensors-and-actuators/).
Lithium cells need their protection intact
Lithium-ion and lithium-polymer cells store a lot of energy in a small volume. IEC 62133-2 sets requirements and tests for the safe operation of portable sealed secondary lithium cells and batteries, covering intended use and reasonably foreseeable misuse. Buy cells or packs that state compliance and include a protection circuit, charge them only with a charger designed for that chemistry and within the cell maker’s datasheet limits, and never bypass or modify the protection. Give the cell mechanical protection in the enclosure, away from sharp edges and heat sources. The battery pack enclosure build shows one way to do that.
Energy harvesting moves the problem to storage
A solar cell or other harvester produces power only some of the time, and may deliver less than the radio needs during a burst. The design question becomes storage: a capacitor or rechargeable cell sized to carry the device through the longest dark or idle period, plus a power-management chip that can start from an empty store. Size the harvester from measured average consumption, not from the sleep figure.
Measure the right thing with the right instrument
Device current spans from below 1 µA asleep to tens of milliamps with the CPU and radio active. Nordic’s Power Profiler Kit II covers 200 nA to 1 A at 100,000 samples per second, from 0.8 V to 5 V, either supplying the device or measuring in series. Check that any instrument you use samples fast enough to capture a radio burst, not only an average. On the ESP32-C5-DevKitC-1 v1.2, Espressif provides jumper J5: remove it and connect the meter across it to measure the module alone, without the board’s USB bridge and LEDs. Our current measurement method gives the full bench procedure.
Where to start
/learn/beginner/08-power-and-sleep/ puts a board into deep sleep, sets wake sources and shows why a devkit draws more than the datasheet says. /learn/beginner/05-sensors-over-i2c/ sets the sensor up in a low-power mode. /learn/beginner/10-printing-an-enclosure/ covers housing a battery safely.
Tools and platforms
| Job | Option | Why | Source |
|---|---|---|---|
| Measure sleep and radio peaks | Nordic Power Profiler Kit II | 200 nA to 1 A, 100 ksps, source or series mode | Nordic PPK2 |
| Measure the module, not the board | J5 jumper on ESP32-C5-DevKitC-1 v1.2 | Isolates the module from board peripherals | DevKitC-1 user guide |
| Run logic while the main core sleeps | ESP32-C5 LP core | LP CPU and LP memory powered in Deep-sleep | ESP32-C5 datasheet v1.5 |
| Run from a battery between 1.8 and 5.5 V | Pico 2 W VSYS input | 1.8 to 5.5 V into a buck-boost regulator | Pico 2 W datasheet |
| Turn measurements into battery life | Our power budget worksheet | Committed, tested calculation script | Worksheet page |
| Choose a lithium cell or pack | Cells stating IEC 62133-2 compliance, with protection | Standard covers foreseeable misuse | IEC 62133-2 |
For makers
Get the firmware sleeping first, then measure. Remove the J5 jumper (or your board’s equivalent) and measure across it, so the USB bridge and LEDs do not hide the result. Record one full wake cycle, not only the sleep floor. Use protected cells from a known supplier with a matching charger, and do not open or modify a pack.
For product teams
Specify sleep current with the mode, what stays on, supply voltage, temperature and typical or maximum, for the chip and separately for the assembled product. Measure several units across temperature. Account for regulator quiescent current, sensor standby and leakage through dividers and pull-ups. Buy cells with the safety certifications your markets require, design the pack enclosure for them, and plan transport rules for lithium batteries early.
Common mistakes
- Ranking chips by sleep figures taken under different conditions and in different units.
- Measuring a devkit through its USB port and reporting it as the chip’s current.
- Budgeting from the sleep floor and ignoring radio peaks and connection time.
- Using a multimeter too slow to see a radio burst.
- Bypassing a cell’s protection circuit to get a little more capacity. Never do this.
Going deeper
- ESP32-C5 Series Datasheet v1.5, section 4.3 (low-power management) and Table 5-12.
- RP2350 Datasheet, section 14.9.7 (power consumption).
- Raspberry Pi Pico 2 W Datasheet, section 3.4 (powerchain).
- IEC 62133-2, the safety standard for portable lithium cells and batteries.