To wire a solar charge controller, connect the battery to the controller first (through a fuse near the battery), then connect the solar panels through a DC-rated breaker or disconnect, and disconnect in the reverse order. Battery first lets the controller detect system voltage before PV power arrives; most manufacturers specify this sequence, but some differ, so check your controller’s manual before you start. Size the battery fuse to protect the cable and match the controller’s output rating, and use wire thick enough to keep voltage drop low.
What you need
Before you start, gather:
- The charge controller and its manual
- Battery cable (positive and negative) sized for the controller’s output current
- PV cable from the panels, usually 10 AWG solar cable with MC4 connectors
- An inline fuse or breaker for the battery side, mounted close to the battery
- A DC-rated breaker or disconnect switch for the PV side
- Ring terminals, a proper crimper and heat shrink
- A multimeter
- Optional: a bus bar, battery temperature sensor or battery monitor shunt
Typical van wiring diagram
Here is the layout for a common 12V van system with roof panels and one MPPT controller:
Solar panels (roof)
|
MC4 cables / roof entry gland
|
PV breaker or disconnect (DC-rated)
|
Charge controller PV+ / PV-
Charge controller BAT+ / BAT-
|
Battery fuse (within ~7 in of battery)
|
Positive bus bar ---- Battery +
Negative bus bar ---- Shunt (if fitted) ---- Battery -
Two points to note. The fuse sits on the positive cable as close to the battery as practical, because it protects the cable from the battery’s very high short-circuit current. And if you have a battery monitor shunt, the controller’s negative connects on the system side of the shunt, never directly to the battery negative, or the monitor will not see your solar charging.
Step-by-step: wiring order
1. Mount the controller
Mount it vertically on a non-flammable surface, as close to the battery as practical, with clearance above and below for airflow. Most controllers shed heat through the back or fins, and they reduce output when hot. Keep it out of the battery compartment itself if the battery is lead-acid, since those can vent gas.
2. Make sure everything is off
Leave the PV breaker open (off) and the battery fuse out. Cover the panels with a blanket or cardboard if they are already mounted, or wire at dusk.
3. Connect the battery cables to the controller
Run positive and negative cables from the controller’s battery terminals toward the battery or bus bars. Torque the controller terminals to the value in the manual [VERIFY], because loose terminals are a common cause of heat and failure.
4. Connect to the battery and insert the fuse
Connect negative first, then positive through the fuse. Insert the fuse last. The controller should power up and detect battery voltage. Check the display or app: it should read your battery voltage, and if it auto-detects system voltage, confirm it chose 12V (or 24V) correctly. This is why battery-first matters: if PV is connected first, some controllers try to guess system voltage from panel voltage and get it wrong [VERIFY in your controller’s manual].
5. Connect the PV cables
With the PV breaker still open, connect the panel leads to the breaker and from the breaker to the controller’s PV terminals. Before closing the breaker, measure PV voltage with a multimeter and confirm polarity and that the voltage is under the controller’s maximum PV input voltage, with margin for cold weather.
6. Close the PV breaker
Uncover the panels and close the breaker. The controller should start charging after a short delay. If it does not, see fixing a controller that won’t charge.
7. Set the charge profile
Choose the battery type or enter custom voltages. For lithium, follow the battery maker’s values. Default settings on many controllers are for lead-acid.
Disconnecting
Reverse the order: open the PV breaker first, then pull the battery fuse. Disconnecting the battery while PV is live can leave some controllers trying to regulate with no load, which risks damage [VERIFY in your controller’s manual].

Fuses and breakers
Battery side
The battery-side fuse protects the cable between battery and controller. Size it:
- At or above the controller’s maximum output current, commonly about 1.25 times the rated amps
- At or below the cable’s ampacity
- To match the manufacturer’s recommendation when there is one
| Controller rating | Common fuse size | Typical cable (short run) |
|---|---|---|
| 20A | 25–30A | 10 AWG |
| 30A | 40A | 8 AWG |
| 40A | 50A | 6–8 AWG |
| 50A | 60A | 6 AWG |
| 60A | 80A | 4 AWG |
These are typical values for runs of a few feet [VERIFY against your controller’s manual and cable ampacity]. For a deeper look at fuse types and placement, read how to size fuses.
Use a fuse type rated for DC at your system voltage: MIDI, MEGA, ANL, or a high-quality inline blade holder for small currents. Cheap blade holders can overheat at sustained current near their limit.
PV side
A DC-rated breaker or disconnect between panels and controller gives you a safe way to shut off solar input. Choose one rated above the array’s maximum voltage (with cold-weather margin) and current. AC breakers are not a substitute; DC arcs are harder to extinguish.
With one or two strings in parallel, extra string fuses are usually not required. With three or more strings in parallel, fuse each string so one faulty string cannot take the combined current of the others. Panel spec sheets list a maximum series fuse rating.
Wire sizing
Battery-side cable carries the controller’s full output current at low voltage, so it needs to be heavy. PV cable carries lower current at higher voltage, especially with series wiring, so 10 AWG is common for most van arrays.
Size cable on two criteria: ampacity (so it does not overheat) and voltage drop (so you do not lose charge). Aim for under about 3% drop on the battery side. A short run of 8 AWG may be fine for 30A, while a longer run to a battery at the back of a van may need 6 AWG. You can calculate the wire gauge for your exact run and current.

Common wiring mistakes
- Fuse at the wrong end. A fuse at the controller end leaves the whole cable unprotected from the battery.
- Controller negative straight to battery when a shunt is installed, so the monitor misses solar charge.
- Reversed PV polarity. Many controllers survive it but some do not. Measure before connecting.
- Exceeding max PV voltage. Always calculate series Voc with a cold correction.
- Loose terminals. Re-check torque after the first few weeks of driving, since vibration loosens connections.
- Inverter on the load output. The load terminals are for small DC loads only.
- Undersized cable on the battery side, leading to voltage drop and the controller ending charge too early.
What to buy next
If you are still choosing a controller, our guide to the best MPPT charge controllers compares terminal size, monitoring and lithium settings, all of which affect how easy the install is.
Related guides
Head back to our charge controller section for sizing and lithium setup.
Related guides
FAQ
Should I connect the battery or the solar panels to the charge controller first?
For most controllers, the battery goes first so the controller can detect system voltage and power up, then the solar panels. Disconnect in the reverse order, panels first. A few models specify a different sequence, so check your controller's manual.
What size fuse goes between the charge controller and the battery?
The fuse protects the cable, so size it for the wire and at or slightly above the controller's maximum output current, commonly about 1.25 times the rated amps. Many manufacturers list a recommended fuse in the manual, and that number should take priority.
Do I need a PV breaker between the panels and the controller?
It is strongly recommended. A DC-rated breaker or disconnect lets you isolate the panels safely, which matters because panels produce voltage whenever light hits them. With three or more strings in parallel, each string usually needs its own fuse as well.
Can I connect loads directly to the charge controller?
Some controllers have a load output for small DC loads with low-voltage disconnect, but it is current-limited. Inverters and large loads should connect to the battery or a bus bar through their own fuse, never to the controller's load terminals.
What gauge wire do I need from the charge controller to the battery?
It depends on current and cable length. A 30A controller a few feet from the battery often uses 8 or 10 AWG, while 50A controllers usually need 6 AWG or heavier. Use a wire gauge calculator and keep voltage drop under about 3 percent.
