Power Supply Designer Back
Power Electronics

Switching Power Supply Designer

Design Buck, Boost, and Buck-Boost DC-DC converters. Calculate L, C, duty cycle, and efficiency in real time. Visualize the inductor current waveform and efficiency curve.

Converter Settings
Converter Type
Input Voltage Vin12 V
Output Voltage Vout5 V
Output Current Iout2 A
Switching Frequency fs200 kHz
Ripple Ratio ΔIL/IL30 %
Design Results
Duty Cycle D
Inductance L
µH
Output Cap C
µF
Efficiency η
%
Buck: D=Vout/Vin
L=(Vin−Vout)·D/(fs·ΔIL)
C=ΔIL/(8·fs·ΔVout)
Waveform & Characteristic Plots

Inductor current triangular ripple (one full switching cycle)

Circuit topology schematic

What is a DC-DC Switching Converter?

🧑‍🎓
What exactly is a switching power supply? My phone charger gets warm, but my laptop's brick stays cool. Is that related?
🎓
Great observation! Basically, your laptop brick uses a switching converter, which is far more efficient. Instead of burning off excess voltage as heat (like a linear regulator), it rapidly switches a transistor on and off to control energy flow. This tool simulates the three main types: Buck (steps voltage down), Boost (steps it up), and Buck-Boost (can do either). Try selecting "Buck" in the simulator and see how the required duty cycle changes when you adjust Vin and Vout.
🧑‍🎓
Wait, really? So the "duty cycle" is just the on/off time ratio? How does that tiny switch control a steady output voltage?
🎓
Exactly! The duty cycle (D) is the fraction of time the switch is ON. In practice, we use an inductor as an energy storage element. When the switch is on, the inductor stores energy from the input. When it's off, the inductor releases that energy to the output. A capacitor smooths the result. For a Buck converter, the average output is $V_{out}= D \times V_{in}$. Move the "Input Voltage" slider and watch the calculated duty cycle update instantly—it's the fundamental control law.
🧑‍🎓
That makes sense. But I see a parameter for "Ripple Ratio." What's that wavy line in the inductor current graph?
🎓
That wavy line is key! Because we're switching, the inductor current isn't perfectly flat—it has a ripple, $\Delta I_L$. The ripple ratio sets this peak-to-peak ripple as a percentage of the average current. A higher ratio means a smaller, cheaper inductor but more current stress on components. Try sliding the "Ripple Ratio" control from 20% to 40%. You'll see the waveform's peaks get taller and the minimum required inductance value drop. It's a classic engineering trade-off between cost, size, and performance.

Physical Model & Key Equations

The core of any switching converter is the volt-second balance across the inductor. Over one switching period, the net voltage-time product must be zero for steady-state operation. This principle directly yields the conversion ratio.

$$ \text{Buck: }\frac{V_{out}}{V_{in}}= D \quad \text{Boost: }\frac{V_{out}}{V_{in}}= \frac{1}{1-D}\quad \text{Buck-Boost: }\frac{V_{out}}{V_{in}}= -\frac{D}{1-D}$$

Where $D$ is the duty cycle (0 to 1), $V_{in}$ is the input voltage, and $V_{out}$ is the output voltage (negative for Buck-Boost indicates polarity inversion).

The inductor value is chosen to limit the current ripple to a designed percentage of the average inductor current. The required minimum inductance depends on the converter topology and operating point.

$$ L_{min}= \frac{V_{L} \times D}{f_s \times \Delta I_L}$$

Here, $V_L$ is the voltage across the inductor during the switch-ON phase (e.g., $V_{in}- V_{out}$ for a Buck), $f_s$ is the switching frequency, and $\Delta I_L$ is the desired peak-to-peak ripple current, calculated from the set Ripple Ratio and the average inductor current $I_L$.

Real-World Applications

Consumer Electronics Power Management: The processor in your smartphone or laptop requires a very specific, low voltage (e.g., 0.8V to 1.2V) that changes dynamically to save power. A Buck converter, often integrated into the chip itself, efficiently steps down the battery voltage (3.7V) to this precise level with minimal energy loss as heat.

LED Drivers and Automotive Systems: A car battery nominally provides 12V, but high-brightness LED headlights might need a forward voltage of 30V or more. A Boost converter is used to step up the voltage. Conversely, infotainment systems need stable 5V or 3.3V, provided by robust Buck converters that handle the battery's voltage surges.

Renewable Energy Systems: The voltage from a solar panel varies greatly with sunlight. A Buck-Boost or dedicated Maximum Power Point Tracking (MPPT) converter is essential to efficiently adjust this variable input to the constant voltage required to charge a battery bank or feed into the power grid, maximizing energy harvest.

Industrial Motor Drives & Robotics: Variable-speed motor drives need to precisely control power delivery. Switching converters provide the controlled DC bus voltage that is then chopped by an inverter to drive the motor. Their high efficiency is critical for reducing heat in enclosed control cabinets and improving overall system runtime.

Common Misconceptions and Points to Note

First, the idea that "you can simply adopt the calculated minimum inductance Lmin as-is" is risky. The value provided by the tool is the theoretical minimum for operation in continuous conduction mode. In practice, the golden rule is to select a value with a margin of about 1.2 to 1.5 times the calculated value, considering transient response under load variations and the DC bias characteristics (saturation) of the inductor itself. For example, if the calculation yields 10µH, you should look for a standard part rated for 12–15µH.

Next, do not underestimate the role of the output capacitor Cout. While the tool calculates the capacitance needed to suppress ripple voltage, the equivalent series resistance (ESR) is often the dominant factor for the actual ripple voltage. For instance, a 10µF ceramic capacitor (low ESR) and an electrolytic capacitor (high ESR) operating at 100kHz will produce completely different output waveforms. For high frequencies, low-ESR ceramic capacitors are essential.

Finally, understand that the duty cycle D is not a parameter you can set freely. In the tool, it is uniquely determined from the input and output voltages. If the calculated D exceeds 90% to achieve your desired output voltage, it's a sign of an impractical design. The switch off-time becomes extremely short, leading to unstable control or non-negligible diode reverse recovery losses. In such cases, you need to reconsider the input voltage range.

Related Engineering Fields

The core calculations of this tool belong to the field of "Power Electronics". This field deals with technologies for converting and controlling power through switch ON/OFF operations, encompassing technologies like motor drives (inverters) in electric vehicles and power conditioners in solar power systems. The duty cycle control handled by this tool is a fundamental principle also applied in motor speed control.

Furthermore, waveform visualization is deeply connected to knowledge from "Signal Processing". How to measure switching noise (high-frequency components) and how to filter it out (represented by Cout or additional LC filters in the tool) is a crucial theme in EMC (Electromagnetic Compatibility) design. Understanding the frequency components of the ripple current (fundamentally at fs) is the first step in noise countermeasures.

Moreover, discussions about efficiency curves are directly linked to "Thermal Design". A 1% increase in loss is entirely converted into heat. For example, with a 30W output at 90% efficiency, the loss is 3.3W. If efficiency drops to 85%, the loss jumps to 5.3W, significantly changing the required heat dissipation measures. Considering efficiency trade-offs with this tool is also the work of defining input conditions for enclosure thermal analysis (CAE simulation).

For Further Learning

The first next step is to learn about "Discontinuous Conduction Mode (DCM)". The Continuous Conduction Mode (CCM) assumed by this tool is the operation under relatively high load currents. Under light loads, the circuit transitions to DCM where the inductor current reaches zero, drastically changing the transfer function (the input-output relationship equation). This is an unavoidable concept when considering control system stability.

Regarding the mathematical background, the tool's formulas are derived from integrating the inductor's voltage-current relationship $v_L = L \frac{di_L}{dt}$. For advanced study, try following the process of deriving the averaged model of a switching circuit using the state-space averaging method and finding its transfer function. Understanding this provides the foundation for designing your own compensation circuits (feedback control systems).

For practical learning, after determining parameters with the tool, I strongly recommend referring to actual IC manufacturers' datasheets and design examples. While the tool's calculations are based on an ideal model, datasheets contain details on methods for calculating "real-world losses" such as switch rise/fall times, dead time, and driver circuit power consumption. Comparing both helps you develop the ability to bridge the gap between theory and reality.