How Solar Charge Controllers Work: PWM vs MPPT Explained

A practical guide to solar charge controllers for student builds: how PWM pulls a panel down to battery voltage and wastes power, how MPPT tracks the peak and converts excess voltage into current, a worked 100 W panel comparison, the bulk/absorption/float charging stages, and a sizing method for any panel and battery.

Written by Projectech14 min readPublished
For Electrical, electronics and IoT students building solar-powered projects who need to choose and size a charge controller and protect their battery from overcharging. Topics: Solar panels, MPPT, PWM, Charge controllers, Batteries
Blueprint-style technical illustration of a solar charge controller: a solar panel wired to a controller box and a battery, with a diagram showing panel voltage converting to charging current, in dark blue line art on white graph paper.
Illustration generated for this guide.
In this guide

How Solar Charge Controllers Work: PWM vs MPPT Explained

A solar panel connected straight to a battery will charge it — for a while. Then it will overcharge it, boil off electrolyte, or cook a lithium pack, and the battery will die months early. A charge controller sits between the panel and the battery and stops that happening. It is one of the cheapest parts of a small solar system, and also one of the most misunderstood: students buy a controller by price, wire a panel to it, and then wonder why a 100 W panel delivers barely 60 W on a sunny day.

This guide explains what a charge controller actually does, how the two types — PWM and MPPT — work inside, and how to choose between them for a student build. You will see a worked power comparison with the numbers labelled as a typical example, the three charging stages every controller manages, and a sizing method you can apply to any panel and battery combination.

Quick Answer

A charge controller protects the battery from overcharging and manages how panel power reaches it. PWM connects the panel directly to the battery and wastes the voltage difference, so it suits small systems where panel and battery voltages are close. MPPT converts excess voltage into extra current and harvests roughly 20–30% more energy, so it suits larger panels, cold mornings and series strings.

What a charge controller actually does

A solar panel is not a well-behaved power supply. Its voltage swings with sunlight and temperature, and its open-circuit voltage is far higher than a battery's charging voltage — a nominal 12 V panel typically shows around 21–22 V open-circuit and about 18 V at its maximum power point. A battery, meanwhile, wants a controlled voltage: roughly 14.4 V during bulk charging for a 12 V lead-acid battery, tapering down as it fills.

The controller's jobs, in order, are:

  • Prevent overcharging. It stops pushing current once the battery reaches its set voltage, so the battery is not gassed or damaged.
  • Prevent over-discharging. Many controllers have a load output with a low-voltage disconnect, which cuts the load before the battery is drained to a damaging level.
  • Deliver the panel's power efficiently. This is where PWM and MPPT differ — it is the whole point of the comparison below.
  • Protect the system. Reverse polarity, short circuits on the load terminals, and over-current are handled by the controller's protection circuits.

Without a controller, a panel left connected to a battery on a bright day keeps forcing current in after the battery is full. On a lead-acid battery that means water loss and plate corrosion; on a lithium pack it means a cell driven past its safe voltage. The controller is cheap insurance against both.

How PWM works: the panel is pulled down to battery voltage

PWM stands for pulse width modulation. The controller is essentially a fast switch between the panel and the battery. When the battery needs charging, the switch closes and the panel is connected directly to the battery. Because the battery is a stiff voltage source, it pulls the panel's voltage down to the battery's voltage — about 13–14 V for a 12 V battery being charged.

That is the key point, and it is also the whole weakness of PWM. A panel rated 100 W at 18 V and about 5.5 A delivers its rated power only when it operates at 18 V. Pulled down to 13 V, it still delivers roughly its full current (about 5.5 A), but power is voltage times current: 13 V × 5.5 A is about 72 W, not 100 W. The missing 28 W never leaves the panel — the energy is simply not harvested.

PWM controllers regulate charging by switching the connection on and off thousands of times a second. As the battery fills, the controller shortens the on-time (the duty cycle), so the average current drops. This is simple, robust and cheap, which is why PWM controllers cost a fraction of MPPT ones. It is also why they waste power whenever the panel voltage is well above the battery voltage.

A useful way to think about it: a PWM controller is a tap, not a transformer. It can only pass through what the battery's voltage allows. It cannot convert extra voltage into extra current.

How MPPT works: track the peak, convert the rest

MPPT stands for maximum power point tracking. The controller contains a DC-DC converter — a buck converter in most 12 V systems — between the panel and the battery, plus a small processor that continuously hunts for the panel's maximum power point.

A solar panel's power curve has a single peak: at low voltage the current is high but the power is low; at high voltage the current collapses and the power is low again. Somewhere in the middle — the maximum power point, typically around 17–18 V for a nominal 12 V panel — power is highest. That point moves with sunlight and temperature: brighter sun pushes it up, heat pushes the voltage down. The MPPT algorithm (usually a perturb-and-observe routine: nudge the operating voltage slightly, measure whether power rose or fell, keep nudging toward the peak) re-finds that point several times a second.

