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 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
Each pole voltage is either or . Measured from the bus midpoint it is . The motor only feels line-to-line voltages, , and its phase voltages relative to its own star point:
The common-mode voltage 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 , the legs shifted by . The line voltage is a quasi-square wave with notches, so the third harmonic and its multiples vanish and the 5th, 7th, 11th, 13th remain. The phase voltage is the six-step staircase :
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 with one triangle carrier. Each pole voltage averages to , so in the linear range:
At that is only of six-step. Choose the frequency ratio odd (no even harmonics) and a multiple of 3: the carrier harmonic at is then identical in all three poles, a pure common-mode component, and it cancels in the line voltage.
Third-harmonic injection. Add to each reference. The added term is common-mode, so the motor never sees it, but it flattens the reference peak to of the fundamental's. The fundamental can therefore rise to before the reference touches the carrier peak, which is 15.5 % more voltage in the linear range: . Space-vector PWM reaches the same limit.
Worked example
Given: a low-voltage drive on a bus (an e-bike or a robot joint), carrier for a output ().
Find: the line-to-line rms fundamental at and , with third-harmonic injection at , and in six-step.
Solve:
Check: the 15th carrier harmonic, large in each pole voltage, must be absent from the line voltage. The FFT below confirms it.
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 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 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 (Diode Rectifiers). With sine PWM at the fundamental phase voltage is peak, rms, so the line voltage is , short of the motor's . 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 per phase (a stand-in for a motor at one load point, three-wire). This is mains-level equipment: calculation and simulation only.
The lab reads a line voltage of , line currents of lagging by , and power factor . 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 , the line rms fundamental , and the phase current into your motor or into three equal resistors.
Simulation. Run the Python cell with your ; 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 , : at and the switched phase voltage is about rms, so each dissipates about 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 , less a little for dead time and switch drops. Each pole voltage measured to the negative rail has a mean of .
Hazards and safe setup. At most , 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 mains, with buses near , 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 at low carrier ratios. Harmonics leak into the line voltage.
- Overmodulating without knowing it. Above (or with injection) low-order harmonics return.
Practice
- A bus with sine PWM at : line rms fundamental? (Calculation only.)
- What line voltage can six-step give from the same bus?
- Why does adding to every reference not distort the motor current?
Answer
- rms.
- rms.
- It is identical in all three phases (the third harmonic of -shifted waves is in phase), so it appears only in , which a balanced three-wire load cannot respond to.
Test yourself
With sine-triangle PWM at , the rms line-to-line fundamental of a two-level inverter is about…
Why is the frequency ratio chosen as an odd multiple of 3?
- To reduce switching losses
- So that the carrier harmonics at are common-mode and cancel in the line voltage, and no even harmonics appear
- To make the fundamental larger
- To avoid dead time
Third-harmonic injection increases the linear-range output voltage by about…
- 5 %
- 15.5 %
- 27 %
- 41 %
The common-mode voltage of a two-level inverter…
- drives the motor's torque
- does not drive current in a balanced three-wire load, but drives capacitive currents to earth (bearings, cable screens)
- is always zero
- only exists in six-step mode