Full-bridge inverter: a 50 Hz sine from a DC link
A full bridge turns a DC voltage into AC. You open a single-phase inverter with sine PWM and an LC filter, read how its gates are made, simulate it, check the spectrum of the output, and let the Problems list lengthen a run that is too short. About 15 minutes.
Pictures: a numbered red box is what you click or read, FFT is a button, File › Open Example a menu path, F5 a key.
1. Open the inverter example
Step 1 of 7 · about 1 minChoose File › Open Example › Inverters › Single-phase full-bridge inverter.
File.Open Example.Inverters.Single-phase full-bridge inverter.
2. Read the power stage
Step 2 of 7 · about 1 minFour MOSFETs make two legs across the 400 V link. The output is taken between the legs, through the filter.
Qah: high side of leg a.Qal: low side of leg a.Qbh: high side of leg b.Qbl: low side of leg b.L1: 1 mH, one half of the filter inductance (L2is the other half, in the return path).C1: 10 µF. With 2 mH it filters at 1.1 kHz, well below the switching ripple.R1: the 50 Ω load. The voltmeterVMbeside it gives the signalvo.
3. Read the control
Step 3 of 7 · about 1 minEach leg has its own sine reference and PWM. The gate signals reach the switches through net labels (gah, gal…), so no wire crosses the page.
Refa:0.5 + 0.4·sin(2π·50 t), the duty of leg a. The modulation indexMi= 0.8 sets the 0.4.PWMa: compares the duty with a 10 kHz carrier and switches leg a.DTah: delays the turn-on ofQahby 500 ns. Its partnerDTal, behind the inverterNa, does the same forQal, so the two switches of a leg are never on together.Refb: the same sine shifted by 180°, for leg b. The voltage between the legs then switches at twice the carrier frequency (unipolar PWM), which halves the filter's work.
4. Run it
Step 4 of 7 · about 1 minClick ▶ Run or press F5. The scope shows in the panel under the schematic; click Maximize at the panel's top right for a larger plot.
vo: a 50 Hz sine of 316.6 V peak, 222.7 V rms. The ideal value isMi·Vdc= 320 V peak; the dead time takes about 2 V from each leg (Vdc·td·fsw).FFTat the end of thevorow of the measurements shows the spectrum of this signal over the visible window.
5. Read the spectrum
Step 5 of 7 · about 1 minA spectrum needs a whole number of cycles: the visible window (about 4 ms to 56 ms) is not, and its spectrum smears the 50 Hz line. So take two whole cycles after the start-up. Click Cursors and put the two lines at 20 ms and 60 ms. Click Measurements in the scope toolbar to hide the table, so the plot takes the panel's width, then the spectrum button at the left of the plot's header.
- The spectrum button: the plot shows the spectrum of its signals instead of the waveform.
- The time range: pick
Between cursors(it starts atVisible window). - The fundamental and the distortion:
vo: fundamental 50Hz, 315V, THD 0.70%.
6. Read the note in Problems
Step 6 of 7 · about 1 minClick the spectrum button again to go back to the waveform, Measurements to bring the table back and Restore at the panel's top right, then click the Problems tab.
Problems 1: one note.Run too short: 60 ms holds only three cycles of 50 Hz, too few to trust the averages.Run until 200 mssets a longer end time.
7. Fix it and run again
Step 7 of 7 · about 1 minClick Run until 200 ms, then press F5. When the run ends, click Show results on its notice and Maximize.
vonow shows ten cycles (the end time is 200 ms). From 40 ms on it holds 222.7 V rms with 0.70 % THD.- The
Runstab lists both runs and what changed between them:tEnd 60 ms to 200 ms.
The same steps from a script
powercraft-cli run \
--cmd file.openExample --params '{"name":"fullBridgeSpwm"}' \
--cmd simulation.run --params '{}' \
--cmd analysis.fft --params '{"signal":"vo","t0":"20m","t1":"60m"}' \
--cmd simulation.settings --params '{"tEnd":"200m"}' \
--cmd simulation.run --params '{}' \
--cmd scope.measure --params '{"signals":["vo"],"t0":"40m","thd":{"fundamental":50}}'
Next: the three-phase motor drive.






