TExcelTAD
Home › Power Electronics & Motor Drives › The Three-Phase Two-Level Inverter and Sine PWM

The Three-Phase Two-Level Inverter and Sine PWM

Almost every variable-speed motor, from a drone's propeller motor to an electric car's traction motor and a factory's pump drive, is fed by the same circuit: three half-bridge legs on one DC bus. Each leg connects its output to either the positive or the negative rail, so the inverter is called two-level. Three legs switched with sinusoidal references 120∘120^\circ apart make a balanced three-phase voltage of any frequency and amplitude, and the motor's inductance filters the switching ripple out of its current. This lesson works out how much voltage a given bus can deliver, why the carrier frequency is chosen as an odd multiple of three, and how injecting a third harmonic gains 15 % for free. The next lesson does the same job with space vectors (Space-Vector PWM).

The circuit and its voltages

0 Vdc/2Vdc/2 PN S1S4 S3S6 S5S2 abc abc nZ each pole voltage vaN: a to N; phase voltage van: a to the load star point n

Each pole voltage vaNv_{aN} is either VdcV_{dc} or 00. Measured from the bus midpoint 00 it is ±Vdc/2\pm V_{dc}/2. The motor only feels line-to-line voltages, vab=vaN−vbNv_{ab} = v_{aN} - v_{bN}, and its phase voltages relative to its own star point:

van=vaN−vnN,vnN=vaN+vbN+vcN3v_{an} = v_{aN} - v_{nN}, \qquad v_{nN} = \frac{v_{aN} + v_{bN} + v_{cN}}{3}

The common-mode voltage vnNv_{nN} is the same in all three phases, so it cannot drive current through a balanced three-wire load. That fact is what makes third-harmonic injection and space-vector PWM possible. It still drives capacitive currents through motor bearings and cable screens to earth, which is why drives carry common-mode chokes and EMC filters (Snubbers and EMI).

Six-step and sine PWM

Six-step (square-wave) operation: each leg is high for 180∘180^\circ, the legs shifted by 120∘120^\circ. The line voltage is a quasi-square wave with 60∘60^\circ notches, so the third harmonic and its multiples vanish and the 5th, 7th, 11th, 13th remain. The phase voltage is the six-step staircase 13,23Vdc\frac{1}{3}, \frac{2}{3}V_{dc}:

VLL1,rms=6πVdc=0.780 VdcV_{LL1,\text{rms}} = \frac{\sqrt 6}{\pi} V_{dc} = 0.780\,V_{dc}

This is the most voltage a two-level inverter can give, but the amplitude is fixed by the bus.

Sine-triangle PWM compares three references masin⁡(ωt−k⋅120∘)m_a \sin(\omega t - k \cdot 120^\circ) with one triangle carrier. Each pole voltage averages to Vdc2(1+masin⁡ωt)\frac{V_{dc}}{2}(1 + m_a \sin \omega t), so in the linear range:

Vph1,peak=maVdc2,VLL1,rms=322 maVdc=0.612 maVdcV_{ph1,\text{peak}} = m_a \frac{V_{dc}}{2}, \qquad V_{LL1,\text{rms}} = \frac{\sqrt 3}{2\sqrt 2}\, m_a V_{dc} = 0.612\, m_a V_{dc}

At ma=1m_a = 1 that is only 0.612/0.780=78.5 %0.612/0.780 = 78.5\ \% of six-step. Choose the frequency ratio mfm_f odd (no even harmonics) and a multiple of 3: the carrier harmonic at n=mfn = m_f is then identical in all three poles, a pure common-mode component, and it cancels in the line voltage.

Third-harmonic injection. Add 16sin⁡3ωt\frac{1}{6}\sin 3\omega t to each reference. The added term is common-mode, so the motor never sees it, but it flattens the reference peak to 0.8660.866 of the fundamental's. The fundamental can therefore rise to ma=2/3=1.155m_a = 2/\sqrt 3 = 1.155 before the reference touches the carrier peak, which is 15.5 % more voltage in the linear range: VLL1,rms=0.707 VdcV_{LL1,\text{rms}} = 0.707\,V_{dc}. Space-vector PWM reaches the same limit.

Worked example

Given: a low-voltage drive on a 48 V48\ \text{V} bus (an e-bike or a robot joint), carrier 750 Hz750\ \text{Hz} for a 50 Hz50\ \text{Hz} output (mf=15m_f = 15).

Find: the line-to-line rms fundamental at ma=0.9m_a = 0.9 and 1.01.0, with third-harmonic injection at ma=1.15m_a = 1.15, and in six-step.

Solve:

