estimating battery life

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

estimating battery life

Post by noblerabbit » Sat Jan 19, 2019 11:16 pm

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: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: estimating battery life

Post by loboris » Sun Jan 20, 2019 10:40 am

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

Re: estimating battery life

Post by noblerabbit » Sun Jan 20, 2019 2:30 pm

Loboris,

Thanks for the fast reply.

That makes sense. Essentially I count the number of 10s wakeups before the battery goes dead and divide them by the number of expected wakeups per day (in my case 40) and I will get how many days the device should be operational.

Thanks.

Post Reply