Once the panel is held at its peak, the DC-DC converter turns the excess voltage into extra current. Take the same typical 100 W panel: at its peak it delivers 18 V × 5.5 A, about 99 W. The converter steps that down to the battery's 13.5 V charging voltage, and — minus a few percent of conversion loss — the battery receives roughly 95 W, or about 7 A. Compare that with the PWM controller's 72 W from the same panel in the same sun. That is the whole MPPT advantage, and it is a conversion advantage, not magic: no controller can deliver more power than the panel produces.

The gain is biggest when the voltage gap is biggest: cold mornings (panel voltage rises in the cold), panels wired in series, or a 24 V or 48 V panel array charging a 12 V battery. It is smallest when the panel voltage is already close to the battery voltage.

PWM vs MPPT: a worked comparison

The table below uses one typical example, labelled as such: a nominal 100 W panel (about 18 V at maximum power, about 5.5 A) charging a 12 V lead-acid battery at about 13.5 V, in steady midday sun. Your panel's datasheet gives its exact numbers; the method is the same.

PWM MPPT
Panel operating voltage Pulled to battery voltage, ~13.5 V Held at maximum power point, ~18 V
Current to battery ~5.5 A (panel current) ~7 A (converted)
Power delivered ~74 W ~95 W (after ~4% conversion loss)
Energy harvested from a 100 W panel ~74% ~95%
Cost Low (a fraction of MPPT) Several times a PWM controller
Complexity A switch + control logic DC-DC converter + tracking processor

Two honest caveats. First, the gap shrinks on hot afternoons: panel voltage falls with heat, so the voltage difference MPPT exploits gets smaller, and the gain can drop toward 10–15%. Second, the gain is zero if the panel voltage already matches the battery — a 12 V panel charging a 12 V battery through PWM loses little, because there is little excess voltage to convert. The decision is about the voltage gap and the system size, not about MPPT being universally better.

The three charging stages

Both controller types manage the same charging profile for lead-acid batteries, and a similar staged profile for lithium. Understanding the stages explains what the lights and display on your controller actually mean.

  1. Bulk. The battery is low, so the controller delivers as much current as the panel can give. Voltage rises steadily toward the absorption setpoint (about 14.4 V for a 12 V lead-acid battery). This stage does most of the charging.
  2. Absorption. Voltage is held constant at the setpoint while current tapers down. The battery is nearly full; holding the voltage finishes the charge without overdoing it. This stage takes longer than students expect — often an hour or more after the battery looks "almost full".
  3. Float. Voltage drops to a lower maintenance level (about 13.6 V for a 12 V lead-acid battery) and the controller supplies only enough current to cover self-discharge and small loads. The battery sits full without being stressed.

Lithium batteries use a simpler profile — usually bulk to a set voltage, then stop — because they do not need a float stage and must not be held at high voltage. This is why the battery-type setting on a controller matters: a lead-acid profile applied to a lithium pack holds it at absorption voltage far too long, and a lithium profile applied to a lead-acid battery undercharges it. Set the battery type before you connect the battery, not after.

Sizing a charge controller

Two ratings decide whether a controller fits your system: its maximum input voltage and its maximum charging current.

Voltage rating. The panel's open-circuit voltage (Voc) on the coldest morning your system will see must stay below the controller's maximum input voltage. Cold raises Voc — a panel rated 21 V Voc at 25 °C can reach about 23–24 V on a cold winter morning. If you wire panels in series, their Voc values add: two 21 V panels in series present 42 V, which needs a controller rated above that. Exceeding the rating damages the controller, often on the first cold bright morning.

Current rating. The controller must handle the panel array's short-circuit current (Isc) with margin. The standard rule is to multiply total Isc by 1.25, and to choose a controller rated at or above that figure. For one 100 W panel with Isc of about 6 A, that is 7.5 A — a 10 A controller is the sensible choice. For two such panels in parallel, Isc doubles to about 12 A, times 1.25 is 15 A, so a 20 A controller fits. The 1.25 factor covers bright-cloud-edge surges and cold-morning current peaks.

A short Python helper makes the arithmetic repeatable for any panel and battery:

# Size a charge controller: current rating and PWM vs MPPT harvest
panel_watts = 100.0
vmp = 18.0          # panel voltage at maximum power, from the datasheet
voc = 21.5          # panel open-circuit voltage, from the datasheet
isc = 6.0           # panel short-circuit current, from the datasheet
panels_parallel = 1
battery_v = 12.0
charge_v = 13.5     # typical absorption voltage for a 12 V lead-acid battery

imp = panel_watts / vmp
pwm_watts = charge_v * imp
mppt_watts = panel_watts * 0.96      # ~4% conversion loss
need_amps = isc * panels_parallel * 1.25
print(f"Panel current at max power: {imp:.2f} A")
print(f"PWM harvest: {pwm_watts:.0f} W | MPPT harvest: {mppt_watts:.0f} W")
print(f"Controller current rating needed: >= {need_amps:.1f} A")
print(f"Controller max input voltage must exceed: {voc:.1f} V")

