---
title: Rectifiers and inverters
heading: Turning AC into DC with a diode bridge and a reservoir capacitor, the ripple that capacitor leaves, three-phase rectifiers for industrial drives, and turning DC back into AC with an H-bridge, from square waves to pulse-width-modulated sine waves
eyebrow: D2 · Lesson 4 · Rectifiers and inverters
xp: 40
---

::: hook
Almost everything plugged into a wall starts by turning the AC into DC: four diodes flip the negative half-cycles positive and a big capacitor holds the voltage up between peaks. Solar panels, batteries and motor drives need the reverse, an inverter that makes AC from DC. An inverter is four switches in an H shape that connect the load one way and then the other; switched cleverly, thousands of times per cycle, they make a waveform whose average follows a sine.
:::

::: play
- A full-wave bridge rectifier on a 120 V RMS, 60 Hz line (170 V peak), with a reservoir capacitor C feeding a load current I.
- The capacitor charges to the peak, then discharges into the load until the next half-cycle's peak catches it: the sawtooth is the **ripple**.
- More load current or less capacitance means more ripple, approximately $I/(2fC)$.
:::

```sim plot
view: graph
x: t = 0..50
y: v = 0..180
slider: I = 0.1..5 = 1 log
slider: C = 100..10000 = 1000 log
plot: 170*abs(sin(2*pi*60*t/1000)) | samples: 600 | dashed | color: ch3 | label: rectified line, V (t in ms)
plot: (170*abs(sin(2*pi*60*t/1000)) + 170 - I*1000/C*((t - 25/6) - 25/3*floor((t - 25/6)/(25/3))) + abs(170*abs(sin(2*pi*60*t/1000)) - (170 - I*1000/C*((t - 25/6) - 25/3*floor((t - 25/6)/(25/3))))))/2 | samples: 600 | label: capacitor voltage, V (C in µF)
readout: ripple, V = I/(2*60*C*1e-6) | digits: 3
```

::: predict
## A bridge rectifier with a 1000 µF capacitor supplies 1 A from a 60 Hz line. About how large is the ripple?

- [ ] 0.8 V
- [x] About 8 V
- [ ] About 17 V
- [ ] 80 V

::: reveal
Between peaks, 1/120 s apart for a full-wave rectifier, the capacitor supplies the 1 A load alone and falls by $\Delta V = I/(2fC)$ = 1/(120 × 0.001) = 8.3 V. Halving the ripple takes twice the capacitance, which is why power supplies carry such large capacitors.
:::
:::

::: nameit
## Rectifiers

A **bridge** of four diodes makes $|v(t)|$ from a sine of peak $V_p$. Without a capacitor, its average is $2V_p/\pi$ (108 V from a 120 V RMS line). With a reservoir capacitor, the output sits near $V_p$, less a ripple of

$$\Delta V \approx \frac{I}{2fC}$$

for a full-wave rectifier (I/(fC) for half-wave). The diodes conduct only in short pulses near the peaks, which draws a distorted current from the line, the reason larger equipment uses power-factor correction (S11).

A **three-phase six-pulse** rectifier, six diodes on three lines, gives an average of

$$V_\text{dc} = \frac{3\sqrt{2}}{\pi}V_{LL} \approx 1.35\,V_{LL}$$

with small ripple at six times the line frequency: about 648 V from a 480 V line, the DC bus of most industrial motor drives.

## Inverters

An **H-bridge** of four switches applies +V_dc or −V_dc (or zero) across the load. Switched once per half-cycle, it makes a square wave, whose fundamental has a peak of $4V_\text{dc}/\pi$ along with large odd harmonics. **Sinusoidal PWM** switches much faster, varying the duty cycle so that the local average follows a sine; the fundamental's peak is then $mV_\text{dc}$, with m ≤ 1 the **modulation index**, and the harmonics move up near the switching frequency, where a small filter or the load's inductance removes them (lesson 5).
:::

::: example
## A 2 A load runs from a 120 V, 60 Hz bridge rectifier. What capacitance keeps the ripple to 5 V?

::: solution
1. **Capacitance.**
   $$\begin{aligned} C &= \frac{I}{2f\Delta V} \\ &= \frac{2}{120 \times 5} \\ &= 3333\ \text{µF} \end{aligned}$$
   The next standard size up is 3900 µF.
2. **Average output.** The peak less half the ripple:
   $$169.7 - 2.5 = 167\ \text{V}$$

**Answer:** it needs 3333 µF, so a 3900 µF capacitor, and the output averages about 167 V.
:::
:::

::: example
## An H-bridge runs from 170 V. What's the fundamental's peak as a square wave, and the RMS output with sinusoidal PWM at m = 0.9 from 400 V?

::: solution
1. **Square wave.**
   $$4 \times 170/\pi = 216\ \text{V}$$
   peak.
2. **Sinusoidal PWM.**
   $$0.9 \times 400 = 360\ \text{V}$$
   peak, or 255 V RMS.

**Answer:** the square wave's fundamental peaks at 216 V, and sinusoidal PWM gives 255 V RMS (360 V peak).
:::
:::

::: example
## The 120 V supply in the first example (3900 µF, 2 A, about 167 V) loses its input. How long until the capacitor falls to 120 V?

::: solution
1. **Hold-up time.** At constant current, the capacitor falls 47 V, from 167 V to 120 V, in
   $$\begin{aligned} t &= C\Delta V/I \\ &= 3900\ \text{µF} \times 47\ \text{V}/2\ \text{A} \\ &= 92\ \text{ms} \end{aligned}$$