VLL1(ma=0.9)=0.612⋅0.9⋅48 V=26.44 V rms,VLL1(1.0)=29.39 V rmsVLL1(1.15, 3rd)=0.612⋅1.15⋅48 V=33.80 V rms,VLL1,six-step=0.780⋅48 V=37.43 V rms\begin{aligned} V_{LL1}(m_a = 0.9) &= 0.612 \cdot 0.9 \cdot 48\ \text{V} = 26.44\ \text{V rms}, \qquad V_{LL1}(1.0) = 29.39\ \text{V rms} \\ V_{LL1}(1.15,\ \text{3rd}) &= 0.612 \cdot 1.15 \cdot 48\ \text{V} = 33.80\ \text{V rms}, \qquad V_{LL1,\text{six-step}} = 0.780 \cdot 48\ \text{V} = 37.43\ \text{V rms} \end{aligned}

Check: the 15th carrier harmonic, large in each pole voltage, must be absent from the line voltage. The FFT below confirms it.

python · try it yourself
import numpy as np

Vdc, f1, mf = 48.0, 50.0, 15                       # carrier 750 Hz: an odd multiple of 3
N = mf * 2000
t = np.arange(N) / (N * f1)
tri = 2 * np.abs(2 * ((mf * f1 * t + 0.25) % 1.0) - 1) - 1

def inverter(ma, third=0.0):
    poles = []
    for k in range(3):                              # legs a, b, c, 120 degrees apart
        th = 2 * np.pi * f1 * t - 2 * np.pi * k / 3
        ref = ma * (np.sin(th) + third * np.sin(3 * th))
        poles.append(np.where(ref > tri, Vdc, 0.0)) # pole voltage to the negative rail
    va, vb, vc = poles
    vn = (va + vb + vc) / 3                         # star point of a balanced load
    return va, va - vb, va - vn

def spec(v):
    return np.abs(np.fft.rfft(v)) * 2 / N           # peak amplitude of harmonic n

for ma, third, label in ((0.9, 0.0, "SPWM ma = 0.90"), (1.0, 0.0, "SPWM ma = 1.00"),
                         (1.15, 1/6, "ma = 1.15 + 3rd")):
    vpole, vll, vph = inverter(ma, third)
    P, LL, PH = spec(vpole), spec(vll), spec(vph)
    print(f"{label:15s}: phase V1 = {PH[1]:5.2f} V pk, line V1 = {LL[1]/np.sqrt(2):5.2f} V rms, "
          f"pole DC = {P[0]/2:4.1f} V, n = 15 in pole {P[15]:5.2f} V / in line {LL[15]:.3f} V, "
          f"largest line harmonic n = {int(np.argmax(LL[2:]) + 2)}")
print(f"six-step line rms = sqrt(6)/pi * Vdc = {np.sqrt(6)/np.pi*Vdc:.2f} V")
SPWM ma = 0.90 : phase V1 = 21.59 V pk, line V1 = 26.44 V rms, pole DC = 24.0 V, n = 15 in pole 17.10 V / in line 0.006 V, largest line harmonic n = 13
SPWM ma = 1.00 : phase V1 = 23.99 V pk, line V1 = 29.38 V rms, pole DC = 24.0 V, n = 15 in pole 14.43 V / in line 0.006 V, largest line harmonic n = 17
ma = 1.15 + 3rd: phase V1 = 27.61 V pk, line V1 = 33.81 V rms, pole DC = 24.0 V, n = 15 in pole  9.12 V / in line 0.006 V, largest line harmonic n = 13
six-step line rms = sqrt(6)/pi * Vdc = 37.43 V

The pole voltages carry a 24 V24\ \text{V} DC offset and a large 15th harmonic. Both vanish in the line voltage; the line voltage's largest harmonics are the sidebands at 13 and 17. The injected third harmonic does not appear in the phase voltage either, yet it lets the fundamental grow to 33.8 V33.8\ \text{V} rms without overmodulation.

Interactive: the fundamental seen by a motor (calculation only)

A drive for a 400 V motor rectifies the three-phase mains to a bus of about 560 V560\ \text{V} (Diode Rectifiers). With sine PWM at ma=1m_a = 1 the fundamental phase voltage is 280 V280\ \text{V} peak, 198 V198\ \text{V} rms, so the line voltage is 343 V343\ \text{V}, short of the motor's 400 V400\ \text{V}. That is why drives use third-harmonic injection or space vectors, and why many still run a little below the motor's rated voltage. The lab shows the fundamental phasors of such an inverter feeding a balanced star load of 12+j9 Ω12 + j9\ \Omega per phase (a stand-in for a motor at one load point, three-wire). This is mains-level equipment: calculation and simulation only.

