Tutorials
nRF52840 Motion Logger Power: Measure Charge per Logging Cycle
Published · Updated
Measure a complete recording cycle, including storage or radio bursts. A stable sleep-current number can miss the charge consumed by reconnects and writes.
Integrate current over a stated boundary

In an illustrative one-second cycle, 20 ms at 8 mA plus 980 ms at 0.020 mA gives 0.1796 mA average. Each second consumes 0.1796 mC of charge. If an assumed 180 mAh is usable at the measured load and cutoff voltage, the ideal estimate is about 1002 hours, or 41.8 days. This arithmetic is a design estimate and uses no measured data.
Measure at the battery input if the question is battery lifetime. A SoC rail measurement can omit sensor, regulator losses, LEDs and flash. If input and rail voltages differ, use energy and efficiency or directly measure input current. Record the voltage at the board during peaks. Battery capacity depends on cell, cutoff, temperature and load profile.
Compare repeatable operating modes

Annotate the current trace with FIFO service, flash commit and radio events. Measure a stable connected interval, a recording interval without a phone and a representative reconnect/backlog transfer. Keep activity and logging settings comparable. Report total charge and elapsed time for each interval and combine them using expected time fractions. A single inactive sample is useful for debugging leakage but does not establish the charge budget.
Inspect software and instrument setup when a development board draws unexpectedly high current. Connected debuggers, status LEDs and USB paths can affect the baseline. A lower average current is beneficial only if records still meet the sampling and retention requirement. Check queue high-water marks and gaps in the same run as your power capture.
Will an nRF52840-only current measurement include charge drawn by external storage?
It depends on the measurement boundary. A SoC-only rail measurement excludes a separately powered storage device.
Show the three-step example

Active charge in 1 s: 8 mA × 20 ms = 0.1600 mC. Idle charge in 1 s: 0.020 mA × 980 ms = 0.0196 mC. Full cycle average: 0.1796 mA.
nRF52840 host documentation · Motion logger project and storage worksheet · FIFO watermark and service-time budget · Record the rail measurement setup · LSM6DSOX device documentation
Bring the battery-input trace, event annotations, rail diagram and intended recording and reconnect duty cycles. Prepare an engineering review.
References
Back to Tutorials