WattNWave
DIY projects › Lights and LEDs

Solar lighting for a shed or garage

No mains in the shed? A small solar panel, a charge controller and a 12 V battery run LED lights every evening for years. The controller has three pairs of screw terminals: panel, battery and load. You connect two wires to each.

9V
Easy to mediumScrew terminals2 to 3 hours
New to electronics? The words used on this page
Fuse
A small part that melts and cuts the power if too much current flows. It protects the wire from overheating.
LiFePO4
A safe, long-lasting kind of lithium battery. A 12 V one is 12.8 V and charges at 14.4 to 14.6 V.
Lug, ring terminal
A metal end with a hole, crimped onto a wire so it can be bolted to a battery, fuse or busbar.
Multimeter
A hand-held meter that measures voltage. Use it to check before you connect anything.

APanel, controller, battery and lights

For lights in a shed, garage, cabin or chicken coop, away from mains power. Screw terminals · 2 to 3 hours

Solar panel12 V typeCharge controllerPV · BAT · LOAD4LED lights12 V2switch312 V batteryLiFePO4 or sealedfuse1+ positive− negative
Swipe sideways to see the whole drawing. The numbers on the drawing match the steps below.

You will need

  • 12 V solar panelWatts from the calculator
    View on Amazon
  • Solar charge controller with LOAD terminalsAmps from the calculator; with a LiFePO4 setting if you use lithium
    View on Amazon
  • 12 V batterySize and type from the calculator
    View on Amazon
  • Inline fuse holder and blade fusesFuse size from the calculator
    View on Amazon
  • 12 V LED bulbs or LED strip12 V DC types, not mains bulbs
    View on Amazon
  • Wall switchAn ordinary light switch works for 12 V
    View on Amazon
  • Red and black wire, ring terminalsGauge from the calculator
    View on Amazon
  • MultimeterTo check voltages before you connect anything
    View on Amazon

Tools

Screwdriver, wire stripper, drill, multimeter.

Step by step

  1. 1

    Connect the battery to the controller's BAT terminals, + through the fuse. The controller's display lights up.

    Check: battery first, always.

  2. 2

    Mount the panel in full sun. With it covered, connect its wires to the PV terminals: + to +, − to −.

    Check: uncover it: the controller shows it charging.

  3. 3

    Run wire from the LOAD + terminal through the switch to the lights' +, and from LOAD − to the lights' −.

    Check: 12 V LEDs only light one way round: swap the wires if a bulb stays dark.

  4. 4

    Set the controller's battery type. Switch the lights on and check them after dark.

Every connection, one by one

Tick each one as you make it. When every box is ticked, the wiring is complete.

DoneFromToWire
Battery +Fuse, then controller BAT +Red, gauge from the calculator
Battery −Controller BAT −Black
Panel +Controller PV +Red
Panel −Controller PV −Black
Controller LOAD +Switch, then lights +Red
Controller LOAD −Lights −Black

As an Amazon Associate I earn from qualifying purchases. Links open Amazon search results.

Size the panel and battery

For your lights and hours per day.

A 12 V LED bulb is 3 to 7 W. A 5 m LED strip is about 24 W.
Our suggestion
—

How this is calculated

Method
Energy per day = watts × hours. Battery Ah = that × days without sun ÷ usable share ÷ battery voltage. Panel W = daily Wh ÷ 85% (battery losses) ÷ (sun hours × 0.75). Controller A = the larger of panel W ÷ 12 V × 1.25 and light current × 1.25.
Assumptions
Usable share 90% for LiFePO4 (12.8 V), 50% for sealed lead-acid (12 V). The 0.75 factor is a rule of thumb for heat, angle, dirt and controller losses. Use the sun hours of your worst month for year-round light.
Sources
Common off-grid sizing practice; NEC 690.8 for the 1.25 factor.

Stay safe

  • Connect the battery to the controller first and the panel last. Disconnect in the reverse order.
  • Fuse the battery's + wire close to the battery.
  • Cover the panel or turn it face down while you connect it: it makes voltage whenever light falls on it.
  • Fix the panel firmly; wind can lift a loose panel off a roof.
  • Set the controller to your battery type. A lead-acid setting can overcharge a lithium battery.

Questions people ask

PWM or MPPT controller?

For a small lighting system, a PWM controller is cheap and fine with a 12 V panel. MPPT gets about 20% more from the panel and is worth it above about 100 W.

Can I use a car battery?

It works for a while, but car batteries are not made for deep, slow discharge and wear out fast. Use a sealed deep-cycle or a LiFePO4 battery.

Where should the panel face?

Towards the equator (south in the northern half of the world), tilted at roughly your latitude, with no shade in the middle of the day.

Can I add a USB socket or a motion sensor?

Yes. Wire a 12 V USB socket or a 12 V motion sensor switch to the controller's LOAD terminals, like the lights.

Written and checked by Moataz FOUAD, telecom and electronics engineer. About this site.