LiPo / 18650 Battery Life & IoT Deep-Sleep Runtime Calculator — Engineering Notes & Troubleshooting
Why does a 2500 mAh 18650 cell die in 16 hours on an always-on ESP32, yet last over 200 days with Deep Sleep? Tune battery capacity, active current, sleep current (µA), and wake interval to visualize real IoT battery longevity.
Cheap DevKit boards burn 3–10 mA in deep sleep because their USB-UART bridge and power LED stay ON — use a low-quiescent board (e.g. FireBeetle / Feather) for true µA sleep!
- Always apply an ~85% usable capacity derating factor — real batteries hit cut-off voltage before delivering 100% of their printed mAh rating.
- Average Current = (I_active × T_active + I_sleep × T_sleep) ÷ (T_active + T_sleep). Shaving sleep current from 5 mA down to 20 µA multiplies runtime by 100×!
| Symbol | Component | Real-World Engineering Tip |
|---|---|---|
| BAT | 18650 Li-Ion / LiPo Battery Pack | Always include a DW01A / TP4056 protection board so the cell never over-discharges below 2.8 V or shorts! |
Real-World Bench Scenario: Solar/Battery Weather Node: Wake ESP32 for 3 seconds every 15 minutes (120 mA active, 25 µA sleep) on a 2500 mAh 18650 → ~1.1 years on one charge!
Bench Challenge: Power Optimization: Toggle between 'Always-On Wi-Fi' and 'Deep Sleep (15 min wake)' to watch runtime leap from hours to months!