2. **Compare with the line.** That's more than five cycles of the line. This **hold-up time** lets equipment ride through brief dips without resetting.

**Answer:** about 92 ms.
:::
:::

::: check
given: V = 12 | 120 | 230
answer: 2*sqrt(2)*V/pi
unit: V
tolerance: 0.5%

## A bridge rectifier without a capacitor runs from {V} V RMS. What's the average of its output?

::: right
Right. $2V_p/\pi$ with $V_p = \sqrt{2}V$: {answer} V.
:::

::: misses
- [sqrt(2)*V] That's the peak, which a capacitor would hold the output near.
- [V] The average of a rectified sine is $2/\pi$ of its peak.
- [any] Not yet. Average of $|V_p\sin\omega t|$.
:::
:::

::: check
given: I = 0.5 | 2 | 5; f = 50 | 60; C = 1000 | 4700
answer: I/(2*f*C*1e-6)
unit: V
tolerance: 0.5%

## A full-wave rectifier on a {f} Hz line feeds {I} A from a {C} µF capacitor. About how large is the ripple?

::: right
Right. $I/(2fC)$ = {answer} V.
:::

::: misses
- [I/(f*C*1e-6)] That's for a half-wave rectifier; full-wave recharges twice per cycle.
- [any] Not yet. Charge drawn between peaks over C.
:::
:::

::: check
given: V = 208 | 400 | 480 | 600
answer: 3*sqrt(2)/pi*V
unit: V
tolerance: 0.5%

## A six-pulse diode rectifier runs on a {V} V (line-to-line) three-phase supply. What's its average DC output?

::: right
Right. $(3\sqrt{2}/\pi)V_{LL}$ = {answer} V.
:::

::: misses
- [sqrt(2)*V] Close: the peak line voltage, but the output dips between peaks.
- [any] Not yet. Average of the six-pulse envelope.
:::
:::

::: check
given: V = 48 | 170 | 400; m = 0.6 | 0.8 | 0.95
answer: m*V/sqrt(2)
unit: V
tolerance: 0.5%

## An H-bridge inverter with sinusoidal PWM runs from a {V} V bus at modulation index {m}. What's the RMS of its fundamental output?

::: right
Right. $mV_\text{dc}/\sqrt{2}$ = {answer} V.
:::

::: misses
- [m*V] That's the peak.
- [4*V/(pi*sqrt(2))] That's the square wave's fundamental.
- [any] Not yet. Peak $mV_\text{dc}$, then RMS.
:::
:::

::: check
kind: parts
given: V = 120 | 230; I = 0.5 | 2 | 5; r = 2 | 5 | 10; f = 50 | 60

## A bridge rectifier on {V} V rms at {f} Hz feeds {I} A; the ripple must be under {r} V.

::: part
answer: I/(2*f*r)*1e6
unit: µF
tolerance: 0.5%

### What capacitance does it need?

::: misses
- [I/(f*r)*1e6] A full-wave bridge recharges twice per cycle.
- [any] $C = I/(2f\Delta V)$.
:::
:::

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

### What is the peak of the output, allowing 0.7 V for each of two diodes?

::: misses
- [any] $\sqrt2V - 2 \times 0.7$.
:::
:::
:::

::: check
kind: parts
given: C = 1000 | 3900; V = 160 | 320; v = 100 | 120; I = 0.5 | 2

## A rectifier's {C} µF capacitor at {V} V carries {I} A when its input fails; the load quits below {v} V.

::: part
answer: C*1e-6*(V - v)/I*1000
unit: ms
tolerance: 0.5%

### How long is the hold-up?

::: misses
- [any] $C\Delta V/I$.
:::
:::

::: part
answer: 0.5*C*1e-6*(V^2 - v^2)
unit: J
tolerance: 0.5%

### What energy does the capacitor give up?

::: misses
- [any] $\tfrac12C(V_1^2 - V_2^2)$.
:::
:::
:::

::: explain
## Why does a rectifier's reservoir capacitor make the line current flow in short pulses?

::: model
With a large capacitor, the rectifier's output stays close to the line's peak voltage, so the diodes are forward-biased only when the line's instantaneous voltage rises above the capacitor's, which happens for a short interval near each peak. In that brief interval the capacitor must take back all the charge the load drew during the rest of the half-cycle, so the current flows as a tall, narrow pulse instead of a sine. These pulses are rich in harmonics and give a poor power factor, which is why larger power supplies add a power-factor-correction stage that draws a sinusoidal current.
:::
:::

::: practice

::: check
given: V = 5 | 12 | 24 | 120 | 230 | 400
answer: 2*sqrt(2)*V/pi
unit: V
tolerance: 0.5%

## Rectified average from {V} V RMS?

::: misses
- [any] $2\sqrt{2}V/\pi$.
:::
:::

::: check
given: I = 0.05 | 20; f = 50 | 60; C = 100 | 22000
answer: I/(2*f*C*1e-6)
unit: V
tolerance: 0.5%

## Ripple: {I} A, {f} Hz, {C} µF?

::: misses
- [any] $I/(2fC)$.
:::
:::

::: check
given: V = 100 | 1000; m = 0.2 | 1
answer: m*V/sqrt(2)
unit: V
tolerance: 0.5%

## SPWM fundamental RMS: {V} V bus, m = {m}?

::: misses
- [any] $mV_\text{dc}/\sqrt{2}$.
:::
:::
:::
