Putting Numbers to It

Putting Numbers to It

Try Change Active time per cycle (s) and Sleep interval (s), then press Calculate.
Observe Compare Without Sleep Mode, With Deep Sleep, and Average current draw after pressing Calculate.
Explain Explain why weighting current by its share of the cycle changes battery life after pressing Calculate.

Technical boundaries. Battery life is battery capacity divided by average current draw. The model weights active and sleep currents by their shares of the cycle.

TipPutting Numbers to It

Average current depends on how long the device spends active and asleep, as well as the current in each state. Weight each current by its share of the cycle to estimate battery life. Context: ESP32 deep sleep with 5-minute timer wakeup for battery-powered sensor. Comparing active vs sleep power.

Formula: Battery life = Battery capacity (mAh)Average current draw (mA)\frac{\text{Battery capacity (mAh)}}{\text{Average current draw (mA)}}

Worked example: 2,000 mAh battery. Without sleep: Active 100 mA continuously = 2000100=20\frac{2000}{100} = 20 hours. With deep sleep: Active 100 mA for 10 s every 5 min (96.7% sleep at 10 µA). Average: (100 mA×10300)+(0.01 mA×290300)=3.33+0.0097≈3.34(100 \text{ mA} \times \frac{10}{300}) + (0.01 \text{ mA} \times \frac{290}{300}) = 3.33 + 0.0097 \approx 3.34 mA. Battery life: 20003.34≈600\frac{2000}{3.34} \approx 600 hours = 25 days (30× improvement).

Back to the chapter