How to Wire a Solar Charge Controller: Step-by-Step
- Always connect battery first, panels last — reversing this order can destroy your controller instantly.
- Configure battery type and voltage settings before connecting panels.
- Fuse the battery cable within 18 inches of the battery terminal.
- Verify polarity with a multimeter before making every connection.
- Never disconnect the battery while panels are connected and producing power.
The correct wiring order
This is the single most important thing to get right. Connecting in the wrong order — especially panels before battery — can instantly destroy your charge controller. No exceptions:
- Battery → Controller (first)
- Loads → Controller (if using controller's load output)
- Panels → Controller (last)
To disconnect, reverse the order: panels first, then loads, then battery last.
What you need
- MPPT charge controller
- Appropriately sized cable for battery run (see cable sizing guide)
- Fuse or circuit breaker for battery cable (sized to cable, not load)
- MC4 cables from panel array
- Multimeter
- Screwdrivers (flathead and Phillips)
- Wire strippers and crimping tool
- Ferrules or ring terminals for controller connections
Step 1: Prepare cables
- Size your battery cable correctlyUse the formula: controller amps × 1.25 to find minimum cable ampacity. A 40A controller needs cable rated for 50A minimum — typically 8 AWG for short runs under 5 feet.
- Fit ferrules or ring terminalsStrip 10–12mm of insulation from cable ends. Crimp ferrules (for screw terminal controllers) or ring terminals (for stud-type terminals). A proper crimp connection is safer and more reliable than bare wire.
- Install fuse holder on battery positive cableThe fuse must be within 18 inches of the battery positive terminal. Use an ANL fuse holder for larger cables or an inline blade fuse for smaller runs. Size the fuse to protect the cable — not the controller.
Step 2: Connect battery to controller
- Verify battery voltage with multimeterBefore connecting anything, measure battery voltage. A 12V LiFePO4 should read 12.8–13.2V resting. A 24V bank should read 25.6–26.4V. This confirms battery health and polarity.
- Connect negative cable firstRun the negative (black) cable from battery negative terminal to the BAT− terminal on the controller. Tighten securely.
- Connect positive cable with fuseRun the positive (red) cable from battery positive terminal through the fuse holder to the BAT+ terminal on the controller. The controller should power up and display battery voltage on its screen.
- Verify the controller reads correct voltageThe controller display should show battery voltage within 0.2V of your multimeter reading. If it shows zero or an error, immediately disconnect and check polarity and connections.
Step 3: Configure controller settings
Do this before connecting panels — it's much safer to configure settings with only battery connected.
- Set battery typeNavigate to battery settings and select your chemistry: LiFePO4, AGM, flooded lead-acid or gel. Using the wrong profile will damage your batteries over time.
- Set system voltage (if not auto-detected)Some controllers auto-detect 12V vs 24V from battery voltage. Others require manual setting. Verify this is correct before proceeding.
- Set custom charge voltages (if using LiFePO4)If your controller doesn't have a dedicated LiFePO4 preset, set manually: Absorption: 14.2–14.6V (12V system). Float: 13.5V. These values prevent overcharging lithium cells.
- Set low voltage disconnect (if using load output)If you're connecting DC loads to the controller's load terminals, set the low voltage disconnect to protect your batteries from over-discharge. For LiFePO4: 11.5V (12V system). For AGM: 12.0V.
Step 4: Connect panels
- Measure panel string voltage firstBefore connecting to the controller, measure your panel string open-circuit voltage (Voc) with a multimeter. This must be less than the controller's maximum PV input voltage. On a sunny day, 2× 400W panels in series will read ~80–86V Voc.
- Shade or cover panelsCover panels with a tarp or do this step at dusk/dawn to reduce voltage and current during connection. Connecting under full sun is safe but panels will immediately begin charging — be ready.
- Connect PV negative firstConnect the negative MC4 cable from the panel array to the PV− terminal on the controller.
- Connect PV positiveConnect the positive MC4 cable to the PV+ terminal. The controller should immediately show panel voltage and begin bulk charging. Current will climb to the controller's rated output within seconds on a sunny day.
Charge controller settings reference
| Setting | LiFePO4 (12V) | AGM (12V) | Flooded LA (12V) |
|---|---|---|---|
| Bulk/Absorption voltage | 14.2–14.6V | 14.4–14.8V | 14.4–14.8V |
| Float voltage | 13.5V | 13.6–13.8V | 13.6–13.8V |
| Low voltage disconnect | 11.5V | 12.0V | 12.0V |
| Low voltage reconnect | 12.5V | 12.5V | 12.5V |
Commissioning checklist
- ☐ Battery connected before panels
- ☐ Controller displays correct battery voltage
- ☐ Battery type and voltage settings configured
- ☐ Charge voltages appropriate for your battery chemistry
- ☐ Panel Voc measured and within controller's max PV voltage
- ☐ Controller shows panel input voltage and charging current
- ☐ Fuse installed within 18 inches of battery positive terminal
- ☐ All terminals tightened to manufacturer spec
Frequently asked questions
What happens if I connect panels before battery?
The controller receives unregulated panel voltage with no reference point. This typically destroys the controller's internal components — the damage is often immediate and irreversible. Always battery first.
Can I disconnect the battery while the system is running?
Never disconnect the battery while panels are producing power and connected to the controller. This sends unregulated panel voltage through the controller and can cause the same damage as connecting panels before battery. Always disconnect panels first.
My controller shows panel voltage but zero charging current — why?
Most likely causes: (1) battery is already full — check battery voltage; (2) panels are in shade; (3) panel Voc is below controller's minimum start voltage (usually 5V above battery voltage); (4) a fuse has blown — check all fuses.