Run this example
The browser version is coming soon. Until then, open this example in the desktop app. Download Voltecx
The boost example steps 12 V up to 24 V at a duty cycle of 0.5 and 50 kHz, into a 24 Ω load (1 A). By hand, the inductor carries 2 A with a 0.60 A ripple and the output ripple is 45.5 mV. A 60 ms run gives 23.99 V, 2.00 A, 0.60 A and 45 mV. The default 10 ms run ends at 23.89 V because the boost's LC resonance is lightly damped and still ringing.
Open it
In the app: File › Open Example › DC-DC › Boost converter, then press F5. From the command line, with the longer run:
powercraft-cli run --cmd file.openExample --params '{"name": "boost"}' \
--cmd simulation.settings --params '{"tEnd": 0.06}' \
--cmd simulation.run \
--cmd scope.measure --params '{"signals": ["v(out)", "i(L1)"], "t0": 0.0599, "t1": 0.06}'
| Part | Value |
|---|---|
| Input | 12 V |
| Duty cycle | 0.5 (open loop) |
| Switching frequency | 50 kHz |
| Inductor | 200 µH, starts at 2 A |
| Output capacitor | 220 µF, starts at 24 V |
| Load | 24 Ω |
The hand calculation
In continuous conduction the inductor's volt-seconds balance over a period, which gives
While the switch is on, the full input is across the inductor:
While the switch is on the diode is off, and the capacitor alone feeds the load:
Why the default run has not settled
To the duty cycle, a boost looks like an LC filter whose inductance is µH. With 220 µF and 24 Ω:
A resonance with Q = 12.6 decays with a time constant of ms. The capacitor and the inductor start at their average values, but the first switching period still disturbs them, and the ring that follows lasts tens of milliseconds. After the default 10 ms the output still reads 23.89 V; after 60 ms it has settled.
The run
| Quantity | Hand | Run |
|---|---|---|
| Output after the default 10 ms | — | 23.89 V |
| Output after 60 ms (last five periods) | 24 V | 23.99 V |
| Mean inductor current | 2 A | 2.00 A |
| Inductor ripple (peak to peak) | 0.60 A | 0.60 A |
| Output ripple | 45.5 mV | 45 mV |
Try next
- Close the loop with the
boostClosedLoopexample. A boost's loop is limited by its right-half-plane zero; the boost design article explains why. - Raise D to 0.6: = 30 V, = 2.5 A, and the resonance moves to .
- Compare with the buck worked example, which settles in a few milliseconds because its Q is 1.
Every number on this page comes from a run that a test repeats (auto::tests_worked_examples), so the page changes when the simulator does.