Low-cost battery power for a small microcontroller project
Estimate run time and choose a battery holder and regulator from actual current and voltage requirements.
Budget the current first
Measure current while the device is awake and asleep. At 40 mA awake for one-tenth of each period and 0.2 mA asleep, the average is about 4.18 mA. A nominal 2,000 mAh pack would give about 480 hours ideally, before cutoff, converter losses and self-discharge.
Match the pack voltage over its full discharge range to the board input. Check the regulator’s quiescent current for long sleep periods and use a holder that prevents reverse insertion. For rechargeable lithium cells, use a pack and charger designed to work together.
