Size the battery and solar panel for an ESP32, LoRa or other low-power outdoor sensor. Enter the power your project uses each day to estimate battery reserve and solar panel requirements.

If you’ve already used my ESP32 Battery Life Calculator, you can bring its daily power-use figure across. Otherwise, start with daily mAh use or average current.

Using the calculator

Start with your project’s daily power use. If you know the mAh consumed per day, enter that directly. You can also use average current and voltage. Set the number of low-sun days you want the battery to cover, then check the suggested battery and panel sizes.

The battery handles days with little sunlight; the panel replaces the energy used each day. The panel also needs spare charging capacity to refill the battery after poor weather. A large battery doesn’t make up for a panel that’s consistently too small.

Cloudy-day reserve and charging headroom

Three days of reserve is a useful place to start, not a rule for every location. A sensor that’s difficult to access or expected to run all winter may need more. The calculator also accounts for charging losses and lets you compare how quickly different panel sizes could recharge the battery.

Example: sizing a small outdoor sensor

Suppose a sensor uses 250 mAh a day from a nominal 3.7 V battery. The basic energy calculation looks like this:

Daily battery use250 mAh at 3.7 V ≈ 0.93 Wh
Low-sun reserve3 days
Usable battery capacity neededAt least 750 mAh before extra margins
Peak-sun hours3.5 per day
Assumed overall solar efficiency60%
Break-even panel powerAbout 0.44 W

That 0.44 W only replaces the energy used on an average day under the assumptions above. It leaves no margin for recharging after cloudy weather, so you’d choose a larger panel in practice. The usable battery capacity also needs allowance for battery ageing, temperature and the limits of your charging setup.

What affects the result?

Solar output changes with the season, cloud cover, panel angle and shade. The actual current drawn by your project can change too, especially if network connections take longer than expected. Treat the result as a starting point and check your finished setup with real measurements.

My outdoor sensor project

My LoRa water-tank sensor is the kind of build this tool is intended for. For the wider power setup, read my guide to powering DIY outdoor sensors. I’ve also covered the CN3791 solar charger for single-cell lithium-ion projects.

Frequently asked questions

How big a solar panel does an ESP32 need?

It depends on the complete project’s energy use and the useful sunlight at your location. A sensor that sleeps most of the day generally needs less solar power than one that runs continuously.

How big should the battery be?

Start with daily energy use multiplied by the number of low-sun days you want to cover. Then allow for usable capacity, charging losses and ageing.

Does this calculator choose a charge controller?

No. It estimates energy needs, not electrical compatibility. Check battery chemistry, charge current, input voltage and protection requirements before connecting your hardware.