A weather station in the desert, a sensor on farmland, or a camera somewhere with no power: solar lets a project run on its own without changing batteries. Egypt is one of the best places in the world for solar, but the calculation has to be right, or the project will stop in the first cloudy week of winter.
The system
- The panel: converts light into DC electricity.
- The charge controller: charges the battery properly and protects it.
- The battery: stores energy for the night and cloudy days.
- The load: your project.
Panel specifications
- Pmax (W): the maximum power under lab conditions (strong sun, 25 °C).
- Vmp and Imp: the voltage and current at maximum power.
- Voc: the open-circuit voltage, higher than Vmp. The controller must be able to handle it.
- Isc: the short-circuit current, only slightly higher than Imp. So a panel behaves like a current source, and shorting it isn't dangerous the way shorting a battery is.
Note: a panel marked "12V" usually has a Vmp of about 18 V and a Voc of about 21 V, so it can charge a 12 V battery.
Types
- Mono (monocrystalline): uniform black, the highest efficiency per square centimetre, and the most common today.
- Poly (polycrystalline): speckled blue, a little cheaper and less efficient.
- Flexible: light and can be stuck on curved surfaces, but it has a shorter life and runs hotter.
- Small epoxy-encapsulated panels (the kind sold for projects): cheap, but the epoxy yellows and cracks in the sun over time. For projects that will sit outdoors for years, get a glass-fronted panel.
Connecting more than one panel
- In series: the voltages add and the current stays the same. If one panel is shaded, it holds back the whole string.
- In parallel: the currents add and the voltage stays the same. The panels must have roughly the same voltage.
The charge controller
- PWM: cheap and simple. It connects the panel almost directly to the battery, so the panel works at the battery voltage rather than at Vmp, wasting part of the power (possibly 20–30%).
- MPPT: more expensive; it runs the panel at its best point and converts the excess voltage into extra current, like a buck converter. The usable power can rise noticeably, especially in bigger systems and in cold weather.
- For very small projects (a 5–6 V panel and a lithium cell): there are dedicated solar charging modules, some with simple MPPT, such as modules based on the CN3791. If you use a TP4056, note that its maximum input voltage is limited (about 8 V), so check the panel's Voc.
Wiring order: connect the battery to the controller first, so it detects the system voltage (12 or 24 V), then the panel, then the load. Disconnect in reverse. Most controllers get damaged or confused if the panel is connected with no battery present.
The calculation
1. Daily consumption
daily energy (Wh) = average power (W) × 24
Example: a device consuming 1 W on average → 24 Wh per day. To work out the average including sleep mode, see battery life.
2. Panel power
panel power ≈ daily energy ÷ (peak sun hours × efficiency)
- Peak sun hours: not the number of daylight hours, but the equivalent in full sun. In Egypt the annual average is about 5–6 hours, dropping to about 4 in winter. Design for winter if the project must run all year.
- Efficiency: about 0.7 as a margin (panel heat, dust, the controller and the battery).
Example: 24 ÷ (5 × 0.7) ≈ 7 W → a 10 W panel as a safety margin. And if you calculate for winter (4 hours): 24 ÷ (4 × 0.7) ≈ 8.6 W, so 10 W is still enough.
3. The battery
Make it last two or three days without sun:
- 24 Wh × 3 days = 72 Wh.
- At 12 V → 6 Ah, and add a margin because the battery shouldn't be emptied completely → about 7–10 Ah.
Type: a lead-acid battery that's regularly discharged past half has its life cut sharply, so we size it at half its capacity, meaning 72 Wh needs about a 12 Ah lead-acid battery. LiFePO4 tolerates deeper discharge, lasts far longer, and handles heat better than ordinary lithium. The comparison is in the battery types article. And the solar system calculator sizes the panel and battery together.
A small example: an ESP32 sensor station
An ESP32 wakes every 10 minutes, reads the sensors, sends over Wi-Fi, and goes into deep sleep. The average over the day is about 5 mA from a 3.7 V lithium cell:
- Average power = 3.7 × 0.005 ≈ 0.019 W, so about 0.45 Wh per day.
- Panel for winter: 0.45 ÷ (4 × 0.7) ≈ 0.16 W. A 1 W 6 V panel is more than enough, and that difference covers dust and clouds.
- Battery: a 2500 mAh 18650 cell = about 9 Wh, enough for about 20 days without sun.
So in small projects, reducing consumption matters far more than enlarging the panel.
A bigger example: a 2 W camera running all day
- Energy: 2 × 24 = 48 Wh per day.
- Panel for winter: 48 ÷ (4 × 0.7) ≈ 17 W → a 20–30 W panel.
- Battery for 3 days: 144 Wh, that is 12 Ah at 12 V. Lead-acid at half capacity → 24 Ah, or LiFePO4 about 15 Ah.
Tips
- Angle and direction: point the panel south in Egypt, at an angle close to the latitude (about 25–30 degrees). A slightly steeper angle helps in winter.
- Shade: a small shadow on part of the panel (a wire or a branch) can cut its whole output by far more than the shadow's size, because the cells inside are in series.
- Cleaning: dust reduces output significantly. Clean the panel regularly.
- Heat: panel efficiency drops as it heats up, so leave air behind it.
- A diode: without a controller, a diode (preferably Schottky) stops the battery discharging into the panel at night. Most controllers include this protection.
- A fuse between the battery and the controller, close to the battery. The panel's current is limited, but the battery's isn't.
- Wiring: at 12 V over a long distance, voltage drop shows up quickly. Work out the size in the wire gauge article.
FAQ
Can I connect the panel directly to the battery without a controller? For a panel very small relative to the battery (its current under about 1% of the capacity) and with a diode, it's done with lead-acid batteries. With lithium, never: you need a charger that stops at 4.2 V.
I measured the panel at 21 V, and when I connected it, it read 13 V; is it faulty? No, that's normal. 21 V is the Voc with no load, and once connected to a battery through a PWM controller, its voltage drops to the battery's.