BatteriesCharge controllersHow to install a PV systemAddonsDIY

Wiring solar panels, charge controller and battery together

One of the most common questions we get is "Can I connect my solar panels directly to the battery?" While technically you can, we strongly advise against it. A battery is a fragile thing and high voltage of solar panels can easily destroy it. A charge controller acts as a safety barrier between panels and a battery and should be a part of every home solar panel installation. In this article, we'll explain how to wire together solar panels, a regulator and a battery.

Charge controller keeps your battery safe

But what does a battery fear? From what does a controller actually protect it? Well, a charge controller

Whenever you add energy storage to a solar system, add a charge controller in between the panels and the battery

• Lowers the voltage of panels down to the level of the battery. When the battery is directly connected to panels whose voltage is higher, the battery heats up. Not only does it decrease the lifespan of a battery, it can potentially lead to its explosion.
• Prevents overcharging. If you charge the battery after it's full, its temperature rises because it tries to accept more current than it is capable of. As a result, you have faster aging, decreased capacity and explosion in the worst-case scenario.
• Stops the usage of a battery in the state of deep discharge. Regular deep discharge of a battery lowers the number of charge cycles a battery can survive.
• Blocks reverse currents. At night electricity can flow back to panels from the battery, which can lead to temperature rises and fires in the PV modules.
• Allows monitoring the state of the panels and the battery.

Solar controllers handle the voltage of panels differently. PWM (pulse-width modulation) controller simply brings it down to the level of the battery. MPPT (maximum power point tracking) controller, on the other hand, uses extra voltage of the panels and turns it into electricity.

PWM and MPPT are interchangeable in cases when the voltage of the solar panels is slightly higher than the voltage of the battery. For example, you can install either of them with 30-cell panels and a 12V battery or 60-cell panels and a 24V battery. However, even in these cases, an MPPT-controller allows you to harvest 20-25% more energy. This type of solar regulator is especially good in winter, when panels reach their voltage peaks.

PWM-controller
MPPT-controller
Pros
• lower price: $20-$100
• 15+ year lifespan
• 2-4 times smaller than MPPT
Pros
• 90-95% efficiency
• converts extra voltage of panels into current
• manages charging process
• built-in Bluetooth to connect to to a laptop or a smartphone
Cons
• 75-85% low efficiency
• works well only when the voltage of panels is slightly higher than the voltage of a battery
Cons
• 10-15 year lifespan
• more expensive than a PWM-controller: $100-$1,000

Look for maximum volts and amps when sizing a controller

Before purchasing a charge controller, make sure it fits the solar panel system. The main parameter you're looking for is maximum amps. Amps of a controller must be bigger than the combined power of all solar panels divided by the voltage of the battery.

Let's say we have two 300W panels and a 12V battery. Now we calculate the amps:

300W * 2 panels / 12 V = 50 A

Let's add 25% for safety. On cold days panels produce more current than usual and it's better to be ready for it:

50 A * 1.25 = 62.5 A 

The size of a controller must be bigger than 62.5 A.

Alongside maximum amps, the charge controller has maximum input voltage. It's the upper limit of voltage it can handle from the power source, such as solar array. The current and the voltage in our system depend on number of panels, their power ratings, the weather and the way you wired solar panels together. Read more in our article "Series, parallel, combo: How to connect solar panels together".

Connecting battery, controller and panels

Whether you have a PWM-controller or an MPPT-regulator, the procedure of hooking it up with the battery and panels remains the same. Normally there are three wiring sections on a charge controller: one for panels, one for a battery and one for DC loads.

Battery

1. Take a simple stranded copper core wire.
2. Use the black wire to match the charge controller "minus" with the battery "minus".
3. Use the red wire to match the charge controller "plus" with the battery "plus"
4. Screw the wires tightly into the charge controller

Turn the charge controller on: it should be able to measure the charge of the battery.
In the user manual of a charge controller, there should be a wiring diagram, which you can consult if in doubt.

It’s advised to wire the controller to the battery first before connecting it to a solar array. Controllers often have to perform an initialization when they get connected to a battery during which the regulator evaluates the battery's state. If you connect the solar panel to a charge controller first, it may not initialize correctly.

PV modules

After you've connected the charge controller to the battery, it is now safe to connect it to the panels. Out of the junction box of a panel come two cables, a positive and a negative. In some situations, it's just two wires that go straight to the controller. More often, there are so-called MC4 connectors on each end, a "male" connector for the positive cable and a "female" for the negative one.

1. Connect MC4 connectors with a complementary pair of connectors with wires on other ends. If you have two wires coming out straight of the junction box, skip this step.
2. Plug these wires into the regulator: positive into "plus", negative into "minus".
3. Once you've connected the panels to the controller, it should be able to recognize them. Check the status of your array on the charge controller screen.
4. PV modules start to generate electricity as soon as they face the sun.

Here's the diagram, which gives an idea on how to connect these parts of a solar panel system together. We have one 12V KiloVault solar battery, one 96A Midnite MPPT-controller and two 330W Panasonic solar panels.

If you have several solar panels, like on the diagram, the positive cable of one panel usually goes to the negative terminal of the adjacent one. Then, the negative cable of the first panel and the positive cable of the last panel go into the charge controller. These panels are connected in series, which means that their voltage is combined, but an amperage stays the same.

In this small panel system, each of the panels has a voltage of approximately 38V. Since panels are connected in series, their combined voltage is 38V * 2 = 76V. Their amperage is

330W ÷ 38V = 8.7A

The voltage of the battery is 12V. A PWM-controller would just cut down the voltage of panels down to the level of battery. Therefore, you would make use only of 8.7A * 12V = 104W of power for the whole array of 660 W. However, since we have an MPPT charge controller, it lets panels retain their power and speeds up the charging process of the battery. This battery in theory can receive 660W ÷ 12V = 55A of current.

Find a charge controller for your solar project

We offer charge controllers from American manufacturers, as well as batteries, inverters and optimizers. Contact us and our engineer will help you pick the equipment.

Shop charge Controllers

Article updated April 2024

Andrey Gorichenski
Senior Editor

Andrey had been a news editor and freelance writer for a number of medias before joining A1SolarStore team. Climate change and its impact on people's lives has always been among his interests and it partially explains his degree in Philosophy and Ethics.

More articles from this author

Read Also

How to connect your solar system together: DIY guide

5 ways solar panels save money and make you thousands of dollars

Solar permits: What are they, how to get them, who’s to do it

How sustainable is solar energy? Let’s take a look

AC vs DC-coupled solar battery systems: Pros and cons

Stay tuned

Learn about the latest arrivals and discounts first!

By clicking "Subscribe", I agree by electronic signature to: (1) receive marketing and other texts and messages from A1SolarStore, directly or from third parties acting on its behalf, at the email address I entered above; (2) the Terms and Conditions; and (3) the Privacy Policy.