Run it with your panel's datasheet values. If the PWM harvest is within a few watts of the MPPT harvest — which happens when Vmp is close to the charging voltage — a PWM controller is the rational buy.

When PWM is the right choice

PWM is not the "cheap and bad" option; it is the right option for a specific shape of system:

  • Small systems. A single 10–50 W panel charging a small battery for a sensor node or a lamp. The absolute energy lost is small — a few watts — and an MPPT controller would cost more than the panel.
  • Panel voltage close to battery voltage. A nominal 12 V panel (Vmp about 17–18 V) on a 12 V battery is the classic case. The gap is small, so the MPPT gain is small.
  • Hot climates and steady sun. The panel voltage is lower when hot, so the gap MPPT exploits shrinks further.
  • Tight budgets and simple builds. A PWM controller has fewer parts to fail, which matters for a build that must run unattended for months.

The honest test is the arithmetic above. If the MPPT gain is under about 10%, spend the money on a bigger panel instead — it buys more energy per rupee.

When MPPT is worth paying for

  • Larger panels or arrays. Above roughly 150–200 W on a 12 V system, the wasted power from PWM becomes large in absolute terms, and MPPT pays for itself in harvested energy.
  • Series strings or high-voltage panels. A 24 V panel (Vmp about 36 V) charging a 12 V battery wastes half its power through PWM. MPPT converts the whole gap.
  • Cold mornings. Panel voltage rises in the cold, so MPPT's gain is largest exactly when the sun is strong and the air is cold — a common winter morning in north India.
  • Partial shade and changing light. The tracking algorithm re-finds the peak as conditions change, while a PWM controller has no peak to find at all.

A note on the market: very cheap "MPPT" controllers sold online are often PWM controllers with an MPPT label. A genuine MPPT controller has a visibly larger heatsink and inductor, a higher price, and a datasheet that quotes a conversion efficiency (typically 95–98%) and a maximum input voltage well above the battery voltage. If the price looks like a PWM controller, it is a PWM controller.

Common mistakes

  • Exceeding the controller's input voltage. Series panels add Voc. One cold morning above the rating can destroy the controller. Check Voc on the datasheet, add a cold-weather margin, and stay below the rating.
  • Connecting the panel before the battery. Most controllers detect the system voltage (12 V vs 24 V) from the battery at power-up. Connect the battery first, then the panel — the manual says this for a reason.
  • No fuse between battery and controller. A short in the controller or its wiring can pull hundreds of amps from the battery. A fuse close to the battery terminal is cheap and non-negotiable.
  • Wrong battery-type setting. Lead-acid, AGM, gel and lithium profiles differ. The wrong profile undercharges or overcharges the battery, and the damage is slow and invisible until the battery dies early.
  • Undersized wires. A 10 A charging current through thin wire drops voltage and wastes power as heat. Size the wire for the current and keep runs short, especially between controller and battery.
  • No ventilation. Controllers dissipate heat, and an MPPT converter dissipates more than a PWM switch. Mount the controller with airflow around it, not sealed inside a box with the battery.

FAQ

Can I use a 24 V panel to charge a 12 V battery?
Yes, but only with an MPPT controller. A PWM controller would pull the panel down to battery voltage and waste roughly half the panel's power. An MPPT controller converts the extra voltage into extra charging current.

Does MPPT work on cloudy days?
Yes, and the relative gain can be higher, because the maximum power point moves more in changing light. The absolute power is still low — a controller cannot create sunlight — but MPPT harvests a larger share of what is available.

Can I connect two panels to one controller?
Yes, in parallel or in series, within the controller's ratings. In parallel, currents add and voltage stays the same; in series, voltages add and current stays the same. Check the controller's maximum input voltage for series wiring and its current rating for parallel wiring.

Why does my controller show the battery as full when it is not?
Usually a voltage-drop problem: thin wires between controller and battery make the controller read a higher voltage than the battery actually has, so it exits bulk charging early. Shorten and thicken the battery wires, and measure the battery voltage directly at its terminals.

Do I need a charge controller for a tiny panel?
A panel under about 5 W trickle-charging a large lead-acid battery is often used without one, because the current is too small to overcharge it. Anything bigger, and any lithium battery at any size, needs a controller. When in doubt, fit one — it is cheaper than a replacement battery.

Can I run a load directly from the panel without a battery?
No, not reliably. Panel voltage swings with sunlight, and most loads need a stable voltage. Use the controller's load output (with its low-voltage disconnect) or an inverter fed from the battery.

Limitations

This guide covers the controllers used in student and small off-grid systems — single-panel to small-array setups, 12 V and 24 V batteries, PWM and MPPT types. It does not cover grid-tie inverters, hybrid inverters with built-in MPPT, or three-phase solar systems, where the controller is part of a larger power-electronic system with its own standards. The worked numbers are typical values for illustration; always size from your own panel's datasheet, and check the controller's manual for its exact voltage and current ratings before wiring anything. Finally, batteries store real energy: fuse the battery, mind polarity, and never short the terminals while testing.

More project guides

More in Electrical