D13 · Lesson 2 · Solar sensor node
Sizing a solar panel and battery for a node that must never go dark, the daily harvest from a clear-sky profile, the load's daily energy, the balance on clear and cloudy days, the trade between panel and battery, and an hour-by-hour simulation that finds the smallest panel for a worst-case week
A solar sensor node has to keep working through the night and through a run of gray days, on energy it gathered earlier. Too small a panel and the battery drains a little every day until the node dies in winter; too small a battery and it dies on the third cloudy day however big the panel is. Adding up energy per day gives a first answer in a minute. An hour-by-hour simulation of a worst-case week gives the real one, because the battery fills up and wastes sunshine, and it empties at night.
- The battery's energy over a week for a panel of peak power P, a steady load L and weather factor k (1 for clear, 0.1 for heavy cloud), starting full. This sketch doesn't stop the battery at full or empty; the dashed lines show where it really would.
- Each day the panel adds a half-sine of energy around noon and the load takes a straight-line slope. Over a day the panel delivers Wh.
- If the line drifts down day by day, the panel is too small for that weather. Find the panel that holds it level on clear days, then lower k.
Predict
A node draws an average of 120 mW. With a 5 Wh battery, roughly how long can it run in complete darkness?
120 mW is 2.88 Wh a day, so 5 Wh lasts 5/0.12 = 41.7 h, under two days. Three cloudy days in a row would empty it even with some harvest, which is why the battery has to be sized for the worst stretch of weather, and the panel for recharging afterward.
Name it
Daily energy
A clear day's sunshine on a fixed panel is roughly a half-sine from 6:00 to 18:00, so a panel of peak power P (watts at full sun) collects
about 7.6 peak-hours, with η the charger and battery efficiency (0.9 here) and k the weather factor. Real figures depend on latitude, season and tilt, and are tabulated as peak sun hours. The load takes Wh a day.
Two sizes
- Panel: on the days you design for, , so .
- Battery: enough for the longest dark stretch, for N days, divided by the usable depth of discharge.
The two trade against each other: a bigger battery rides out a bad week with less panel, but the panel must still break even over the season, or the node drains slowly however big the battery is.
Simulating
The daily sums miss two things: a full battery wastes sunshine, and an empty battery stops the node even if tomorrow is sunny. Stepping hour by hour, adding harvest, subtracting load and clipping to the battery's range, catches both. Run it for the worst week you design for, starting from the charge the battery would have then, not from full.
Worked example
What panel keeps a 120 mW node level on clear days, and on days with k = 0.1?
Show the solution
- Clear days.
- Days with k = 0.1.
- Let the battery cover bad days. Designing for permanent heavy cloud would be extravagant, which is where the battery comes in: it carries the node through a few bad days, and the panel only has to refill it afterward.
Answer 0.42 W on clear days, and 4.2 W at k = 0.1.
Worked example
The lab's simulation finds the smallest panel for a week of two clear days, three at k = 0.1 and two clear, starting full. What does it give for 5, 10 and 20 Wh batteries?
Show the solution
- Run the simulation. The smallest panels it finds are
- The 10 Wh result. 0.38 W is below the 0.42 W a clear day needs to break even, so that node would drain over a sunny month.
- The 20 Wh result. 20 Wh simply lasts the whole week on its own.
- What to simulate instead. A one-week run that starts full flatters a big battery; simulate a whole season, or start the bad week at the charge a long run leaves.
Answer 2.46 W, 0.38 W and 0.006 W, though the last two are misleading because a one-week run that starts full flatters a big battery.
Check
Simulate the battery hour by hour and find the smallest panel for a bad week.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
A 1 W panel sees weather factor 0.2, with a half-sine of sun from 6:00 to 18:00. How much energy does it deliver in a day, before charging losses?
Write units the way you normally would: 1.5 Wh, 1500 mWh and 0.0015 kWh are the same answer.
Check
A node draws 50 mW on average, and charging is 90% efficient. What panel breaks even on days with weather factor 0.3?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
A node draws 10 mW and must run 3 days with no sun, using at most 0.8 of the battery's capacity. What capacity does it need?
Write units the way you normally would: 1.5 Wh, 1500 mWh and 0.0015 kWh are the same answer.
Check
A solar panel of 50 cm² with 15% efficiency gets 5 peak-sun-hours a day (1 kW/m² equivalents).
(a)
How much energy does it harvest per day?
Write units the way you normally would: 1.5 Wh, 1500 mWh and 0.0015 kWh are the same answer.
(b)
What average power is that over 24 hours?
Check
A battery of 1000 mAh feeds a node averaging 0.1 mA with no sun at all. How many days does it last?
Explain why
Why can't a large enough battery make up for a panel that's too small?
A battery only stores energy; it doesn't make any. If the panel harvests less than the node uses on an average day, the battery loses a little every day, and however large it is, it eventually runs down; a bigger battery only delays that. The battery's job is to cover the gap between when energy arrives and when it's used, through each night and through a few bad days, while the panel has to supply at least the node's total consumption over the season. Sizing needs both: the panel from the long-run energy balance and the battery from the longest stretch the node must ride out.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.