As an Amazon Associate I earn from qualifying purchases. This page may contain affiliate links.
A DIY solar powered light is one of the most approachable first projects in off-grid electrical work. In this guide, you will size a small solar panel, battery, and charge controller for a light that runs through the night, wire the components in the correct order, and test the finished setup. The math is simple, but the details matter, especially battery capacity and charge controller settings.
What a DIY Solar Powered Light Needs
Every solar light, whether a garden fixture or a shop lamp, is a small DC power system. It has four jobs: collect energy from the sun, store it, control how it flows, and deliver it to the light. A panel converts sunlight into DC electricity, a battery stores that energy for nighttime use, a charge controller protects the battery from overcharging and deep discharge, and the LED light draws power from the battery through a switch or driver. If you are new to these roles, the overview in DIY Solar System Basics: How the Parts Work Together is a useful companion read.
Step 1: Define the Light’s Load
Start with the light itself. Read the rated wattage and voltage from the label or spec sheet. A 5-watt LED at 12 volts draws about 0.42 amps. If you plan to run it for 8 hours each night, the energy use is 5 watts times 8 hours, or 40 watt-hours per day.
- Note the light’s wattage (W) and operating voltage (V).
- Calculate current: amps = watts ÷ volts.
- Decide how many hours per night it must run.
- Multiply watts by hours to get daily watt-hours (Wh).
For a more complete method, see Solar Sizing Formulas for Loads, Batteries and Inverters.
Step 2: Size the Battery
The battery must hold enough energy to cover the night plus a margin for cloudy days. Divide your daily watt-hours by the system voltage to get amp-hours, then add margin. For example, 40 Wh per day on a 12V system needs about 3.3 Ah. Add roughly 50 percent for autonomy, giving about 5 Ah minimum. Lead-acid batteries should only be discharged to about 50 percent, so you would double that figure. Lithium iron phosphate (LiFePO4) tolerates deeper discharge and is common in newer builds. The tradeoffs are covered in LiFePO4 vs Lead-Acid Batteries for DIY Solar.
Step 3: Size the Solar Panel
The panel must refill the battery each day, even in average sun. Use the daily energy need and your location’s peak sun hours. If your site gets about 4 peak sun hours, a 40 Wh daily load needs at least 40 ÷ 4 = 10 watts of panel output, and a practical design adds 30 to 50 percent for losses. A 20-watt panel is a sensible choice here. Panel labels list rated power, open-circuit voltage (Voc), and short-circuit current (Isc). The meaning of those numbers is explained in Solar Panel Specifications for DIY Systems: What Each Number Means, and the full panel sizing method is in How to Size Solar Panels for a DIY System.
Step 4: Choose the Charge Controller
A charge controller regulates voltage between the panel and battery. For small lights, a PWM controller is adequate, while an MPPT controller extracts more energy from larger panels. Match the controller’s rated battery voltage to your battery, and confirm its current rating exceeds the panel’s short-circuit current. Many small controllers include a load output that switches the light automatically at dusk and off at dawn, which simplifies the build. Compare options in Best MPPT Charge Controllers for DIY Solar: 5 Compared.
Step 5: Wire the System in the Correct Order
Wiring order prevents short circuits and damage. Follow this sequence:
- Mount the panel in full sun, facing the correct direction for your latitude.
- Connect the battery to the charge controller first, with a fuse on the battery positive lead.
- Connect the solar panel to the controller’s PV input.
- Connect the light to the controller’s load output or through a switch and fuse.
- Only after all connections are secure, confirm polarity with a multimeter.
Disconnect in reverse order. Never connect or disconnect a live battery terminal carelessly. Proper fuse and cable selection is covered in DC Electrical Safety for DIY Solar: Overcurrent, Disconnects and Cables and DIY Solar Safety: Wiring, Fuses and Batteries.
Step 6: Test and Verify
Test in daylight first. Measure panel voltage at the controller input; it should read above battery voltage, typically 17 to 20 volts for a 12V nominal panel. Check battery voltage and confirm the controller shows charging. After dark, confirm the light turns on. Recheck battery voltage the next morning; a healthy system should be near full charge.
Mounting Considerations
Tilt the panel toward the equator at an angle near your latitude for year-round performance, or flatten it slightly for summer-only use. Shade from trees or walls can cut output dramatically, so check the site at midday. Mounting approaches are described in Solar Panel Mounting Options: Ground, Pole, Roof and Portable.
Planning Checklist
- Light wattage, voltage, and nightly run time
- Daily watt-hour requirement and battery amp-hours
- Peak sun hours for your location
- Panel wattage with a 30 to 50 percent margin
- Charge controller matched to battery voltage and panel current
- Fuses, cable gauge, and connectors rated for the current
- Multimeter for voltage and polarity checks
Quick Reference Table
| Component | Key Specification | Example for a 5W Light |
|---|---|---|
| LED light | Watts and volts | 5 W, 12 V |
| Battery | Amp-hours at system voltage | About 5 Ah (LiFePO4) or 10 Ah (lead-acid) |
| Solar panel | Watts, Voc, Isc | About 20 W |
| Charge controller | Battery voltage, max current | 12 V, 5 A or higher |
| Fuse | Rated above max current | 5 A to 10 A on battery lead |
Common Mistakes
- Undersized battery. A light that runs out before dawn usually lacks storage, not panel power.
- Ignoring winter sun. Size the panel for the worst month, not the best.
- Mixing battery chemistries. Use one battery type per bank and set the controller to match.
- Skipping fuses. Unprotected battery leads can overheat or start fires.
- Reversing polarity. Always verify with a meter before final connections.
- Placing the battery in heat. High temperatures shorten battery life. Ventilate and shade it.
Battery storage guidance appears in Solar Battery Safety: Charging, Temperature, Enclosures and Storage. If something fails after installation, DIY Solar Troubleshooting: Low Output, No Charging and Inverter Shutdowns walks through the most common causes.
Recommended gear
- Digital multimeter: Lets you confirm panel voltage, battery voltage, and polarity before connecting the load. View on Amazon
- PWM solar charge controller with load output: Handles charging and automatic dusk-to-dawn switching for small 12V lights. View on Amazon
- Inline blade fuse holder: Protects the battery lead from short circuits and overcurrent. View on Amazon
FAQ
How long will a DIY solar powered light run at night?
Run time depends on battery capacity and light wattage. A fully charged battery sized as described above should run the light for the planned number of hours, provided the panel recharged it the previous day.
Can I use a car battery?
You can, but a deep-cycle battery is better suited. Car starting batteries are designed for short, high-current bursts and tolerate repeated deep discharge poorly.
Do I need an MPPT controller for a small light?
Not always. A PWM controller works well for small panels around 20 to 50 watts. MPPT becomes more valuable with larger panels or cold climates where voltage differences are greater.
Why does my light turn off early?
Usually the battery is undersized, the panel is shaded, or the battery is aging. Measure battery voltage at dusk and dawn to find out which.
Is it safe to build this myself?
Low-voltage 12V DC systems are generally manageable for beginners, but batteries can deliver high short-circuit current. Use fuses, insulated tools, and proper cable sizing. For larger systems or any wiring connected to a building’s electrical service, consult a licensed electrician.
Can I add more lights to the same system?
Yes, but recalculate the daily watt-hour load, battery capacity, and panel output. Adding lights without resizing the battery is the most common cause of early shutdowns.
What tilt angle should the panel use?
A tilt close to your latitude works well year-round. Steeper angles favor winter, shallower angles favor summer. Fixed mounts rarely need adjustment for small lights.
Conclusion
A DIY solar powered light is a practical way to learn sizing, wiring, and battery management on a small scale. Work through the load calculation first, then size the battery and panel with margin for weather. Wire in the correct order, protect every circuit with fuses, and test before you walk away. Once the basics work, the same method scales to larger projects.