Learn / Power / Charging

Solar Charging a Battery Project

ReviewedIntermediate MakerAbout 6 min
LM2596
In short

Solar Charging a Battery Project: the short answer

Solar power makes outdoor sensors truly wireless, but it only works if the numbers add up. Start with the energy your project uses per day in watt-hours (Wh).

Level
Intermediate
Time
About 6 min
Topic
Power
You will learn to

Size a solar panel and battery for an outdoor sensor, and pick a charger that handles the panel safely.

Before this: Batteries: Voltage, Capacity and Runtime, Li-ion Charging and Power Safety

Solar power makes outdoor sensors truly wireless, but it only works if the numbers add up. Start with the energy your project uses per day in watt-hours (Wh). Then estimate how much energy the panel delivers: in most of India a panel facing south and tilted near the local latitude collects about 4 to 6 peak-sun-hours per day on average, fewer in the monsoon. A 1 W panel therefore delivers about 4 to 5 Wh per sunny day before losses. Charger and battery losses take another 20 to 30 %, so plan on about 3 Wh usable per watt of panel.

The battery must cover the night plus a few cloudy days. A rule for small sensors is three to five days of autonomy. A single 18650 Li-ion cell of 2,600 mAh at 3.7 V stores about 9.6 Wh; use no more than about 80 % of that to protect the cell. Lithium cells must not be charged below 0 °C or above about 45 °C, which matters on a hot rooftop in May.

Do not connect a panel straight to a lithium cell. Use a charger made for solar input, such as a CN3065 module, which accepts a 4.4 to 6 V panel, charges a single cell to 4.2 V and keeps working when the panel current is low. A TP4056 also works with a 5 to 6 V panel but can behave poorly when the panel cannot supply its full set current. Larger 12 V systems with lead-acid or LiFePO4 batteries use a solar charge controller; PWM controllers are cheap and fine for small panels, while MPPT controllers extract 15 to 30 % more energy from larger ones.

Size the panel for the energy, not the peak

A panel's rating is its output in perfect sun, which you rarely get. In practice a fixed panel yields the equivalent of a few hours of full output per day, depending on weather and season. To find the panel size, work out the project's daily energy in watt-hours, divide by the sun-hours you can count on, then allow for losses of 30 percent or more.

A 1 W project load running all day needs 24 Wh. Four effective sun-hours means at least 6 W of panel, and about 8 to 9 W once the losses are added.

Use a charge controller

Connecting a panel straight to a battery can overcharge it, and with Li-ion it can start a fire. A charge controller made for the battery type limits the voltage and current. For a single Li-ion cell, a solar charging module with an MPPT or a suitable CN3791-type board handles the panel's varying output; a simple TP4056 board is not designed for a fluctuating source.

Prevent reverse current at night with a diode or a controller that blocks it, so the battery does not feed back into the panel.

Weatherproofing and placement

Tilt the panel toward the sun and keep it unshaded, since a small shadow can cut the output a lot. Seal the electronics and cable entries from rain, and let the battery stay within its temperature range, since charging Li-ion below 0 °C damages it.

Common mistakes
  • Sizing the panel by the rated peak power instead of the daily energy.
  • Wiring the panel directly to a battery without a charge controller.
  • Charging a Li-ion cell in freezing temperatures.
Key formulas
Panel W ≈ daily Wh ÷ sun-hours ÷ 0.7
panel size with about 30 % losses
Wh = V × Ah
battery energy
Intermediate lesson · Maker plan

Practise this lesson with Maker

The explanation above is free for everyone. The practice for Intermediate lessons in every domain are part of the Maker plan at ₹499 a month, and Pro includes them too.

With Maker you also get: a worked example, a hands-on task, a 3-question check.

Common questions

What will I learn in "Solar Charging a Battery Project"?

Size a solar panel and battery for an outdoor sensor, and pick a charger that handles the panel safely.