A battery-life estimate is a charge budget. The node spends most of its time asleep and short bursts awake, and each state draws a different current. Multiply each current by the time spent in it, add the results, divide by the period, and you have the average current. Divide the usable battery capacity by that average and you have a lifetime. The arithmetic is simple. The errors come from the inputs: currents quoted under conditions that do not match the product, sleep terms left out, and a battery capacity taken at face value.
This article works through one example from start to finish, with every current and time traced to a datasheet or labelled as an assumption.
The model
For a node that repeats the same pattern every period T, the average current is
I_avg = (Σ I_k · t_k) / T
where I_k is the current in state k and t_k is the time spent in that state per period. The times must add up to T. Each product I_k · t_k is a charge. Working in charge per period, rather than in percentages of duty cycle, makes it easy to see which state dominates and to check the sum.
The battery side needs three corrections to the nameplate capacity: the cut-off voltage the electronics can tolerate, the capacity lost to self-discharge over the product’s life, and a margin for temperature and cell-to-cell spread.
The device and its currents
The example is a sensor node built on the Nordic nRF52840. Its product specification (v1.11) lists typical currents for a set of scenarios measured at a 3 V supply and 25 °C [1]. We take three of them:
- Sleep. System ON with all 256 kB of RAM retained and wake-up from the RTC running on the internal RC oscillator: 3.16 µA (I_ON_RAMON_RTC) [1].
- Processing. CPU running CoreMark at 64 MHz from flash, crystal clock, DC/DC regulator enabled: 3.3 mA (I_CPU0) [1].
- Transmit. CPU running and radio transmitting at 0 dBm in 1 Mbps Bluetooth LE mode, DC/DC enabled: 8.1 mA (I_S0) [1].
The radio needs 140 µs between the transmit-enable task and the ready event in 1 Mbps Bluetooth LE mode with default ramp-up (t_TXEN,BLE,1M) [1]. The specification does not give a separate current for that interval, so we charge it at the transmit current. That choice overestimates slightly.
The rest of the event profile is our assumption, not a datasheet value:
- the CPU is awake for 3 ms per event to read a sensor and build the packet;
- each event sends three packets;
- each packet is 40 bytes on air, which at 1 Mbps takes 40 × 8 bits / 1 Mbit/s = 320 µs.
| State | Current | Time per event | Charge per event |
|---|---|---|---|
| Processing | 3.3 mA [1] | 3 ms (assumed) | 3.3 mA × 3 ms = 9.900 µC |
| Transmit, 3 packets | 8.1 mA [1] | 3 × (140 µs + 320 µs) = 1.380 ms | 8.1 mA × 1.380 ms = 11.178 µC |
| Active total | 4.380 ms | 21.078 µC |
A useful unit check: milliamps times milliseconds gives microcoulombs.
Average current for two reporting periods
Period T = 60 s. The node sleeps for 60 s − 4.380 ms = 59.99562 s. Sleep charge is 3.16 µA × 59.99562 s = 189.586 µC. Total charge per period is 21.078 + 189.586 = 210.664 µC. The average current is 210.664 µC / 60 s = 3.511 µA. Sleep accounts for 189.586 / 210.664 = 90.0% of the charge.
Period T = 1 s. Sleep time is 0.99562 s and sleep charge is 3.16 µA × 0.99562 s = 3.146 µC. Total charge is 21.078 + 3.146 = 24.224 µC, so the average current is 24.22 µA. Sleep is now only 13.0% of the charge.
Two checks catch most mistakes. First, the times in each period add up to T. Second, the average must lie between the lowest and highest state currents and, for a long period, close to the sleep current. At T = 60 s, 3.511 µA is just above the 3.16 µA sleep current, as it should be. At T = 1 s, the active charge of 21.078 µC spread over one second contributes 21.08 µA, and sleep contributes 3.15 µA, which gives the same 24.22 µA.
The two cases show the design levers. At one report per minute, a 10% saving in transmit time barely moves the result, but a lower sleep current does. At one report per second, the opposite is true.
The battery
Take two Energizer L91 lithium/iron disulfide AA cells in series. The nRF52840 accepts a supply from 1.7 V to 5.5 V [1], and each cell has a nominal voltage of 1.5 V [2], so the pair gives a nominal 3.0 V.
The L91 engineering datasheet (form EBC-4201L) gives a typical capacity of 3000 mAh to 1.0 V, measured at a 200 mA continuous drain at 21 °C, and notes that capacity varies with load, temperature and cut-off voltage [2]. A cut-off of 1.0 V per cell is 2.0 V for the pair, above the 1.7 V minimum of the microcontroller, so the whole rated capacity is usable by the electronics. Cells in series carry the same current, so the pack capacity is still 3000 mAh, not 6000.
A later revision of the datasheet (form EBC4201-Y) presents capacity as charts instead of a single figure [3]. Read from its constant-current chart, capacity to 0.8 V stays between about 3300 and 3500 mAh from low drains up to 1000 mA at 21 °C. Its temperature chart shows little change at a 25 mA drain between −40 °C and 21 °C, while at 250 mA the capacity at −40 °C is a little under half the room-temperature value [3]. These are chart readings, not tabulated values, so we keep the more conservative 3000 mAh from the older sheet.
Self-discharge as an equivalent current
The older datasheet states a shelf life of 15 years at 21 °C, defined as retaining 90% of rated capacity [2]. Spreading the 10% loss evenly over those years:
0.10 × 3000 mAh / (15 × 8760 h) = 300 mAh / 131 400 h = 2.283 µA.
This is a linear approximation of a curve, but it puts self-discharge in the same unit as the load. At 2.28 µA it is about 70% of the node’s sleep current. The same datasheet’s storage chart shows retention falling much faster at 40 °C, to roughly 60% after 15 years, read from the plot [2]. A node in a hot enclosure loses capacity faster than this estimate. The newer revision quotes a shelf life of 20 years at 21 °C without stating the retained fraction [3].
Derating margin
We use 80% of the rated capacity as the usable figure. This is our design margin for temperature, cell spread and ageing, not a datasheet value. Usable capacity is 0.8 × 3000 mAh = 2400 mAh.
Lifetime
Life in hours is the usable capacity divided by the sum of the load current and the self-discharge current.
T = 1 s. Total drain is 24.224 + 2.283 = 26.507 µA. Life is 2400 mAh / 0.026507 mA = 90 541 h, or 90 541 / 8760 = 10.3 years.
T = 60 s. Total drain is 3.511 + 2.283 = 5.794 µA. Life is 2400 mAh / 0.005794 mA = 414 209 h, or 47.3 years.
The second result is not a real lifetime. It is three times the 15-year span over which the older datasheet characterises storage [2], and well past the 20-year shelf life in the newer one [3]. The calculation has left the range where its inputs are valid. The honest statement is that the electronics are not the limit at one report per minute: the battery chemistry is, and the life should be quoted as bounded by the cell’s shelf life, not by the arithmetic. For comparison, ignoring both derating and self-discharge gives 3000 mAh / 0.003511 mA = 854 457 h, or 97.5 years, which shows how far an uncorrected estimate can drift.
What the model leaves out
Temperature dependence of sleep current. The tabulated sleep currents are typical values at 25 °C [1]. Figure 12 of the specification plots System ON current with no RAM retention against temperature, and it rises from about 1 µA at 25 °C to about 10 µA at 85 °C (read from the plot) [1]. At T = 60 s, where sleep is 90% of the charge, a similar rise in the retained-RAM mode would dominate the budget. Use the sleep current at your worst-case operating temperature.
Regulator conditions. The specification’s common conditions for its current scenarios use the LDO regulator unless a scenario states otherwise [1]. The sleep figures above are LDO figures, while the processing and transmit figures are with the DC/DC regulator. Mixing them is acceptable for a first estimate, but measure the real board in its real configuration.
Battery internal resistance. The newer datasheet gives a typical internal resistance of 120 to 240 mΩ per cell [3]. With two cells at the high end, 0.48 Ω, the 8.1 mA transmit current drops 0.48 Ω × 8.1 mA = 3.9 mV. For this load the drop is negligible. For a cellular modem or a Wi-Fi radio drawing hundreds of milliamps, repeat the check at low temperature.
Everything else on the board. Sensor sleep current, regulator quiescent current, pull-up resistors and leakage paths all add to the sleep term. At one report per minute, a single 1 µA leak would add 1 / 3.511 = 28% to the load current.
Protocol overhead. We assumed three 40-byte packets and a fixed 3 ms of processing. A real stack adds connection events, retries and scanning windows. Replace the assumed rows with values measured on the target firmware.
A procedure that holds up
- List every state the node enters, including boot, sensor warm-up, retries and the radio ramp.
- Take each current from a named datasheet table and record its conditions: supply voltage, temperature, regulator mode and clock source.
- Mark every time value as either sourced or assumed.
- Compute charge per state per period, check that the times sum to the period, and check that the average lies close to the sleep current for long periods.
- Convert battery self-discharge into an equivalent current and add it to the load.
- Apply a stated derating margin, and cap the result at the battery’s characterised shelf life.
- Measure the current profile on hardware and replace every assumption with a measurement.
Where Takumetra can help
We can build this budget for your node, trace every input to a datasheet or a measurement, and identify which state to optimise first. We can also plan the bench measurements that confirm it. See our IoT practice, and our article on choosing an LPWAN for the radio side of the same trade-off.