## estimating battery life

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
noblerabbit
Posts: 5
Joined: Thu Nov 22, 2018 5:25 pm

### estimating battery life

Hi,

I am running esp32 on 2 AAA batteries (1000mAh).

I am able to measure average current during operation and deep sleep but I don't have insight when it comes to current spikes during startup and wifi.

Here is the sample scenario for which I want to estimate battery life.

My ESP32 device is in deep sleep (average current <10uA) for most of the time. Wakes up 40 times per day for 10 seconds (average current 120mA).

daily awake consumption: 40 * 10 seconds / 3600 * 120mA = 0.11h * 120 mA = 13.3 mAh
daily deep sleep consumption (24h - daily awake time): 23.88h * 10uA = 0.2388 mAh

Battery life estimation: 1000mAh/(13.3 mAh + 0.2388mAh) = ~73.8 days

I this a reasonable calculation? How big is the impact of startup and wifi current spikes on the battery? Where can I find this information?

Thanks!

loboris
Posts: 317
Joined: Fri Oct 02, 2015 6:19 pm

### Re: estimating battery life

You can easily test the battery life experimentally.

As the power consumption during deep sleep is minimal, just use the minimal sleep time (for example 10-100 ms) and see how long your system runs on battery. Multiply the measured battery life time with sleep time/run time ratio.
The actual battery life will be just slightly shorter.

noblerabbit
Posts: 5
Joined: Thu Nov 22, 2018 5:25 pm

Loboris,