N'VaVbVcIaIbIcV solid, I thin (own scale)star, 3-wire-pk0+pk0T2Tphase voltages, peak 280 V-pk0+pk0T2Tline currents, peak 18.7 AP = 6.27 kW Q = 4.70 kvar S = 7.84 kVApf = 0.800 balanced IN = 0 A

The lab reads a line voltage of 342.9 V342.9\ \text{V}, line currents of 13.20 A13.20\ \text{A} lagging by 36.9∘36.9^\circ, P=6.273 kWP = 6.273\ \text{kW} and power factor 0.8000.800. Unbalance the load with kb: in a three-wire system the star point shifts, exactly the common-mode freedom the PWM exploits.

Guided lab: a low-voltage three-phase inverter

Hand calculation. For your bus voltage and mam_a, the line rms fundamental 0.612 maVdc0.612\,m_a V_{dc}, and the phase current into your motor or into three equal resistors.

Simulation. Run the Python cell with your VdcV_{dc}; change mf to 16 (even, not a multiple of 3) and look at the line voltage spectrum.

What you would measure. A three-phase motor-driver evaluation board rated for 24 V or less, from a current-limited bench supply, with open-loop sine PWM firmware (most vendors ship one) feeding three equal power resistors in star (for example 22 Ω22\ \Omega, 10 W10\ \text{W}: at 24 V24\ \text{V} and ma=1m_a = 1 the switched phase voltage is about 10.3 V10.3\ \text{V} rms, so each dissipates about 5 W5\ \text{W} and gets hot) or a small gimbal motor. With a differential probe across two outputs, a 20 kHz carrier and a scope's averaging or low-pass math, expect the line fundamental within 3 % of 0.612 maVdc0.612\,m_a V_{dc}, less a little for dead time and switch drops. Each pole voltage measured to the negative rail has a mean of Vdc/2V_{dc}/2.

Hazards and safe setup. At most 24 V24\ \text{V}, current-limited. Do not ground-reference the scope to a motor phase (the outputs are switched nodes): use a differential probe or two channels and math. A spinning motor generates voltage back into the bridge; the bus capacitors stay charged after you switch off. Industrial drives on 400 V400\ \text{V} mains, with buses near 560 V560\ \text{V}, are calculation and simulation only; they are covered by IEC 61800-5-1 for safety and IEC 61800-3 for EMC.

Pitfalls

  • Confusing pole, phase and line voltage. The motor nameplate gives line-to-line rms; the PWM sets pole voltages.
  • Measuring with a single-ended probe on a phase. The probe ground shorts a switched node to earth.
  • An even or non-triplen mfm_f at low carrier ratios. Harmonics leak into the line voltage.
  • Overmodulating without knowing it. Above ma=1m_a = 1 (or 1.1551.155 with injection) low-order harmonics return.

Practice

  1. A 600 V600\ \text{V} bus with sine PWM at ma=0.95m_a = 0.95: line rms fundamental? (Calculation only.)
  2. What line voltage can six-step give from the same bus?
  3. Why does adding 16sin⁡3ωt\frac{1}{6}\sin 3\omega t to every reference not distort the motor current?
Answer
  1. 0.612⋅0.95⋅600=349 V0.612 \cdot 0.95 \cdot 600 = 349\ \text{V} rms.
  2. 0.780⋅600=468 V0.780 \cdot 600 = 468\ \text{V} rms.
  3. It is identical in all three phases (the third harmonic of 120∘120^\circ-shifted waves is in phase), so it appears only in vnNv_{nN}, which a balanced three-wire load cannot respond to.

Test yourself

With sine-triangle PWM at ma=1m_a = 1, the rms line-to-line fundamental of a two-level inverter is about…

  1. 0.500 Vdc0.500\,V_{dc}
  2. 0.612 Vdc0.612\,V_{dc}
  3. 0.707 Vdc0.707\,V_{dc}
  4. 0.780 Vdc0.780\,V_{dc}

Why is the frequency ratio mfm_f chosen as an odd multiple of 3?

  1. To reduce switching losses
  2. So that the carrier harmonics at mfm_f are common-mode and cancel in the line voltage, and no even harmonics appear
  3. To make the fundamental larger
  4. To avoid dead time

Third-harmonic injection increases the linear-range output voltage by about…

  1. 5 %
  2. 15.5 %
  3. 27 %
  4. 41 %

The common-mode voltage vnNv_{nN} of a two-level inverter…

  1. drives the motor's torque
  2. does not drive current in a balanced three-wire load, but drives capacitive currents to earth (bearings, cable screens)
  3. is always zero
  4. only exists in six-step mode