1+2D KY CONVERTER – SIMULATION IN MATLAB -12 V TO 26V BOOST CONVERTER

Photo of author

By Jackson Taylor

Home » Hardware » 1+2D KY CONVERTER – SIMULATION IN MATLAB -12 V TO 26V BOOST CONVERTER

This post covers a MATLAB Simulink simulation of a 1+2D KY converter that steps a 12 V DC input up to a 26 V DC output. The video below shows the model running, and the design file is available for download at the end of the article.

more at

What is a KY converter?

The KY converter is a non-isolated DC-DC step-up topology. It is usually described as a boost-type converter with a fast transient response and low output voltage ripple, which makes it a useful alternative to the conventional boost converter in low-voltage, medium-power applications.

Several variants exist, and the “1+2D” in the title refers to one of them. If you want the background on the original circuit and how the variants relate, read our overview of the KY converter and its derivatives.

Why simulate before building hardware?

A simulation lets you check the design on a computer before you buy parts. For a converter like this, it helps you to:

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
  • confirm that the circuit reaches the target output voltage at a sensible duty ratio;
  • see the inductor current, switch voltage and output ripple under load;
  • compare component choices without risking a damaged switch or capacitor;
  • test how the output reacts to a sudden load or input change.

Simulation overview: 12 V in, 26 V out

The model in the video takes a 12 V DC source and produces about 26 V at the load. That is a voltage gain of roughly 2.2, which is more than a simple boost converter handles comfortably at a moderate duty ratio. Topologies like the KY converter add extra capacitors, diodes or switch paths to reach this kind of gain.

For reference, an ideal conventional boost converter follows Vout = Vin / (1 − D). For 12 V to 26 V that would need a duty ratio of about 0.54. The gain equation of the 1+2D variant is different, so use the equations in the model and the downloaded file for your own calculations rather than the plain boost formula.

See also
ACCELEROMETER BASED EARTH QUAKE ALERT SYSTEM SIMULATION IN PROTEUS USING ARDUINO

Main blocks in the Simulink model

Most Simulink models of this type use the same building blocks from the Simscape Electrical (Specialized Power Systems) library:

  • DC voltage source: set to 12 V as the input.
  • Inductor(s) and capacitor(s): these set the current ripple and the voltage ripple of the converter.
  • MOSFET or IGBT switch: driven by a PWM signal from a pulse generator.
  • Diodes: provide the switching paths that give the converter its gain.
  • Load resistor: sized for the output power you want to test.
  • Measurement blocks: voltage and current sensors feeding scopes so you can read the waveforms.

How to run the simulation

  1. Download the design file using the link at the end of this article and open it in MATLAB.
  2. Check that the source is set to 12 V and that the pulse generator has the intended switching frequency and duty ratio.
  3. Choose a fixed-step or variable-step solver with a small enough step size to resolve the switching edges. Power electronics models often fail or give poor waveforms with a step size that is too large.
  4. Set a stop time long enough for the output to settle, then run the model.
  5. Open the scopes and read the output voltage, inductor current and switch waveforms.

The file was built in an older MATLAB release. If it does not open cleanly in a newer version, check for missing or renamed blocks and re-link them from the library.

What to look for in the results

Output voltage

After the start-up transient, the output should settle near 26 V. Small differences from the calculated value are normal because the diodes and switch have voltage drops and resistances in the model.

Inductor current

Check whether the inductor current stays above zero (continuous conduction) at your chosen load. If it reaches zero during each cycle, the converter is in discontinuous mode and the voltage gain will behave differently.

See also
AUTOMATIC BRAKE SYSTEM

Switch stress

Look at the peak voltage across the switch and diodes. Part of the appeal of higher-gain topologies is that the stress on the switch can be lower than in a plain boost converter at the same gain, but you should confirm this from your own waveforms before choosing real parts.

Output ripple

Zoom in on the output voltage. Ripple depends on the output capacitor, load current and switching frequency, so changing any of them is an easy way to see the trade-offs.

Common problems and fixes

  • Output voltage is too low: check the duty ratio, the load size and the diode and switch parameters. A very heavy load can pull the output down.
  • Simulation is very slow: increase the sample time slightly or use the discrete solver setting from the powergui block.
  • Algebraic loop or solver errors: make sure the powergui block is in the model and the solver settings match the type of simulation you chose.
  • Noisy waveforms: reduce the step size so each switching event is captured properly.

Next steps

This simulation runs in open loop, with a fixed duty ratio. In a real application you would regulate the output against changes in load and input voltage. Our post on boost converter closed loop control shows how a feedback loop is added in Simulink, and the 12V to 24V boost converter with a fuzzy logic controller shows a different control method on a similar voltage range.

If you want to compare the variants directly, see also our 2+D KY converter simulation, which covers the same 12 V to 26 V conversion with a different configuration.

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

Download the design

The Simulink file used in the video is available here:

DOWNLOAD DESIGN

FAQ

What does 1+2D mean in the name?

It identifies a specific KY converter variant. The name relates to the form of its voltage gain in terms of the duty ratio D. Check the equations in the downloaded model for the exact expression used.

See also
ARDUINO AND SERVO MOTOR INTERFACING SIMULATION IN PROTEUS

Can I use this model for a different output voltage?

Yes. Change the duty ratio and, if needed, the load and the inductor and capacitor values, then check that the inductor current and ripple are still acceptable.

Is the simulation result the same as real hardware?

Not exactly. The model uses simplified parts, so real circuits will show extra losses, switching noise and parasitic effects. Treat the simulation as a starting point for design and test the hardware carefully.

Which MATLAB toolbox do I need?

You need Simulink and the Simscape Electrical (or the older SimPowerSystems) library, which provides the power electronics blocks used in the model.

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