Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new

An inverter makes an AC output from a DC link by switching fast and letting a filter keep only the slow part. This lesson builds the output of a full bridge from a sine reference and a carrier, predicts its size from the modulation index, and shows what a few hundred nanoseconds of dead time do to it.

Time: about 45 minutes. You need: Lesson 2 (the LC average of a chopped voltage).

Open it in Voltecx

Use File › Open Example › Inverters › Single-phase full-bridge inverter (file.openExample with {"name":"fullBridgeSpwm"}). It has a 400 V link, two legs with 50 mΩ MOSFETs, 10 kHz carriers, 0.5 µs of dead time, a 1 mH + 1 mH and 10 µF filter and a 50 Ω load.

The full bridge, its two modulators and the LC filter

Unipolar sine PWM

Each leg compares a duty reference with a carrier. Leg a follows da=0.5+(Mi/2)sin⁡ωtd_a = 0.5 + (M_i/2)\sin\omega t and leg b the same reference shifted by 180°. The leg midpoints then switch between 0 and VdcV_{dc}, and the voltage between them averages, over one carrier period, to

vˉab=(da−db) Vdc=Mi Vdcsin⁡ωt.\bar v_{ab} = (d_a - d_b)\,V_{dc} = M_i\,V_{dc}\sin\omega t.

With Mi=0.8M_i = 0.8 and Vdc=400V_{dc} = 400 V the peak is 320 V and the rms 226 V. The LC filter (corner near 1.1 kHz here, from the two 1 mH inductors and 10 µF) passes the 50 Hz part and removes the carrier. Because the two legs switch in opposition, the voltage between them has three levels and ripples at twice the carrier frequency, which is why the filter can be small.

What the run gives

Over the last 20 ms (one cycle) the output has a peak of 316.6 V and an rms of 222.73 V: 1.5 % below the ideal 320 V and 226 V. The filter inductor current peaks at 7.26 A, 6.3 A of load plus the ripple and the capacitor current.

Output voltage and filter inductor current over the last cycle

Dead time

The two switches of a leg must never conduct together, so each gate waits tdt_d before turning on. During that time the current picks the leg's voltage, and the average output moves toward the wrong side, once per switching edge. The loss of output grows with td fswt_d\,f_{sw}. Set tdt_d to zero and the run gives exactly the hand result, 226.25 V rms and 320.1 V peak; with 0.5 µs the output is 222.73 V.

Exercises

  1. Predict and run. Predict the peak and rms output for Mi=0.8M_i = 0.8. Answer: 320 V and 226 V; the run (with dead time) gives 316.6 V and 222.73 V.
  2. Halve the index. Set the amplitude of both references (Refa, Refb) to 0.2. Answer: Mi=0.4M_i = 0.4 gives 160 V peak by hand; the run gives 156.7 V peak and 109.61 V rms.
  3. Double the carrier. Return the amplitudes to 0.4 and set the frequency of PWMa and PWMb to 20 kHz. Answer: the output falls to 219.14 V rms, because there are twice as many dead-time edges.
  4. Remove the dead time. Set td of the four dead-time blocks to 0 (still at 20 kHz). Answer: 226.25 V rms and 320.1 V peak. A real bridge cannot do this: it would shoot through.

Command chain for exercise 2: file.openExample, circuit.setParam on Refa and Refb (amp), simulation.run, scope.measure on vo between 0.04 s and 0.06 s.

Quiz

  1. What does the filter see: the 400 V pulses or their average? The filter keeps the average; the pulses are what it removes.
  2. Why does the output stay at 50 Hz when the carrier doubles? The reference sets the fundamental; the carrier only sets where the ripple is.
  3. A data sheet gives a driver dead time of 1 µs. Does the output rise or fall compared with 0.5 µs? It falls further, since the loss follows td fswt_d\,f_{sw}.

References

Unipolar and bipolar sine PWM, the modulation index and dead-time effects are treated in N. Mohan, T. Undeland and W. Robbins, Power Electronics, 3rd ed., Wiley, 2003 (the chapter on switch-mode DC-AC inverters). The circuit values are illustrative; the numbers on this page are Voltecx's own runs.

Next: back to the course page, or read how to use this course in a class.