---
title: Space-vector modulation
heading: A three-phase inverter's eight switching states as vectors, synthesizing a rotating reference from two active vectors and zero vectors, dwell times, the 15% more voltage than sinusoidal PWM, and six-step operation
eyebrow: S11 · Lesson 35 · Space-vector modulation
xp: 50
---

::: hook
Lesson 33's sinusoidal PWM treats a three-phase inverter as three separate legs, each chasing its own sine. But the motor or grid it feeds sees only the line-to-line voltages, and the three legs together have just eight possible switch combinations. Space-vector modulation works with those eight states directly: it represents them as vectors in a plane and builds the desired rotating voltage vector from the two nearest ones each switching period. The result uses the DC bus better, giving about 15% more output voltage from the same bus, which is why almost every motor drive uses it or its equivalent.
:::

::: play
- The curves are the three dwell times in one switching period for a reference of index m at angle θ within a 60° sector: the first active vector $T_1 = mT_s\sin(60° - \theta)$, the second $T_2 = mT_s\sin\theta$, and the zero vectors the rest.
- At m = 1 the zero-vector time falls to zero at θ = 30°: the reference touches the hexagon's inscribed circle, the limit of linear modulation.
- At θ = 0 or 60° only one active vector is used, because the reference points straight at it.
:::

```sim plot
view: graph
x: t = 0..60
y: T = 0..1
slider: m = 0.1..1 = 0.8
plot: m*sin((60 - t)*pi/180) | label: T₁/Tₛ
plot: m*sin(t*pi/180) | label: T₂/Tₛ
plot: 1 - m*sin((60 - t)*pi/180) - m*sin(t*pi/180) | dashed | label: zero vectors
```

::: predict
## A drive's DC bus is 700 V. What is the largest line-to-line RMS voltage it can produce without overmodulation, with sinusoidal PWM and with space-vector modulation?

- [ ] 495 V either way
- [x] 429 V with sinusoidal PWM, 495 V with space-vector modulation
- [ ] 700 V with space-vector modulation
- [ ] 350 V and 404 V

::: reveal
Sinusoidal PWM peaks at m = 1: $0.612V_{dc}$ = 429 V. Space-vector modulation reaches a line-to-line peak equal to the whole bus, $V_{dc}/\sqrt2$ = 495 V RMS: 15.5% more, the same gain that third-harmonic injection gives. That's the difference between running a 480 V motor at full voltage from a 700 V bus or not.
:::
:::

::: nameit
## Switching states as vectors

Each leg connects its phase to the top or bottom of the bus, so the inverter has $2^3$ = 8 states. Transforming the three phase voltages to the plane ($v_\alpha + jv_\beta = \frac23(v_a + av_b + a^2v_c)$, $a = e^{j120°}$), six states give **active vectors** of length $\frac23V_{dc}$ at 0°, 60°, …, 300°, the corners of a hexagon, and two (all legs high or all low) give **zero vectors**.

## Synthesis

To produce a reference vector $V_\text{ref}$ at angle θ within a sector, apply the two adjacent active vectors for times
$$T_1 = mT_s\sin(60° - \theta), \qquad T_2 = mT_s\sin\theta, \qquad T_0 = T_s - T_1 - T_2$$
with $m = \sqrt3|V_\text{ref}|/V_{dc}$, filling the rest of the period with zero vectors split between the all-low and all-high states. The average over the period equals the reference.

## Limits

Linear modulation holds while the reference circle fits inside the hexagon, $|V_\text{ref}| \le V_{dc}/\sqrt3$ (m ≤ 1). Then the line-to-line peak is $V_{dc}$ and its RMS $V_{dc}/\sqrt2 = 0.707V_{dc}$, against $0.612V_{dc}$ for sinusoidal PWM. Beyond it, overmodulation ends in **six-step** operation, each leg a square wave, with a line-to-line fundamental of $\frac{\sqrt6}{\pi}V_{dc} = 0.780V_{dc}$ RMS and large low-order harmonics.

## Choices within the period

Splitting the zero time equally between the two zero states centers the pulses and minimizes ripple; using only one zero state per sector (discontinuous PWM) leaves one leg unswitched for 60° at a time, cutting switching loss by about a third at some cost in ripple.
:::

::: example
## A reference of m = 0.8 sits 20° into a sector, with a 100 µs switching period. Find the dwell times.

::: solution
1. **First active vector.**
   $$\begin{aligned} T_1 &= 0.8 \times 100\ \mu\text{s} \times \sin 40° \\ &= 51.4\ \mu\text{s} \end{aligned}$$
2. **Second active vector.**
   $$\begin{aligned} T_2 &= 0.8 \times 100\ \mu\text{s} \times \sin 20° \\ &= 27.4\ \mu\text{s} \end{aligned}$$
3. **Zero vectors.**
   $$\begin{aligned} T_0 &= (100 - 51.4 - 27.4)\ \mu\text{s} \\ &= 21.2\ \mu\text{s} \end{aligned}$$
   usually 10.6 µs at each end of the period.
4. **The pattern.** The closer the reference is to an active vector, the longer that vector is used.

**Answer:** $T_1$ = 51.4 µs, $T_2$ = 27.4 µs and $T_0$ = 21.2 µs (10.6 µs at each end).
:::
:::

::: example
## What DC bus does a 480 V (line-to-line RMS) motor need with sinusoidal PWM, and with space-vector modulation?

::: solution
1. **Sinusoidal PWM.**
   $$\begin{aligned} V_{dc} &= 480/0.612 \\ &= 784\ \text{V} \end{aligned}$$
2. **Space-vector modulation.**
   $$\begin{aligned} V_{dc} &= 480\sqrt2 \\ &= 679\ \text{V} \end{aligned}$$
3. **What a six-pulse rectifier gives.** On a 480 V line it makes about
   $$\begin{aligned} V_{dc} &\approx 1.35 \times 480 \\ &= 648\ \text{V} \end{aligned}$$
   short of both at full voltage, which is why such drives accept a little overmodulation or field weakening near rated speed.

**Answer:** 784 V with sinusoidal PWM, and 679 V with space-vector modulation.
:::
:::

::: example
## A 700 V bus is run in six-step. What line-to-line fundamental results, compared with the linear limit?

::: solution
1. **Six-step fundamental.**
   $$\begin{aligned} V_1 &= \frac{\sqrt6}{\pi} \times 700 \\ &= 546\ \text{V} \end{aligned}$$
   RMS, line to line.
2. **Against the linear limit.** Space-vector modulation's linear limit is
   $$\begin{aligned} V_\text{lin} &= 700/\sqrt2 \\ &= 495\ \text{V} \end{aligned}$$
   so six-step gives 10% more.
3. **The cost.** The extra voltage comes with 5th and 7th harmonics of 20% and 14% of the fundamental, so six-step is used only at the top of a motor's speed range.

**Answer:** 546 V RMS line to line, 10% above the 495 V linear limit.
:::
:::

::: check
kind: parts
given: m = 0.4 | 0.7 | 0.95; t = 10 | 25 | 50; T = 50 | 100

## A space-vector reference of index m = {m} sits {t}° into a sector, with a switching period of {T} µs.

::: part
answer: m*T*sin((60 - t)*pi/180)
unit: µs
tolerance: 0.5%

### How long is the first active vector applied?

::: misses
- [m*T*sin(t*pi/180)] That's the second vector's time.
- [any] $mT_s\sin(60° - \theta)$.
:::
:::

::: part
answer: T - m*T*(sin((60 - t)*pi/180) + sin(t*pi/180))
unit: µs
tolerance: 0.5%

### How much time is left for the zero vectors?

::: misses
- [any] $T_s - T_1 - T_2$.
:::
:::
:::

::: check
kind: parts
given: V = 400 | 700 | 1100

## A three-phase inverter runs from a {V} V bus.

::: part
answer: V/sqrt(2)
unit: V
tolerance: 0.5%

### What is the largest line-to-line RMS voltage with space-vector modulation (linear range)?

::: misses
- [sqrt(3)/(2*sqrt(2))*V] That's sinusoidal PWM.
- [any] $V_{dc}/\sqrt2$.
:::
:::

::: part
answer: sqrt(6)/pi*V
unit: V
tolerance: 0.5%

### And in six-step?

::: misses
- [any] $(\sqrt6/\pi)V_{dc}$.
:::
:::
:::

::: check
kind: parts
given: V = 230 | 400 | 480 | 690

## A motor is rated {V} V line to line.

::: part
answer: V*sqrt(2)
unit: V
tolerance: 0.5%

### What DC bus does space-vector modulation need for full voltage?

::: misses
- [any] $V_{LL}\sqrt2$.
:::
:::

::: part
answer: V*2*sqrt(2)/sqrt(3)
unit: V
tolerance: 0.5%

### And sinusoidal PWM?

::: misses
- [any] $V_{LL}/0.612$.
:::
:::
:::

::: check
kind: parts
given: V = 300 | 600 | 900

## A {V} V bus feeds a two-level three-phase inverter.

::: part
answer: 2/3*V
unit: V
tolerance: 0.5%

### How long is each active space vector?

::: misses
- [V] The two-thirds factor in the transformation.
- [any] $\frac23V_{dc}$.
:::
:::

::: part
answer: V/sqrt(3)
unit: V
tolerance: 0.5%

### What is the largest reference magnitude in linear modulation?

::: misses
- [any] The inscribed circle's radius, $V_{dc}/\sqrt3$.
:::
:::
:::

::: check
kind: parts
given: k = 5 | 7 | 11 | 13

## An inverter runs in six-step.

::: part
answer: 100/k
unit: %
tolerance: 0.5%

### What is its {k}th harmonic, as a percentage of the fundamental?

::: misses
- [any] 1/h for the 6k ± 1 harmonics.
:::
:::
:::

::: check
kind: parts
given: f = 5 | 10 | 20

