Space-Vector PWM and the Modulation Index
Sine PWM treats a three-phase inverter as three separate single-phase legs. But the motor does not care about the three pole voltages separately. It responds to one quantity, the space vector of its phase voltages, which rotates in a plane at the electrical speed. Space-vector PWM (SVPWM) works in that plane directly. A two-level inverter has only eight switch states, so it can produce only eight vectors. SVPWM switches between the two vectors nearest to the reference and a zero vector, in exactly the right proportions, to make the average vector over each switching period equal the reference. The result needs 15.5 % less bus voltage than sine PWM for the same motor voltage, has slightly lower current ripple, and fits naturally into the field-oriented control of Clarke and Park Transforms, whose output is a voltage vector.
Eight states, six vectors
Write a switch state as three bits : means the upper switch of that leg is on. The space vector of the pole voltages, with the amplitude-invariant Clarke transform, is:
The six active states give vectors of length at , the corners of a hexagon. The states and give the zero vector: all phases tied to the same rail. Common-mode components such as the pole DC offset drop out of , because .
Dwell times
A reference in sector 1 (between and , ) is made by applying for , for and a zero vector for the rest of the period . Matching the average to the reference gives:
Other sectors use the same formulas with measured from the sector's first vector. The usual symmetric sequence, , splits equally between the two zero states. Each leg then switches once on and once off per period, centred, exactly like a sine-triangle modulator with a modified reference.
Linear limit. for every angle only while the reference circle fits inside the hexagon, whose inscribed radius is . Defining the modulation index as for sine PWM, :
This is the same limit as third-harmonic injection. In fact, SVPWM with equal zero times is identical to sine PWM with the common-mode signal of the three references added (the "min-max" injection), which gives a saddle-shaped pole reference. The code checks this to machine precision. Beyond the hexagon's inscribed circle (overmodulation) the vector is clipped to the hexagon, and at the limit the inverter reaches six-step. Some controllers also use a single zero state per period (discontinuous PWM), clamping one leg for at a time: one third fewer switching events, at the cost of more ripple.
Worked example
Given: , (), reference at .
Find: the sector, , , , the three leg duty cycles, and the largest reference SVPWM can make without overmodulating.
Solve:
Check: with sine PWM the same bus allows only , so this reference sits exactly at the sine-PWM limit and still has to spare. The averaged pole voltages have the space vector , as the code confirms.
import numpy as np
Vdc, Ts = 48.0, 50e-6 # 48 V bus, 20 kHz
def clarke(va, vb, vc): # amplitude-invariant alpha, beta
return (2/3) * (va - 0.5*vb - 0.5*vc), (2/3) * (np.sqrt(3)/2) * (vb - vc)
states = ["100", "110", "010", "011", "001", "101"]
for s in states:
a, b = clarke(*[Vdc * int(c) for c in s])
print(f"V{s}: {np.hypot(a, b):5.2f} V at {np.degrees(np.arctan2(b, a)) % 360:5.1f} deg")
def svpwm(Vref, theta):
"""sector, dwell times and leg duty cycles for a reference vector Vref at angle theta (rad)"""
sector = int(theta // (np.pi/3)) % 6
th = theta - sector * np.pi/3 # angle inside the sector
k = np.sqrt(3) * Vref / Vdc
T1, T2 = Ts * k * np.sin(np.pi/3 - th), Ts * k * np.sin(th)
T0 = Ts - T1 - T2
first, second = states[sector], states[(sector + 1) % 6]
duty = [(T1 * int(first[i]) + T2 * int(second[i]) + T0 / 2) / Ts for i in range(3)]
return sector + 1, T1, T2, T0, duty
sec, T1, T2, T0, d = svpwm(24.0, np.radians(20))
print(f"\n|V*| = 24 V at 20 deg: sector {sec}, T1 = {T1*1e6:.2f} us, T2 = {T2*1e6:.2f} us, T0 = {T0*1e6:.2f} us")
print("leg duties:", " ".join(f"{x:.4f}" for x in d))
a, b = clarke(*[Vdc * x for x in d]) # average pole voltages over the period
print(f"averaged vector: {np.hypot(a, b):.2f} V at {np.degrees(np.arctan2(b, a)):.2f} deg")
# SVPWM equals sine PWM plus the min-max common-mode signal
err = 0.0
for th in np.linspace(0, 2*np.pi, 721, endpoint=False):
*_, d = svpwm(24.0, th)
v = [24.0 * np.cos(th - 2*np.pi*k/3) for k in range(3)]
vcm = -(max(v) + min(v)) / 2
d2 = [0.5 + (x + vcm) / Vdc for x in v]
err = max(err, max(abs(p - q) for p, q in zip(d, d2)))
print(f"max |SVPWM duty - min-max duty| over a turn = {err:.1e}")
print(f"linear limit |V*| = Vdc/sqrt(3) = {Vdc/np.sqrt(3):.2f} V (sine PWM: Vdc/2 = {Vdc/2:.1f} V), "
f"gain {2/np.sqrt(3):.4f}")
sec, T1, T2, T0, d = svpwm(30.0, np.radians(30))
print(f"|V*| = 30 V at 30 deg: T0 = {T0*1e6:.2f} us -> overmodulation")V100: 32.00 V at 0.0 deg
V110: 32.00 V at 60.0 deg
V010: 32.00 V at 120.0 deg
V011: 32.00 V at 180.0 deg
V001: 32.00 V at 240.0 deg
V101: 32.00 V at 300.0 deg
|V*| = 24 V at 20 deg: sector 1, T1 = 27.83 us, T2 = 14.81 us, T0 = 7.36 us
leg duties: 0.9264 0.3698 0.0736
averaged vector: 24.00 V at 20.00 deg
max |SVPWM duty - min-max duty| over a turn = 4.4e-16
linear limit |V*| = Vdc/sqrt(3) = 27.71 V (sine PWM: Vdc/2 = 24.0 V), gain 1.1547
|V*| = 30 V at 30 deg: T0 = -4.13 us -> overmodulation
At and (the middle of a sector, where the hexagon is closest to the centre) the zero time comes out negative: the reference lies outside the hexagon's inscribed circle, so the controller must clip it.
Interactive: the saddle-shaped pole voltage
Averaged over each switching period, a leg's pole voltage is smooth: what you would see through a low-pass filter on the scope. With SVPWM it is the sine reference plus the min-max signal. That signal is a triangle-like wave at three times the fundamental, with a peak of a quarter of the reference amplitude. Its largest Fourier term is a third harmonic of for a reference. The lab adds just that term (node a) to the sine-PWM pole voltage, at (node f); the netlist has no switches, so these are the period-averaged voltages, not the PWM itself.
The sine reaches the full bus at : no headroom left. With the third harmonic, the same instant reads , and the flattened peaks at reach only . That spare is what lets the fundamental grow: with the full min-max signal, the reference can rise to , 15.5 % more, before the flattened peaks touch the bus. Set the slider to 0 to get pure sine PWM back.
Guided lab: seeing SVPWM on a low-voltage motor board
Hand calculation. For your board's bus voltage and PWM frequency: , the dwell times at one reference, and the duty cycles. Most motor-control firmware reports the three duties directly.
Simulation. Change the reference in the Python cell and find the angle where first reaches zero as grows (sector centres, ).
What you would measure. A three-phase motor evaluation board rated for 24 V or less, from a current-limited supply, running its open-loop or FOC example with SVPWM into a small gimbal or drone motor held in a clamp. Put a simple RC low-pass ( and , corner ) from one phase output to the negative rail and scope it: at a slow electrical frequency (tens of hertz) you see the saddle shape, with a mean of and flattened peaks. Its amplitude follows within a few percent; the RC filter itself attenuates a little and lags.
Hazards and safe setup. At most , current-limited. The motor spins: clamp it and keep hands clear. The phase outputs switch the full bus in nanoseconds, so keep the RC filter's ground at the board's power ground and use a differential probe for anything else.
Pitfalls
- Mixing Clarke scalings. The amplitude-invariant form (factor ) keeps vector lengths equal to phase peaks; the power-invariant form () does not. Pick one and keep it.
- Forgetting that SVPWM and min-max injection are the same. Implement whichever is simpler on your controller; carrier-based is usually cheaper.
- Ignoring overmodulation. A controller that asks for more than gets distortion unless it limits the vector (and its integrators, see Anti-Windup).
- Assuming the motor gets the full bus. Dead time and switch drops eat a few percent (Inverter Harmonics and Dead Time).
Practice
- A bus: maximum linear line-to-line rms with SVPWM and with sine PWM? (Calculation only.)
- Find , , for , , at (sector 1).
- Which switch states make up sector 4 (between and )?
Answer
- SVPWM ; sine PWM .
- ; , , .
- and , plus the zero states and .
Test yourself
How long is each active space vector of a two-level inverter (amplitude-invariant Clarke)?
The largest reference vector SVPWM can make without overmodulation is…
- , the radius of the circle inscribed in the hexagon
Symmetric SVPWM with equal zero-vector times is equivalent to…
- six-step operation
- sine PWM plus the common-mode signal of the three references
- bipolar single-phase PWM
- discontinuous PWM
Why do zero vectors not change the motor's voltage vector?
- They are applied for zero time
- In states 000 and 111 all three phases sit at the same rail, so the line-to-line voltages are zero
- They reverse the current
- They are only used at start-up