Shop by category
Shop all componentsPower, batteries & solar
I avg = I active × D + I sleep × (1 − D)Life (h) = capacity (mAh) × usable % ÷ I avg (mA)A 2000 mAh cell powering a 80 mA load all the time: 2000 × 0.8 ÷ 80 = 20 hours. An ESP32 awake (80 mA) 1.7% of the time and sleeping at 10 µA averages 1.37 mA, so the same cell lasts about 49 days.
Battery capacity in mAh tells you how many milliamps a battery can deliver for one hour. Divide by your average current and you have the runtime. In practice you get less: the device stops before the cell is truly empty, capacity falls in the cold and with age, so assume about 80% is usable.
For battery IoT projects, sleep current matters far more than active current. A board that sleeps at 10 µA can last months; one with a power LED and a USB chip drawing 10 mA lasts days. Measure the real sleep current with a multimeter in series.
Divide capacity by average current: at 20 mA that is about 100 hours, less about 20 % for real-world losses.
Sleep current is often thousands of times lower than active current, so a device awake 1 % of the time can run for months instead of days.
Regulator quiescent current, LEDs left on, cold temperatures and battery ageing all reduce runtime. Measure real current with a multimeter.
I avg = I active × D + I sleep × (1 − D); Life (h) = capacity (mAh) × usable % ÷ I avg (mA).
A 2000 mAh cell powering a 80 mA load all the time: 2000 × 0.8 ÷ 80 = 20 hours. An ESP32 awake (80 mA) 1.7% of the time and sleeping at 10 µA averages 1.37 mA, so the same cell lasts about 49 days.
Geekobot builds that use it include DIY 18650 power bank, 18650 charging station with USB output, Bike speedometer and trip meter and Microclimates around the school. Each has the full parts list, wiring and code.
Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators