Calculate duty cycle, current ripple, voltage ripple, and CCM/DCM operating mode waveforms in real time for Buck, Boost, and Buck-Boost DC-DC converters.
What exactly is a DC-DC converter? I see "Buck" and "Boost" in the simulator dropdown, but what do they actually do?
🎓
Basically, they're electronic circuits that change a DC input voltage to a different DC output voltage. A Buck converter steps the voltage down, like from 12V to 5V for a USB port. A Boost converter steps it up, like from a 3.7V battery to 5V. Try selecting "Buck" in the simulator and watch how the output voltage changes as you adjust the input voltage slider.
🙋
Wait, really? How can you get a higher voltage from a lower one? And what's this "Duty Cycle" number that pops up?
🎓
Great question! It's all about switching. A transistor turns the input voltage on and off very fast. The Duty Cycle (D) is the fraction of time it's on. For a Boost converter, when the switch is on, energy is stored in the inductor. When it turns off, that energy gets released and added to the input voltage, creating a higher output. The simulator calculates D for you. Try changing the target Vout with a fixed Vin and watch D adjust automatically.
🙋
Okay, I see the "Current Ripple" and "Voltage Ripple" results too. Why are those important, and what do the inductor (L) and capacitor (C) sliders do?
🎓
In practice, the output isn't perfectly smooth—it has a small "ripple." The inductor (L) smooths the current ripple, and the capacitor (C) smooths the output voltage ripple. A bigger inductor means less current ripple. Try it: select a Buck converter, then drastically reduce the inductance value. You'll see the current ripple spike, which can overheat components. Good design keeps ripple within limits, like the 30% rule noted in the tool's design tips.
Physical Model & Key Equations
The core of all these converters is the relationship between the input voltage, output voltage, and the duty cycle of the switching signal. This is called the ideal conversion ratio.
Where $D$ is the duty cycle (0 to 1), $V_{in}$ is the input voltage, and $V_{out}$ is the average output voltage. The Buck-Boost can step up or down and inverts the voltage polarity.
The inductor is the key energy-transfer element. Its value directly determines the peak-to-peak current ripple through it, which affects component stress and converter mode.
Here, $\Delta i_L$ is the inductor current ripple, $f_{sw}$ is the switching frequency (set by the "Switching Frequency" slider), and $L$ is the inductance. A small L or low frequency causes large ripple. The capacitor then filters this to produce an output voltage ripple: $\Delta V_C \approx \frac{\Delta i_L}{8 f_{sw} C}$.
Frequently Asked Questions
It is not normal. The duty ratio must be within the range of 0 to 1 to operate correctly. This issue occurs, for example, when Vout > Vin in a Buck converter or Vout < Vin in a Boost converter. Please review the relationship between the input voltage and output voltage.
CCM (Continuous Conduction Mode) has a continuous inductor current, resulting in smaller ripple and higher efficiency. DCM (Discontinuous Conduction Mode) has periods where the current drops to zero, typically occurring under light loads. Generally, CCM design is recommended, but DCM may be considered if light-load efficiency is a priority.
As a general guideline, it is recommended to keep current ripple within 20–40% of the rated current and voltage ripple within 1–5% of the output voltage. Use this tool to adjust the L and C values so that they fall within the target range.
This tool performs theoretical calculations assuming ideal switches and passive components. In actual circuits, factors such as switch on-resistance, capacitor ESR, and parasitic inductance of wiring have an impact. To account for these non-ideal elements, please use a more detailed circuit simulator.
Real-World Applications
Consumer Electronics & USB Power Delivery: Buck converters are everywhere inside phones and laptops, efficiently stepping down the voltage from a battery or wall adapter to the precise levels needed by processors, memory, and screens. The Boost converter in a power bank raises the 3.7V from a lithium cell to the 5V, 9V, or even 20V required by fast-charging protocols.
Electric Vehicles & Renewable Energy: A complex network of DC-DC converters manages energy flow in an EV. A high-power Buck converter might step down the ~400V traction battery voltage to 12V for accessories. Boost converters are crucial in solar micro-inverters to raise the variable panel voltage to a level suitable for feeding into the grid.
LED Lighting Drivers: Both Buck and Buck-Boost converters are used as constant-current drivers for LEDs. They provide stable current regardless of input voltage fluctuations (like a draining battery) or forward voltage variations between LED strings, which is essential for longevity and consistent brightness.
Server & Telecom Power Supplies: Modern data centers use sophisticated, multi-phase Buck converters to deliver enormous currents (hundreds of Amps) at very low voltages (around 1V) to CPUs with extreme efficiency. The high switching frequencies you can simulate are key to making these power supplies compact and responsive.
Common Misconceptions and Points to Note
First, there is a common misconception that the duty cycle D can be set arbitrarily. While you can freely adjust it with a slider in the tool, in an actual circuit, D is a control variable that is "automatically determined by the target input-to-output voltage ratio." For example, to achieve Vin=12V and Vout=5V in a Buck converter, the control circuit will automatically adjust D to approximately 5/12 ≈ 0.42 in theory. If you forcibly set it to, say, 0.8, the output voltage will become wildly incorrect.
Next, assuming efficiency is a fixed value. The tool uses simplified calculations, but actual efficiency varies significantly with load current and temperature. For instance, a converter rated at 95% efficiency at 2A might see its efficiency drop below 70% under light loads like 0.01A during standby, as switching losses become relatively more significant. You must always evaluate efficiency considering the intended operating conditions.
Finally, the pitfall of taking the "ideal waveforms" in the graphs at face value. The clean square and triangular waves in the tool assume ideal switch and diode characteristics. In a real device, switch rise/fall times and "spike noise" from diode reverse recovery characteristics always occur. For example, during high-speed switching, resonance with the inductor's parasitic capacitance can cause larger-than-expected voltage ripple or become a source of EMI (electromagnetic interference).