Set 25 — Single-Phase Voltage Source Inverters
Part 3 produced DC from DC, and the duty ratio was a number that changed slowly if at all. Vary that same duty ratio sinusoidally — fifty times a second while switching at twenty thousand — and the H-bridge of Set 17 stops producing an adjustable DC and starts producing alternating current. Same four transistors, same gate drives, same dead time. Only the reference has changed.
What is new is the question of quality. A chopper's output ripple was filtered by a motor's inductance and nobody looked closely. An inverter's output is the thing being sold, and a square wave carries 48% distortion while a PWM waveform carries 146% — yet the PWM one is far better, because of where the distortion sits rather than how much of it there is.
The square-wave full bridge gives the largest fundamental available from a given link:
\[ V_{o,rms} = V_{dc}, \qquad V_1 = \frac{4V_{dc}}{\pi\sqrt2} = 0.900V_{dc}, \qquad V_n = \frac{V_1}{n}\ (n\text{ odd}) \]Quasi-square modulation controls the output and can null a harmonic:
\[ V_{o,rms} = V_{dc}\sqrt{\frac{\delta}{\pi}}, \qquad V_n = \frac{4V_{dc}}{n\pi\sqrt2}\sin\frac{n\delta}{2} \]The \(n\)th harmonic vanishes when \(n\delta/2\) is a multiple of \(\pi\).
Sinusoidal PWM is defined by two ratios:
\[ m_a = \frac{\hat V_{ref}}{\hat V_{carrier}}, \qquad m_f = \frac{f_{carrier}}{f_{out}}, \qquad \hat V_1 = m_aV_{dc}\ \text{(full bridge)} \]Its harmonics cluster around the carrier, not at low order:
\[ n = m_f,\ m_f\pm2,\ 2m_f\pm1,\ 2m_f\pm3,\ \dots \]Unipolar switching doubles the effective carrier and halves the voltage steps:
\[ \text{output} \in \{+V_{dc},0,-V_{dc}\}, \qquad \text{harmonics around }2m_f \]Dead time subtracts volt-seconds in the direction opposing the current:
\[ \Delta V = V_{dc}t_df_s\ \text{(square wave in phase with }\text{sign}(i)\text{)} \]
A single-phase full-bridge inverter operates in square-wave mode from a 200 V DC link into a \(10\ \Omega\) resistive load at 50 Hz. Find the RMS output, the fundamental and the first three harmonics, the THD, the fraction of power carried by the fundamental, and the device ratings. Compare with the half bridge.
The RMS output is trivial, because the waveform has constant magnitude:
The fundamental, from the Fourier series of a square wave:
The peak fundamental exceeds the DC link voltage — 255 V from a 200 V source. That is not a violation of anything: the square wave contains the fundamental plus harmonics that subtract near the peak, and adding them back gives 200. It is also why the square-wave mode is kept as the ceiling of every modulation scheme.
The harmonics fall as \(1/n\), odd only:
| Order | Frequency | RMS | % of fundamental |
|---|---|---|---|
| 1 | 50 Hz | 180.1 V | 100% |
| 3 | 150 Hz | 60.0 V | 33.3% |
| 5 | 250 Hz | 36.0 V | 20.0% |
| 7 | 350 Hz | 25.7 V | 14.3% |
The same 48.34% that the single-phase converter's current had in Set 16, and for the same reason — both are square waves. The inverter and the rectifier are duals: one makes a square voltage from a smooth current, the other a square current from a smooth voltage.
How much power the fundamental carries:
Nineteen per cent of the delivered power is at frequencies the load does not want. In a resistor that is merely wasteful; in a motor those harmonics produce torque pulsations and extra heating without contributing useful torque at all.
Device ratings:
Each switch conducts for a full half cycle. Note the switch blocks only \(V_{dc}\), not twice it — the bridge clamps it, exactly as the isolated bridge of Set 22 did.
The half bridge, for comparison, applies only \(\pm V_{dc}/2\):
Exactly half the output for the same link and the same device voltage — so a half bridge delivers a quarter of the power. It halves the switch count and needs a split capacitor to create the midpoint, and it survives mainly in low-power applications and as one leg of something larger.
The same bridge is operated in quasi-square mode with a conduction angle of 120° per half cycle. Find the RMS output, the fundamental, the first three harmonics and the THD, and identify what has happened to the third harmonic.
How quasi-square works. Instead of switching both legs simultaneously, one leg is delayed so that the output spends part of each half cycle at zero — both upper devices or both lower devices conducting together:
The phase-shift angle between the two legs is the control input, and it varies the output continuously from full square wave down to zero — without any high-frequency switching at all.
The RMS falls with the square root of the conduction:
The harmonics acquire a sine factor:
A reduction of 13.4% in fundamental for a 33% reduction in conduction angle — the fundamental falls more slowly than the RMS, which is the first hint that the waveform has improved.
And now the third harmonic:
Exactly zero. Choosing \(\delta = 120^\circ\) makes \(3\delta/2 = 180^\circ\), where the sine vanishes — the largest harmonic in the spectrum is eliminated by a single choice of angle, with no switching penalty whatsoever.
The remaining spectrum:
| Order | Square wave | Quasi-square, \(\delta = 120^\circ\) |
|---|---|---|
| 1 | 180.1 V | 155.9 V |
| 3 | 60.0 V | 0 V |
| 5 | 36.0 V | 31.2 V |
| 7 | 25.7 V | 22.3 V |
| THD | 48.3% | 31.1% |
A third off the distortion, from a waveform that switches no more often. And 31.1% is exactly the figure the six-pulse rectifier reached in Set 11 — both waveforms have had their triplens removed, one by choosing an angle and one by having no neutral.
What the method can and cannot do. One angle controls one thing:
| Degrees of freedom | Can achieve |
|---|---|
| 1 angle (quasi-square) | control \(V_1\) or null one harmonic |
| 2 angles | control \(V_1\) and null one, or null two |
| \(k\) angles | control \(V_1\) and null \(k-1\) harmonics |
Here the single angle was spent on nulling the third, which fixed the output at 155.9 V — no voltage control remains. Spending it on voltage control instead would leave the third harmonic present. Getting both requires two angles, which is the selective harmonic elimination of Set 27.
The bridge now uses bipolar sinusoidal PWM with \(m_a = 0.8\) and \(m_f = 21\) from the same 200 V link at 50 Hz. Find the fundamental, the total RMS and THD, the dominant harmonics and their frequencies, and design an output filter to bring the residual below 3%.
The fundamental is proportional to the modulation index:
Linear in \(m_a\) right up to \(m_a = 1\), which is what makes PWM so much easier to control than the quasi-square method — the output follows the reference directly with no trigonometry.
The total RMS is unchanged from the square wave, because bipolar switching means the output is always at \(\pm V_{dc}\):
Three times the square wave's distortion — and this is the better waveform. THD as a single number is nearly useless for a PWM inverter, because it counts a volt at 1050 Hz the same as a volt at 150 Hz.
Where the harmonics actually are. Sidebands cluster around multiples of the carrier:
| Order | Frequency | Amplitude (peak) |
|---|---|---|
| 1 | 50 Hz | 160 V |
| 3, 5, 7… | 150–350 Hz | zero |
| \(m_f\) | 1050 Hz | 81.8 V |
| \(m_f\pm2\) | 950, 1150 Hz | 22.0 V |
| \(2m_f\pm1\) | 2050, 2150 Hz | 31.4 V |
| \(2m_f\pm3\) | 1950, 2250 Hz | 13.9 V |
The second row is the whole point: no low-order harmonics at all. The distortion has been moved from 150 Hz, where filtering it needs henries and millifarads, to 1050 Hz and above, where a small \(LC\) handles it.
Why \(m_f\) is chosen odd. An odd carrier ratio makes the waveform half-wave symmetric:
And no DC component — which matters enormously, because a DC offset on an inverter feeding a transformer will saturate it. Choosing \(m_f\) odd costs nothing and removes an entire family of harmonics.
Design the filter. The largest harmonic is 81.8 V peak at 1050 Hz, and a second-order \(LC\) attenuates as \((f/f_c)^2\):
And 250 Hz is comfortably above the 50 Hz fundamental, so the filter passes the wanted signal essentially unchanged. Note the ratio that made this easy: the carrier is 21 times the fundamental, so there is more than a decade of clear space to put the corner in.
The trade in \(m_f\):
| Larger \(m_f\) | Smaller \(m_f\) |
|---|---|
| harmonics further from the fundamental | lower switching loss |
| much smaller filter | less EMI |
| above audible range | synchronous operation practical |
| more switching loss | — |
The filter shrinks as \(1/m_f^2\) while switching loss grows as \(m_f\), so there is an optimum — the same shape of trade that Set 2 found for converter frequency, and it usually lands between 2 and 20 kHz.
The same bridge is switched unipolar — each leg modulated against its own reference, one inverted — at the same \(m_a = 0.8\) and \(m_f = 21\). Determine the fundamental and total RMS, where the harmonics now appear, and quantify the advantages over bipolar switching.
What changes. In bipolar switching both legs are driven from one reference, so the two diagonals alternate and the output is always \(\pm V_{dc}\). In unipolar switching each leg has its own reference — one the negative of the other — so the two legs can be in the same state, giving zero output:
The fundamental is unchanged:
But the total RMS falls, because the output spends time at zero:
Same wanted output, nearly half the unwanted content — before any filtering. The zero state contributes nothing to either the fundamental or the harmonics, so replacing full-amplitude switching with it is pure gain.
And the harmonics move up an octave. Because the two legs switch at different instants, the output changes state twice per carrier period:
The devices still switch at 1050 Hz — the switching loss is unchanged — but the load sees 2100. This is exactly the trick the two-leg chopper of Set 17 used, and the interleaved buck of Set 18 before it: phase-shifting two switching cells doubles the effective frequency for free.
What the filter gains:
A quarter of the filter reactance for the same residual ripple. In the 2 kVA UPS of Problem 6 that is the difference between a 4 mH choke and a 1 mH one.
The third advantage is the voltage step. Bipolar switching swings the output through \(2V_{dc}\) at every transition; unipolar swings only \(V_{dc}\):
| Property | Bipolar | Unipolar |
|---|---|---|
| Output levels | 2 (\(\pm V_{dc}\)) | 3 (\(\pm V_{dc}\), 0) |
| Voltage step | \(2V_{dc}\) = 400 V | \(V_{dc}\) = 200 V |
| Lowest harmonic | 1050 Hz | 2100 Hz |
| Total RMS | 200 V | 143 V |
| THD before filter | 146% | 77% |
| Filter reactance | 1× | 0.25× |
| Device switching loss | 1× | 1× |
| Control complexity | simplest | two references |
Halving the voltage step halves the \(dv/dt\), which halves the common-mode current into any stray capacitance and halves the stress on motor winding insulation. Set 26 shows why that matters in a drive.
Why bipolar survives. Two situations still favour it:
And (ii) bipolar switching guarantees that the output voltage can reverse instantly at any modulation index, so the current can be driven either way at every point in the cycle. For a four-quadrant converter that must cross zero current smoothly — the same argument as Set 17, Problem 5 — the simpler scheme can be the right one.
An inverter runs from a 200 V link at \(f_s = 10\) kHz with 2 µs of dead time. Find the voltage error it introduces, its harmonic content, and its severity as a fraction of the fundamental at \(m_a = 0.8\) and at \(m_a = 0.2\). Describe the compensation.
Why the dead time distorts. Set 7 inserted it to prevent shoot-through: for \(t_d\) at every transition, neither device in a leg is on. What the output does during that gap depends on which way the current is flowing:
| Load current | Which diode conducts | Output during dead time | Error |
|---|---|---|---|
| \(i_o > 0\) (out of the leg) | lower | clamped to \(-V_{dc}/2\) | output too low |
| \(i_o < 0\) (into the leg) | upper | clamped to \(+V_{dc}/2\) | output too high |
The error always opposes the current — it acts like a resistance, but a nonlinear one that does not shrink with the signal.
The magnitude. Each switching period loses \(V_{dc}t_d\) of volt-seconds, and there are \(f_s\) of them per second:
Four volts of error, and independent of the modulation index — the same 4 V whether the inverter is producing 160 V or 40.
Its shape is a square wave, because it flips sign when the current does:
So the dead time reintroduces exactly the low-order harmonics that PWM was designed to eliminate — a 3rd, 5th and 7th appear where the spectrum of Problem 3 had none. And because they come from the current's sign, they are worst with a distorted or discontinuous current.
The severity depends entirely on the operating point:
| \(m_a\) | \(\hat V_1\) | Error | % of fundamental |
|---|---|---|---|
| 1.0 | 200 V | 5.09 V | 2.5% |
| 0.8 | 160 V | 5.09 V | 3.2% |
| 0.2 | 40 V | 5.09 V | 12.7% |
| 0.05 | 10 V | 5.09 V | 51% |
The error is a fixed number of volts against a shrinking signal, so it dominates at low output. In a variable-speed drive that means low speed, where a 12% distortion produces torque ripple, audible noise, and in the worst case a dead band in which the machine will not start at all.
What makes it worse:
All three point the wrong way. A higher link voltage, a longer dead time for safety, and a higher switching frequency for a smaller filter each make the distortion worse — so the modern trend towards fast switching at high voltage aggravates it, and fast devices with short dead times are the compensating trend.
Compensation. Since the error is predictable, it can be cancelled:
| Method | Note |
|---|---|
| Feedforward on \(\text{sign}(i_o)\) | simple; fails near current zero-crossing |
| Current-magnitude-dependent correction | smooths the transition through zero |
| Closed-loop current control | the loop rejects it — if fast enough |
| Shorter \(t_d\) with fast devices | attacks the cause |
| Wide-bandgap devices | \(t_d\) of 100 ns — a twentieth |
The second row matters because the sign function is exactly what the compensator cannot know near zero crossing, where noise on the current measurement makes the sign flicker. That is precisely where the current is small and the distortion is proportionally largest — so dead-time compensation is hardest at the point it is most needed.
Design a 2 kVA single-phase UPS inverter delivering 230 V, 50 Hz from a 400 V DC link. Choose the modulation index and devices, budget the losses at 10 kHz, design the output filter for 20% inductor ripple and a 1 kHz corner, and compute the efficiency.
The modulation index:
Comfortably inside the linear range, with about 20% of headroom for the link voltage to sag as the battery discharges — which is exactly why 400 V was chosen for a 230 V output rather than something tighter.
The currents:
A 25 A device for 12.3 A of peak current looks generous, and it is deliberate: a UPS must survive the inrush of whatever is plugged into it, which for a switched-mode load is the capacitor charging current of Set 10.
Conduction loss. Over a sinusoid the average device current is:
Switching loss, with \(E_{sw} = 2\) mJ at rated current. The energy per switching follows the instantaneous current, whose average over a sinusoid is \(2/\pi\) of the peak:
Switching loss is nearly twice the conduction loss — the reverse of the chopper drive in Set 17, and the reason is that an inverter switches at 10 kHz where the chopper switched at 3. Halving the frequency would save 26 W and quadruple the filter.
The loss budget and efficiency:
| Term | Loss | Share |
|---|---|---|
| Switching | 52.2 W | 61% |
| Conduction (IGBTs) | 28.2 W | 33% |
| Diodes and filter | 5.0 W | 6% |
| Total | 85.4 W | — |
The output filter. Size the inductor for 20% ripple at the worst case:
Then the capacitor from the corner frequency:
A corner at 1 kHz sits a decade above the fundamental and a decade below the carrier — the standard placement. Note that Problem 4's unipolar switching would put the harmonics at 20 kHz instead of 10, allowing the corner to move to 2 kHz and the inductor to fall to about 1 mH.
What else a UPS inverter must handle:
| Requirement | Design response |
|---|---|
| Non-linear load, crest factor 3 | rate for 37 A peak, not 12.3 |
| Output regulation ±2% | closed voltage loop — Set 23 |
| Short-circuit survival | cycle-by-cycle current limit |
| Battery sag to 320 V | \(m_a\) rises to 1.0 — still linear |
| Transfer from mains in < 5 ms | synchronise phase before transfer |
| \(<3\%\) output THD | filter of this design |
The first row is the one that sizes the hardware. A UPS almost always feeds capacitor-input rectifiers — the very loads of Set 10 — whose crest factor of 3 or more means the inverter must supply 37 A peaks while delivering 8.7 A of RMS. That is why a 2 kVA UPS carries devices that would serve a 6 kW resistive load.
Key Formulas
| Quantity | Relation | Notes |
|---|---|---|
| Square wave RMS | \(V_{o,rms} = V_{dc}\) | Full bridge |
| Square wave fundamental | \(V_1 = \dfrac{4V_{dc}}{\pi\sqrt2} = 0.900V_{dc}\) | The ceiling for any scheme |
| Square wave harmonics | \(V_n = V_1/n\), odd | \(THD = 48.3\%\) |
| Half bridge | half of all the above | Quarter the power |
| Quasi-square RMS | \(V_{dc}\sqrt{\delta/\pi}\) | — |
| Quasi-square harmonics | \(V_n = \dfrac{4V_{dc}}{n\pi\sqrt2}\sin\dfrac{n\delta}{2}\) | Null when \(n\delta/2 = k\pi\) |
| Third-harmonic null | \(\delta = 120^\circ\) | \(THD \to 31.1\%\) |
| SPWM fundamental | \(\hat V_1 = m_aV_{dc}\) | Linear to \(m_a = 1\) |
| Bipolar RMS | \(V_{o,rms} = V_{dc}\) | Always at \(\pm V_{dc}\) |
| Unipolar RMS | \(\approx 0.713V_{dc}\) at \(m_a = 0.8\) | Three levels |
| Harmonic clusters | bipolar \(m_f\); unipolar \(2m_f\) | Same switching loss |
| Why \(m_f\) odd | half-wave symmetry | No even harmonics, no DC |
| Filter attenuation | \(\left(f_h/f_c\right)^2\) | Second-order \(LC\) |
| Dead-time error | \(\Delta V = V_{dc}t_df_s\) | Independent of \(m_a\) |
| Its fundamental | \(4\Delta V/\pi\) | Plus 3rd, 5th at \(1/n\) |
| Inverter \(I_{avg}\) | \(\hat I_o/\pi\) | Per device, sinusoid |
| Switching energy | \(E_{sw}\times\dfrac{2}{\pi}\) | Averaged over a sinusoid |
| Output inductor | \(L = \dfrac{V_{dc}}{4f_s\Delta I}\) | Worst case |
Common Mistakes
Thinking the fundamental cannot exceed the link voltage. A square wave's fundamental is 255 V peak from a 200 V link — Problem 1.
Using the half bridge's formulas for a full bridge. The full bridge gives twice the output and four times the power — Problem 1.
Assuming quasi-square control is free of a penalty. Spending the angle on nulling the third harmonic fixes the output voltage — Problem 2.
Judging a PWM inverter by its THD. The PWM waveform had three times the square wave's THD and a far better spectrum — Problem 3.
Choosing \(m_f\) even. It admits even harmonics and a DC component, which will saturate an output transformer — Problem 3.
Expecting unipolar switching to cost more switching loss. The devices switch at the same rate; only the load sees \(2m_f\) — Problem 4.
Forgetting that bipolar switching doubles the voltage step. \(2V_{dc}\) per transition, with the \(dv/dt\) and EMI that follow — Problem 4.
Treating dead-time error as proportional to the output. It is a fixed 4 V — 3.2% at \(m_a = 0.8\) and 12.7% at 0.2 — Problem 5.
Compensating dead time with \(\text{sign}(i_o)\) alone. It fails at the current zero crossing, where the distortion is proportionally worst — Problem 5.
Rating a UPS inverter for its RMS output current. Non-linear loads have a crest factor of 3, so the peak requirement is triple — Problem 6.
Six problems and the H-bridge of Set 17 has become an inverter without a single component changing. The square wave gave the most fundamental and the worst spectrum; one switching angle bought a third-harmonic null for free; sinusoidal PWM traded 10% of the fundamental for a spectrum with no low-order content at all; and unipolar switching doubled the effective carrier at no cost. Then dead time, inserted in Set 7 purely to protect the devices, put the low-order harmonics back — 12.7% of them at low modulation.
All of it produced one phase. Three of these bridges sharing a DC link produce three phases, and the arithmetic changes in ways that are not obvious: the triplen harmonics that dominated the single-phase spectrum cancel in the line voltages and disappear, the phase voltage acquires a six-step shape it never had before, and a common-mode voltage appears that has nowhere to go except through the load's stray capacitance to earth.
Next: Set 26 — Three-Phase Voltage Source Inverters, where 180° and 120° conduction are compared, the six-step waveform's 31% distortion is derived, third-harmonic injection is shown to raise the usable output by 15.5% without appearing at the load, and the common-mode voltage that drives bearing currents is quantified.