## A drive switches at {f} kHz. With discontinuous PWM, each leg stops switching for a third of each fundamental cycle.

::: part
answer: f*2/3
unit: kHz
tolerance: 0.5%

### What is each leg's average switching frequency?

::: misses
- [any] Two-thirds of the carrier.
:::
:::
:::

::: check
kind: choice

## Why does space-vector modulation reach 15% more line-to-line voltage than sinusoidal PWM from the same bus?

- [ ] It switches faster
- [x] Sinusoidal PWM keeps each phase's own voltage sinusoidal, which wastes bus voltage the load never sees; space-vector modulation shifts all three phases by the same common-mode amount (as third-harmonic injection does), so the line-to-line voltages can reach the full bus
- [ ] It uses a larger DC capacitor
- [ ] It adds a fourth leg

::: misses
- [1] Switching frequency doesn't change the voltage limit.
- [3] The capacitor doesn't set the voltage.
- [4] It uses the same three legs.
:::
:::

::: check
kind: derivation
vars: m = 0.05..1, t = 0..60, T = 0.00001..0.001, V = 100..2000

## A reference of index m sits t degrees into a sector of a V-volt inverter, switching period T.

::: step
answer: m*T*sin((60 - t)*pi/180)

### What is $T_1$?
:::

::: step
answer: m*T*sin(t*pi/180)

### What is $T_2$?
:::

::: step
answer: m*V/sqrt(3)

### What is the reference's magnitude, in volts?
:::

::: right
Right. The dwell times scale with m, and their split follows the angle within the sector.
:::
:::

::: check
kind: python

## Write `dwell(m, theta_deg, Ts)` for θ within 0 to 60°, and `average_vector(m, theta_deg, Vdc)`: the time-average over one period of the two active vectors (length $\frac23V_{dc}$ at 0° and 60°) and zero vectors, as a complex number.

```python starter
def dwell(m, theta_deg, Ts):
    return m * Ts, 0.0, (1 - m) * Ts

def average_vector(m, theta_deg, Vdc):
    return 0j
```

```python solution
import cmath, math

def dwell(m, theta_deg, Ts):
    t = math.radians(theta_deg)
    T1 = m * Ts * math.sin(math.pi / 3 - t)
    T2 = m * Ts * math.sin(t)
    return T1, T2, Ts - T1 - T2

def average_vector(m, theta_deg, Vdc):
    T1, T2, T0 = dwell(m, theta_deg, 1.0)
    v1 = 2 / 3 * Vdc
    v2 = 2 / 3 * Vdc * cmath.exp(1j * math.pi / 3)
    return T1 * v1 + T2 * v2
```

```python tests
import cmath, math
T1, T2, T0 = dwell(0.8, 20, 100e-6)
assert abs(T1 - 51.42e-6) < 0.01e-6 and abs(T2 - 27.36e-6) < 0.01e-6, "m = 0.8, θ = 20°: 51.4 and 27.4 µs."
for m, th in ((0.3, 5), (0.8, 20), (1.0, 45)):
    v = average_vector(m, th, 700)
    want = m * 700 / math.sqrt(3) * cmath.exp(1j * math.radians(th))
    assert abs(v - want) < 1e-9, "The average equals the reference vector."
assert abs(dwell(1.0, 30, 1.0)[2]) < 1e-12, "At m = 1 and 30°, no time is left for zero vectors."
```

::: right
Right. Two active vectors and a zero vector, weighted by their dwell times, reproduce any reference inside the hexagon exactly on average.
:::
:::

::: explain
## How does an inverter with only eight switch states produce a smoothly rotating voltage?

::: model
Each of the eight states puts a fixed voltage vector across the load, six pointing at the corners of a hexagon and two of zero length. Within one short switching period the inverter visits the two active vectors nearest the desired direction and a zero vector, for times chosen so that their average equals the desired vector. Because the switching period is much shorter than the load's electrical time constants, the motor or grid filter responds only to that average, and as the desired vector advances from one period to the next the average traces a smooth circle, with the switching leaving only high-frequency ripple.
:::
:::

::: practice
::: check
given: m = 0.5 | 0.9; t = 15 | 40; T = 100
answer: m*T*sin(t*pi/180)
unit: µs
tolerance: 0.5%

## $T_2$ for m = {m}, θ = {t}°, $T_s$ = {T} µs?

::: misses
- [any] $mT_s\sin\theta$.
:::
:::

::: check
given: V = 300 | 400 | 560 | 650 | 800 | 1100
answer: V/sqrt(2)
unit: V
tolerance: 0.5%

## Largest linear line-to-line RMS from {V} V with SVM?

::: misses
- [any] $V_{dc}/\sqrt2$.
:::
:::

::: check
given: V = 208 | 230 | 380 | 400 | 460 | 575 | 690
answer: V*sqrt(2)
unit: V
tolerance: 0.5%

## Bus for a {V} V motor with SVM?

::: misses
- [any] $V_{LL}\sqrt2$.
:::
:::
:::
