Get a quote

Free tool

Battery life calculator

Type the battery's capacity and how much of it you can use, the current while awake and asleep, how long each wake lasts and how often it happens. You get the share of time awake, the average current, the hours and days on one charge, the daily use and what a small solar panel adds.

2000 mAh, 4 wakes: 81.7 daysCurrents to days, part T-04

Free tool. Nothing to sign up for, and nothing you type leaves your browser.

A small grey sensor box with a little solar panel on a pole beside a concrete water trough and windmill on a dry Karoo farm near Graaff-Reinet

Battery life calculator

Runs in your browser, nothing is sent
The battery

A typical 18650 lithium cell holds about 2000 to 3500 mAh; an AA alkaline about 2000 to 3000 mAh at a low drain, less at a high one.

The device

0.15 mA is a bare module in deep sleep with a good regulator. A dev board with a USB chip and a power LED can draw several mA asleep: measure it.

Solar, optional

Battery life

Run time
-
Hours
-
Average current
-
Awake share
-
Used per day
-
Solar
-


Copies these results into the Details box of the quote request on this page.

An estimate from the currents you type. Real batteries lose capacity with cold, age and high drain; the battery's datasheet, a current measurement on the finished board and the engineer decide.

The same device at other wake rates
Wakes per hourAverage currentDays
10.316 mA210.7
4 (yours)0.816 mA81.7
122.148 mA31
6010.138 mA6.6

Before you seal the box

  • Measure the sleep current with a multimeter in series, on the finished board. The figure on the module's datasheet leaves out the regulator, the LEDs and the sensors.
  • Shorten the awake time first: connect, send and sleep. A Wi-Fi connection that takes seconds to find the access point costs more than the sending.
  • Cold nights and old cells cut the usable share. A lithium cell also needs a protection circuit and a charger made for it.
  • Battery and solar nodes for tanks, boreholes and cold rooms are planned on IoT development.

On a sheep farm outside Graaff-Reinet, a trough far from any plug needs a level reading four times an hour, sent over Wi-Fi to the farmhouse. The ESP32 is awake for seconds and asleep for minutes, so battery life depends on both currents and how often it wakes. This calculator turns them into an average current and days, and checks whether a small solar panel keeps up. The boards are on ESP32.

Awake, asleep and the average

The share of time awake is the awake seconds x wakes per hour / 3,600. The average current is the awake current times that share plus the sleep current for the rest. The battery's usable capacity divided by the average gives the hours. Usable is less than the label: cold nights, an ageing cell and the voltage at which the board browns out all take a share, so 80% is a sensible start. The battery's datasheet gives the real capacity at your current.

Worked example: four readings an hour

The defaults are a 2000 mAh cell, 80% usable, 120 mA for 5 seconds per wake while Wi-Fi sends, 0.15 mA asleep and 4 wakes an hour:

FigureResult
Awake share0.5556%
Average current0.8158 mA
Usable capacity1,600 mAh
Run timeabout 1,961 hours, 81.7 days
Used per day19.58 mAh

The table under the calculator runs the same device at other rates: once an hour lasts about 210.7 days, twelve times about 31 days, every minute only 6.6 days.

Sleep current decides the result

In the example the awake time costs about 0.67 mA on average and sleep about 0.15 mA, so both matter. Put the same code on a dev board with a USB chip, a power LED and a cheap regulator drawing 5 mA asleep, and the 81.7 days fall to 11.8. Measure the sleep current on the finished board with a multimeter in series before trusting any figure. Then shorten the awake time: a slow Wi-Fi connection costs more than the reading.

A small panel on the box

The solar fields work out the daily harvest: panel watts x sun hours x charge efficiency / battery voltage. A 1 W panel with 5 sun hours at 70% into a 3.7 V cell gives about 946 mAh a day, far above the 19.6 mAh used, so cloudy weeks and short winter days are what to size for. Past a year on one charge, the battery's own self discharge matters more than the load. Remote nodes are planned on IoT development.

Frequently asked questions

How long will an ESP32 run on a battery?

It depends far more on sleep current and how often it wakes than on the chip. A 2000 mAh cell that wakes four times an hour for 5 seconds lasts about 82 days with a good deep sleep design, and only days if the board stays awake or draws several mA asleep.

Why does my ESP32 battery die so fast?

Usually the dev board: its USB chip, power LED and regulator keep drawing current while the chip sleeps. Slow Wi-Fi connections are next. Measure the current in each state and type the figures in.

Which battery should I use for a sensor node?

A lithium cell with a protection circuit and a matching charger suits most ESP32 nodes, and AA cells suit very low drain designs. Check the battery's datasheet for capacity at your current and temperature, and ask the supplier about cells rated for outdoor heat.

Who will quote me for a battery powered sensor in Graaff-Reinet?

Embedded developers, IoT builders and electronics shops who work in and around Graaff-Reinet and the Karoo. Send the request on this page with what you want to measure and how often; we pass it on and they quote you directly. We build and sell nothing ourselves.

Read more

More tools

Get a quote for ESP32 board

Tell us what you need: Arduino, ESP32, Raspberry Pi, Pico or STM32 boards, starter kits, chips, components, sensors, motors and displays, a soldering station, a PLC or PLC programming, PCBs made, designed or assembled, firmware, an IoT device or an Arduino project built for you. Electronics suppliers, distributors, PCB houses, embedded developers and PLC integrators who work in your area quote you directly. We sell, stock, make or program nothing ourselves. It is free and there is no obligation. Please leave out your street address.

Parts and services requestESP32 Development Boards
Request
No. MC-7394
Status
Not sent

The request

What you want optional, it helps the quote

Your request-

The list optional

Up to 12 lines: boards, chips, sensors, motors, PCBs, hours of programming or a build.

Usual lines, tap to add:

Needs and options

You

Free and no obligation. By sending you agree that we may share your request with suitable electronics suppliers, PCB houses, developers and PLC integrators. See our privacy policy.