OFF Grid Journal

How to connect a solar panel to a battery, in the right order

Three parts, a handful of wires and one rule about order. Get the order right and a small solar system is a calm afternoon's work.

A man's hands using a small screwdriver to tighten red and black wires into the terminals of a solar charge controller resting on top of a 12 V battery on a cluttered workbench
Photo from The Off-Grid Handbook.
In this article
  1. Why the charge controller goes in the middle
  2. What you need
  3. How to connect solar panel to battery, step by step
  4. Solar panel to battery wiring: fuses and terminals
  5. How to connect a solar panel to a charge controller
  6. Checking that it works
  7. Frequently asked questions

How to connect solar panel to battery wiring safely comes down to one rule: the panel never connects straight to the battery. It goes panel to charge controller to battery, and you wire it in a fixed order: battery to controller first, then panel to controller. The Off-Grid Handbook warns in Project 16 that the reverse order can damage the controller. Fuse the battery lead within inches of the positive terminal and set the controller to your battery type.

This guide covers a small 12-volt system with one or two 12-volt panels, the size of the Handbook's solar charging station. Anything that ties into your home's wiring, or a roof array at higher voltage, is work for a licensed electrician under local code, as the book's power chapter states.

Why the charge controller goes in the middle

A battery can't regulate how much current flows into it. The University of Arizona Cooperative Extension describes the charge controller as the part that watches the battery's charge, lets current in when it is low, and prevents overcharging and undercharging. Even a small panel connected straight to a battery can keep pushing current into it after it is full.

The Handbook calls the controller the traffic cop between panel and battery. Most also have load terminals that power DC lights or a USB panel and cut them off before the battery drains too far.

What you need

Project 16's list, for about $120 in materials:

For a bigger panel or battery, size the controller first with our guide to what size charge controller you need, and the wire with what gauge wire for 12V.

Work on a dry bench with good light, and take off rings, bracelets and metal watch bands before you touch battery terminals. Keep loose tools away from the posts so nothing can fall across them.

How to connect solar panel to battery, step by step

  1. Keep the panel disconnected. A panel makes voltage whenever light reaches it. Leave its MC4 connectors apart until the end, and set it face down or in shade while you work.
  2. Mount the controller close to the battery, indoors or in a dry spot, where you can read the display.
  3. Make the battery leads. Red to positive, black to negative. Put the fuse holder on the positive lead within inches of the battery terminal, and leave the fuse out for now. Project 16 uses a 10 amp fuse.
  4. Connect the battery to the controller first. Attach the leads to the controller's battery terminals, then to the battery posts, then insert the fuse. The display should wake up and recognize a 12-volt battery.
  5. Set the battery type. Choose the profile that matches your battery chemistry, such as LiFePO4 or AGM, as Project 20 directs.
  6. Check the panel with the multimeter. Confirm which lead is positive and that it reads a healthy voltage in daylight.
  7. Connect the panel to the controller, positive to positive, at the solar input terminals. Turn it to face the sun.
  8. Verify charging current on the controller display, per Project 16, step 5.
  9. Connect loads last: the outlet panel goes on the controller's load terminals.

Disconnecting: the same logic in reverse

To take the system apart or move it, cover or disconnect the panel first, then remove the battery fuse and leads. The controller should never be left connected to the panel without its battery.

Solar panel to battery wiring: fuses and terminals

Low voltage does not mean low risk. The Florida Solar Energy Center notes that batteries can deliver thousands of amperes under short-circuit conditions, enough to cause fires and burns, and that DC-rated overcurrent and disconnect protection is required on PV battery systems.

The Handbook's safety box for Project 16 turns that into three habits:

Project 20 adds a fuse on the panel input as well as the battery side, both sized from the controller manual. A switch that cuts the battery off completely makes maintenance safer; see our guide to the battery disconnect switch.

Which battery can live indoors

The Handbook's rule is firm: LiFePO4 or sealed AGM only in living space, never flooded lead-acid, which gives off hydrogen. Our comparison of LiFePO4 vs lead acid covers the trade-offs.

How to connect a solar panel to a charge controller

Most panels come with MC4 connectors, the snap-together plugs on the panel's two leads. Use matching MC4 leads to reach the controller, strip the far ends and tighten them under the solar input terminals, marked with a panel symbol.

Adding a second 12-volt panel? Wired in parallel, two panels stay at 12-volt nominal and suit a PWM controller, whose panel voltage must match the battery, per the Arizona extension. Wired in series, the voltage doubles and calls for an MPPT controller rated for it. Our guide to MPPT vs PWM charge controllers explains the difference.

Checking that it works

On the first sunny day, watch the display. Project 20 says the charge stages, bulk, absorption and float, should each appear across a sunny day. Bulk is the fast fill, absorption tops the battery up, and float holds it full.

Then read the battery at rest with no load running. For LiFePO4, Project 18 calls about 13.0 volts comfortable and under 12.0 volts time to charge; our LiFePO4 voltage chart has the full range.

If the display shows no charging current on a sunny day, check the simple things first: shade on the panel, an MC4 plug that isn't fully clicked together, a blown fuse, or panel leads reversed at the controller.

Common mistakes

For the complete build, with the outlet panel and battery box, follow our DIY solar charging station guide.

Frequently asked questions

Can I connect a solar panel directly to a battery?

No. Use a charge controller between them. A battery cannot regulate the current flowing into it, and the controller prevents overcharging and undercharging, as the University of Arizona Cooperative Extension explains. Even a small panel can overcharge a battery left connected for days.

Do you connect the battery or the solar panel to the charge controller first?

Battery first, then the panel. The Off-Grid Handbook warns that the reverse order can damage the controller. Once both are connected, set the battery chemistry profile and confirm charging current on the display. To disconnect, remove the panel first and the battery last.

Where does the fuse go between a solar panel and a battery?

On the positive battery lead, within inches of the battery terminal. The Off-Grid Handbook's 100-watt station uses a 10 amp fuse there. Project 20 of the book also fuses the panel input, with both fuse sizes taken from the controller manual.

What size wire do I need to connect a 100 watt solar panel?

The Off-Grid Handbook's 100-watt station uses 10 AWG leads with MC4 connectors. Longer runs or bigger panels may need heavier wire; follow the controller manual and check the wire gauge against the current and distance.

Sources

Safety guidance changes. Check the agency pages above for the current version, and follow your local code and manufacturer instructions.