Sepic converter with MPPT for battery charging from solar panel

Photo of author

By Jackson Taylor

Home » Hardware » Sepic converter with MPPT for battery charging from solar panel

As an Amazon Associate we earn from qualifying purchases.

A solar panel does not deliver a steady voltage. Its output changes with sunlight, temperature and load, while a battery needs a controlled voltage and current to charge safely. A SEPIC converter with MPPT (maximum power point tracking) handles both problems. The converter matches the panel to the battery, and the MPPT algorithm keeps the panel working near its best output.

This article explains how the SEPIC topology works, why it suits solar battery charging, and how the MPPT control loop fits in. The video below shows a working example of the idea.

What is a SEPIC converter?

SEPIC stands for single-ended primary-inductor converter. It is a DC-DC converter that can produce an output voltage either higher or lower than its input. The output polarity is the same as the input, so there is no inversion to deal with.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

A basic SEPIC circuit uses:

  • one switch, usually a MOSFET
  • two inductors (L1 and L2), sometimes wound on one core
  • a coupling capacitor between the two inductor stages
  • a diode
  • an output capacitor

In ideal continuous conduction mode, the output voltage follows a simple relationship with the duty cycle D of the switch: Vout = Vin × D / (1 − D). Below a duty cycle of 50% the converter steps down, and above 50% it steps up. Real circuits lose some voltage in the components, so the actual figure is a little lower.

Why use a SEPIC converter for solar battery charging?

The voltage from a panel can sit above or below the battery voltage during the day. A plain buck converter only steps down and a plain boost converter only steps up. A SEPIC covers both cases without extra stages.

Other practical benefits include:

  • Non-inverted output: the battery and the panel share the same polarity, which keeps wiring and measurement simple.
  • Input current ripple is low: the input inductor is in series with the source, so the panel sees a smoother current than it would with a buck converter.
  • Isolation from the load: the coupling capacitor blocks DC between input and output, so a switch fault does not connect the panel directly to the battery in the same way as in some other topologies.
See also
ARDUINO

The trade-off is more components and a more careful design. The coupling capacitor must handle significant ripple current, and the two inductors add size and cost. If you want to compare approaches, see this Cuk converter charger design, which inverts the output polarity but solves a similar problem.

How MPPT works with the converter

A solar panel has one operating point, the maximum power point, where voltage times current is highest. That point moves as irradiance and temperature change. If the battery connects directly to the panel, the panel is forced to the battery voltage, which is rarely the best point.

With a SEPIC in between, the controller changes the duty cycle. A change in duty cycle changes the effective load the panel sees, which moves the panel’s operating point. The MPPT algorithm uses this to hunt for the maximum power point.

Perturb and observe

Perturb and observe (P&O) is the most common method in hobby and student projects because it is simple to code. The steps are:

  1. Measure the panel voltage and current and calculate power.
  2. Change the duty cycle by a small step.
  3. Measure again and compare the new power with the old power.
  4. If power increased, keep moving in the same direction. If it decreased, reverse direction.
  5. Repeat continuously.

P&O tends to oscillate around the maximum point rather than sit exactly on it. A smaller step reduces the oscillation but slows tracking when sunlight changes.

Incremental conductance

Incremental conductance compares the panel’s instantaneous conductance with its incremental conductance to decide which way to move. It can track changing conditions with less oscillation, but it needs a little more computation.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

Typical system layout

A SEPIC-based solar charger is usually built from these blocks:

  • Solar panel: the source, sized to suit the battery and converter ratings.
  • Sensing circuits: a voltage divider for panel voltage and a current sensor for panel current. A second voltage divider reads the battery voltage.
  • Microcontroller: reads the sensors, runs the MPPT algorithm and generates the PWM signal. Many projects use an Arduino board. For an example of this style of control, see this buck-boost MPPT using Arduino project.
  • Gate driver: sends the PWM signal to the MOSFET with enough drive to switch it cleanly.
  • SEPIC power stage: the inductors, capacitors, diode and MOSFET.
  • Battery: the load, with protection against overcharge.
See also
CUK CONVERTER WITH MPPT FOR 12V BATTERY CHARGING FROM SOLAR PANEL USING ARDUINO

Battery charging considerations

MPPT only decides how much power is drawn from the panel. The battery still needs a proper charging profile. For a lead-acid battery this usually means a bulk stage at constant current, an absorption stage at constant voltage, and then a lower float voltage. Lithium-based batteries have their own limits and need a dedicated charge controller or battery management system.

In practice, the controller should limit charge current and cap the battery voltage, and then switch from MPPT to voltage regulation once the battery is nearly full. The correct voltage and current values come from the battery’s datasheet, so check them before you set any thresholds. The same approach applies to smaller packs, as in this buck-boost MPPT charger for 6V batteries.

Design tips

  • Choose the switching frequency first. Higher frequency allows smaller inductors and capacitors but raises switching losses.
  • Size the inductors for ripple current. Make sure they do not saturate at the highest expected panel current.
  • Use a low-resistance MOSFET and a fast diode. A Schottky diode reduces forward voltage loss. These two parts often account for most of the conversion loss.
  • Rate the coupling capacitor properly. It carries the input current ripple, so choose a low-ESR part with enough ripple rating.
  • Simulate before building. MATLAB/Simulink or a circuit simulator helps you check duty cycle range, ripple and tracking behavior before you solder anything.
  • Filter the sensor readings. Switching noise can confuse an MPPT algorithm, so average several samples.

Related uses of the SEPIC topology

The same converter is common in other solar projects. It can feed an inverter stage, as in this SEPIC-based sine wave inverter, and researchers have developed higher-gain variants. You can read about some of them in this overview of switched inductor SEPIC topologies.

Frequently asked questions

Can a SEPIC converter step voltage up and down?

Yes. Depending on the duty cycle, it can produce an output that is higher or lower than the input, which is why it works well when panel voltage varies around the battery voltage.

See also
Non Isolated Switched Inductor SEPIC Converter Topologies For Photovoltaic Boost Applications

Is MPPT necessary for charging a battery from a solar panel?

No, a simple controller can charge a battery without it. MPPT lets the panel deliver more of its available power, especially when the panel voltage differs noticeably from the battery voltage.

Which MPPT algorithm is best for a SEPIC charger?

Perturb and observe is the easiest to implement and works well for many projects. Incremental conductance can track changes more smoothly but takes more code and computation.

What is the difference between SEPIC and Cuk converters?

Both use two inductors and a coupling capacitor and can step voltage up or down. The SEPIC keeps the same output polarity as the input, while the Cuk converter inverts it.

MORE

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works