Boost and buck-boost: step up, and turn the output negative
A boost makes a higher voltage from a lower one; a buck-boost makes a negative one. You simulate the boost example, let the Design panel size its inductor and capacitor, and then build an inverting buck-boost from a template. About 15 minutes.
Pictures: a numbered red box is what you click or read, Run is a button, Design › Design Steps › Converter a menu path, F5 a key (⌘ is Cmd on a Mac, Ctrl elsewhere).
1. Open the boost example
Step 1 of 11 · about 1 min2. Read the circuit
Step 2 of 11 · about 1 minThe parts are those of the buck, in another order: the inductor now sits at the input and the switch shorts its far end to ground.
Vin: the 12 V input.L1: 200 µH. It stores energy while the switch is on.S1: the switch, driven byPWMat 50 kHz with a duty of 0.5.D1: passes the stored energy to the output while the switch is off.C1: 220 µF output capacitor.R1: the 24 Ω load.
3. Run it
Step 3 of 11 · about 1 minClick ▶ Run in the toolbar or press F5.
v(out): the output averages 24 V, asVout = Vin / (1 − D)says.i(L1): the inductor current averages 2 A, twice the 1 A load, because the input power equals the output power.
4. Open the converter design
Step 4 of 11 · about 1 min5. Check the fields
Step 5 of 11 · about 1 minChoose Converter. The Design tab opens with its fields filled in.
Converteris the task. It sizes L and C for a buck, a boost or an inverting buck-boost.from circuit: the output voltage, the load current and the switching frequency were read from the circuit. The ripple targets are defaults: 20 % of the inductor current and 1 % of the output voltage.Design again: the panel has already designed L and C from these fields, and this runs the design again. It readsRunonce you change a field.
6. Design L and C
Step 6 of 11 · about 1 minClick Design again.
Inductor300 µH,Output capacitor41.67 µF,Input capacitor8.333 µF. The plot shows how L and C shrink as the switching frequency rises.Changes to apply:L1from 200 µH to 300 µH andC1from 220 µF to 41.67 µF. The duty stays 0.5.Applywrites them into the circuit.
7. Apply and read the check
Step 7 of 11 · about 1 minClick Apply. The changes are one undo step (⌘Z). The panel then simulates the new circuit. Collapse the bottom panel (↓ at its top right) to see the whole check.
✔ Verified: every check passed.Verificationlists the checks.- The inductor ripple is 0.400 A against a 0.46 A limit, the output ripple 0.243 V against 0.276 V, and the mean output is 23.99 V.
8. Make a buck-boost from a template
Step 8 of 11 · about 1 minClose the Design page with the × on its tab, so the schematic is back. Then press ⌘K to open Quick Open and type template.
Circuit From Template.
9. Ask for a buck-boost
Step 9 of 11 · about 1 minChoose Circuit From Template. In the form, set Topology to buck boost.
- The topology. Fields left empty use the template's defaults: 12 V in, −24 V out, 1 A, 100 kHz.
Create Circuitbuilds the circuit.
10. Read the new circuit
Step 10 of 11 · about 1 minClick Create Circuit. A new tab opens with a laid-out buck-boost. Its values are circuit variables (Vin, D, Lf, Cf, Rload), sized by the template's equations.
S1: the switch, now in series with the input.L1: 133.3 µH, from the switch node to ground.D1: points away from the output, so the output charges negative.C1: 27.78 µF.R1: the 24 Ω load.
11. Run the buck-boost
Step 11 of 11 · about 1 minPress F5, then click the Scope tab of the panel (the Design tab stays in front while it is open) and Maximize at the panel's top right for a larger plot.
v(out)settles at −23.72 V. The duty is 0.667, soVout = −Vin·D / (1 − D)= −24 V; the input source resistance and the switch take the last 0.28 V.i(L1)averages 2.96 A: the input current plus the load current.
The same steps from a script
powercraft-cli run \
--cmd file.openExample --params '{"name":"boost"}' \
--cmd simulation.run --params '{}' \
--cmd scope.measure --params '{"signals":["v(out)","i(L1)"],"t0":"9.9m"}' \
--cmd design.converter --params '{"apply":true}' \
--cmd circuit.template --params '{"topology":"buckBoost"}' \
--cmd simulation.run --params '{}' \
--cmd scope.measure --params '{"signals":["v(out)","i(L1)"],"t0":"2.67m"}'
Next: the full-bridge inverter.










