Getting started: your first buck converter in 10 minutes
You open a 48 V to 12 V buck converter, simulate it, read the output on the scope, change the inductor and compare the two runs. You need Voltecx installed (manual, chapter 1). Nothing else.
How to read the pictures: a red box with a number marks what you click, in that order. A grey chip such as ▶ Run is a button, File › Open Example is a menu path, and F5 is a key.
1. Open the buck example
Step 1 of 8 · about 1 minChoose File › Open Example › DC-DC › Buck converter, textbook.
File.Open Example.DC-DC.Buck converter, textbook: the buck with an ideal switch and diode, whose numbers match the hand formulas (theBuck converterexample carries the losses of real parts).
2. Read the circuit
Step 2 of 8 · about 1 minThe power stage is drawn at the bottom and the control at the top.
Vin: the 48 V input.S1: the switch.L1: the 100 µH inductor.C1: the 100 µF output capacitor.R1: the 2.4 Ω load, which draws 5 A at 12 V.PWM: turns the switch on and off at 100 kHz. Its duty (D= 0.25) comes from theDutyblock.
This is the whole window. The library is on the left, the schematic in the middle, Properties on the right and the scope at the bottom. The switch at the top of the library shows Symbols, the generic parts this lesson uses, or Parts, the real parts with their data-sheet ratings in tables.
Vin.S1.L1.C1.R1.PWM.
3. Run the simulation
Step 3 of 8 · about 1 min4. Read the result
Step 4 of 8 · about 1 minThe scope opens in the panel under the schematic when the run ends.
v(VOUT)is ticked in the signal list. The output starts at 12 V, because the example pre-charges C1 to 12 V, dips to about 8.6 V while the inductor current builds up, rings and settles at 12 V.Keep as referencekeeps this run on the plot for the next step.
5. Keep this run
Step 5 of 8 · about 1 minClick Keep as reference. The run stays on the plot as Ref 1 while you change the circuit and run it again.
Keep as reference.
6. Select the inductor
Step 6 of 8 · about 1 min7. Double the inductance
Step 7 of 8 · about 1 min8. Run again and compare
Step 8 of 8 · about 1 minPress F5. The scope shows both runs.
i(L1) · Ref 1: the first run, kept as reference Ref 1 and drawn dashed in a colour of its own.i(L1): the new run. Its band is about half as wide: the ripple fell from 0.9 A to about 0.45 A.
The same steps from a script
powercraft-cli run \
--cmd file.openExample --params '{"name":"buckIdeal"}' \
--cmd simulation.run --params '{}' \
--cmd circuit.setParam --params '{"component":"L1","key":"l","value":"200u"}' \
--cmd simulation.run --params '{}' \
--cmd scope.measure --params '{"signals":["v(out)","i(L1)"],"t0":"3m"}'








