Building an ac wave out of a dc source
An inverter has no ac voltage to start from. It makes one by connecting a dc source to the load through switches, in a pattern that repeats. Every question in this module comes down to one choice: which pattern? Different patterns give different amplitudes, different harmonic content, and different costs. You will test each pattern, then use what you find to design three inverters.
By the end you can
1. Trace the current in each switch state of a full-bridge inverter, including the feedback diodes, and explain shoot-through and blanking time.
2. Analyze a square-wave inverter driving an RL load, both in the time domain and with a Fourier series, and compute peak current, power, and THD.
3. Use a notch angle α to set the fundamental voltage and eliminate a chosen harmonic, and state what that costs.
4. Choose ma, mf, and bipolar or unipolar switching for a PWM inverter to meet a voltage and THD specification.
5. Describe the six-step and PWM three-phase inverters, and apply constant volts per hertz to an induction motor.
6. Size a multilevel inverter, find switching angles that eliminate harmonics, and compare cascaded and diode-clamped designs.
7. Explain the limits of three-phase sine PWM, and use space vectors to compute SVPWM dwell times, sequence, and the extra 15.5 % of voltage it gives.
Three ideas behind every result
Switching builds the waveform. The switches can only connect the load to a few fixed voltages (+Vdc, 0, −Vdc for a full bridge). The output is a staircase or a train of pulses made from those values.
Fourier analysis splits the waveform into a fundamental and harmonics. The fundamental is the sine at the wanted frequency, and it does the useful work. The harmonics are the unwanted remainder. Total harmonic distortion (THD) measures how large they are compared with the fundamental.
The load filters the current. Each harmonic of the voltage drives a current In = Vn/|Zn|. An inductive load has an impedance that grows with n, so the current is much closer to a sine than the voltage. Power adds up harmonic by harmonic: P = ΣIn,rms² R.
The inverters in this module
| Inverter | Output voltage | What you control | Main trade-off |
|---|---|---|---|
| Square wave (full bridge) | ±Vdc | Only Vdc and frequency | Simple, but 48 % voltage THD |
| Notched pulse | +Vdc, 0, −Vdc | Angle α | Removing a harmonic lowers the fundamental |
| Single-phase sine PWM | ±Vdc or three levels | ma and mf | Low-order harmonics vanish, but switching loss rises |
| Six-step (three-phase) | Six-step staircase per phase | Vdc only | Highest fundamental, no amplitude control |
| Three-phase sine PWM | Pulses per phase | ma and mf | Good current, but only 86.6 % of Vdc line-to-line |
| SVPWM | Pulses per phase | Reference vector (m, α) | 100 % of Vdc line-to-line and lower ripple, with a more involved calculation |
| Multilevel | 2k + 1 levels, or a clamped divider | k, and the angles | More parts for a smoother wave |
How this module works
Each section has a lab with sliders. Change one thing at a time and watch the waveforms, the spectrum, and the numbers. Below each lab are worked examples that open on the correct answer. Move your answer to see what fails, change the givens to see how the answer changes, and ask questions about the problem. Activities check your reading of the labs. The design challenges ask you to meet a full specification.
All labs use ideal switches and a series RL load, and they sum harmonics through n = 300. The textbook sums only a few terms by hand, so a THD may differ from the book by a few tenths of a percent. The Fourier values come from a numerical analysis of the actual waveform, not from a formula, so the labs also work for cases the book does not cover.
Four switches, three output voltages
The full bridge (or H bridge) has two legs, each with an upper and a lower switch. The load connects between the midpoints of the legs. Depending on which switches are closed, the load sees +Vdc, −Vdc, or zero. The rest of the module is about when to choose each state.
| Closed | Output vo | Comment |
|---|---|---|
| S1 and S2 | +Vdc | Positive state |
| S3 and S4 | −Vdc | Negative state |
| S1 and S3, or S2 and S4 | 0 | The load is shorted; its current freewheels |
| S1 and S4, or S2 and S3 | undefined | Shoot-through: a short circuit across the source |
Explore the bridge
Tick switches to close them, choose the direction of the load current, and read the explanation. The load is an inductor in series with a resistor, so its current has to keep flowing when the switches change. Try every preset, then switch the current direction and try again.
What the explorer shows
Feedback diodes. A transistor conducts in one direction. An inductive load can force current the other way, for instance right after the voltage reverses. An antiparallel diode across each switch gives that current a path and returns the stored energy to the source. Many power modules include these diodes.
Shoot-through and blanking time. Real switches take time to turn off. If the upper switch of a leg is still conducting when the lower one turns on, the dc source is shorted. Controllers therefore add a short blanking time (dead time), during which both switches in a leg are off. During that interval the diodes carry the load current, and the output voltage is whatever the current direction dictates, not necessarily what you intended.
The half bridge. Two switches and a split dc source (two equal capacitors) give outputs of ±Vdc/2. It needs half the switches, but each open switch must block the full Vdc and the output amplitude is halved.
Activities
The square-wave inverter
The simplest sequence closes S1 and S2 for half a period, then S3 and S4 for the other half. The output is a square wave of amplitude Vdc. The shape of the current depends on the load, and that gives you two ways to analyze it.
Method 1: the time domain
For a series RL load, the current in each half-cycle is the sum of a final value ±Vdc/R and an exponential with time constant τ = L/R. In steady state the current is symmetric: it swings between −Imax and +Imax. Matching the end of one half-cycle to the start of the next gives
If T/2τ is large the current has time to reach nearly ±Vdc/R, so it looks like the voltage. If T/2τ is small the current ramps and hardly curves: it is nearly triangular. The same current also shows you which devices work: transistors when the current and voltage have the same sign, feedback diodes when they differ.
Method 2: the Fourier series
A square wave with no dc component has only odd harmonics:
This method is more general: it works for any load whose impedance you can write at each harmonic, and for any waveform. Its price is a sum, but because |Zn| grows with n, a handful of terms is usually enough.
Total harmonic distortion is THD = √(Σn≥2 Vn,rms²)/V1,rms (or the same with currents). For the square-wave voltage it is always 48.3 %. The load inductance does not change that, but it does reduce the current THD.
Lab: square-wave inverter
Try these scenarios: (1) make the load almost purely resistive and then very inductive, and watch T/2τ, the shape of the current, and the THD. (2) Look at the colored bands: which devices carry current when the current is negative while the voltage is positive? (3) Raise the frequency and see how the current THD responds.
Worked examples: change the answer and see what happens
Each example opens on the correct answer. Move any slider under “Your answer” to see what would change: the checklist shows what passes, and a grey dashed line or tick on the graphs marks the correct answer. Sliders under “Change the givens” change the problem itself, and the correct answer updates to match. Use “Ask a question” on any example.
Activities
Notching the pulse: amplitude and harmonic control
A square wave gives you no control: Vdc sets the fundamental, and the harmonics are what they are. Insert a zero-voltage interval of angle α at each end of every pulse and you get one adjustable knob. It controls the fundamental, and it can also make a chosen harmonic vanish.
The switching sequence closes S1 and S2 for the middle of the positive half, closes S1 and S3 (or S2 and S4) during the zero intervals, and closes S3 and S4 for the middle of the negative half. The Fourier series of the notched wave has coefficients
Two consequences follow directly. The fundamental is V1 = (4Vdc/π) cos α, so α adjusts the amplitude. And harmonic n is zero whenever nα = 90°: α = 30° removes the 3rd, α = 18° the 5th, α ≈ 12.9° the 7th.
One angle can do only one job well. Choosing α to remove the 3rd harmonic fixes the fundamental at 0.866 of its square-wave value. If you also need to control amplitude, Vdc must be adjustable, for example with a dc-dc converter ahead of the inverter.
Lab: notched-pulse inverter
Try: (1) α = 30° and read V3. (2) Slide α slowly from 0 and watch the voltage spectrum: which bars shrink first, and which grow? (3) Find the minimum of the current THD curve. Is it at one of the harmonic-elimination angles?
Worked examples: change the answer and see what happens
Activities
Sine pulse-width modulation (SPWM)
Sine PWM, the most common form of PWM, switches many times per cycle and varies the width of the pulses so their local average follows a sine wave. The harmonics do not disappear, but they move to high frequencies, where the load, or a small filter, removes them easily. The price is more switching events.
The principle
A comparator compares a reference (the wanted sine, amplitude Vm,sine) with a carrier (a triangle at the switching frequency, amplitude Vm,tri). Two ratios define the scheme:
Bipolar switching turns S1 and S2 on when the reference exceeds the carrier (output +Vdc), and S3 and S4 on otherwise (−Vdc). Unipolar switching drives the two legs from the reference and from its inverse, so the output steps between +Vdc and 0 in the positive half and between −Vdc and 0 in the negative half.
For ma ≤ 1 the fundamental is exactly V1 = maVdc, so ma gives you linear amplitude control, even from an unregulated dc source. The harmonics cluster around mf and its multiples for bipolar PWM, and around 2mf for unipolar PWM. Make mf an odd integer for bipolar, and an even integer for unipolar, so the waveform keeps half-wave symmetry.
Above ma = 1 (overmodulation) the output is no longer linear and low-order harmonics reappear. The fundamental tops out at 4Vdc/π when the output has become a square wave.
Lab: single-phase sine PWM
Try: (1) vary ma from 0.2 to 1 and watch the fundamental follow it. (2) Move mf from 7 to 41 and watch the current THD fall and the carrier frequency rise. (3) Switch to unipolar and compare the spectrum cluster. (4) Push ma to 1.4 and read the third and fifth harmonics. The two lower charts take a moment: they scan the whole range of mf and ma for you.
Class D audio amplifiers
If the reference is an audio signal and the carrier is around 250 kHz, a PWM bridge becomes an audio amplifier, and a low-pass filter recovers the audio. Because the transistors are switches, a class D amplifier can approach 100 % efficiency in theory, and roughly 75 % or more in practice, compared with a theoretical limit of 78.5 % (and about 20 % in practice) for a conventional class AB design. This is why they appear where size and heat matter, from phones to concert stacks.
Worked examples: change the answer and see what happens
Activities
Three-phase inverters and motor drives
A three-phase bridge has three legs, each with an upper and a lower switch. Switching the legs 120° apart gives a balanced three-phase output. The main application is speed control of ac motors.
The six-step inverter
In the six-step scheme each switch is on for 180°, and a switching event occurs every 60°. The two switches in the same leg are never on together. The line-to-line voltages are 120°-wide pulses of ±Vdc with zero intervals between them. A wye-connected load sees line-to-neutral voltages with six steps per cycle, at ±Vdc/3 and ±2Vdc/3.
The Fourier series contains only harmonics n = 6k ± 1 (5, 7, 11, 13, …). Triplen harmonics cancel in a balanced three-phase system, and even harmonics are absent by symmetry. For the fundamental, the line-to-neutral peak is VLN,1 = 2Vdc/π, and the THD of both line-to-neutral and line-to-line voltage is about 31 %. The amplitude cannot be adjusted except through Vdc.
Lab: six-step inverter
Three-phase sine PWM
Each leg has its own sine reference, 120° apart, compared with one shared carrier. The upper switch of a leg is on when its reference exceeds the carrier, and the lower is on otherwise. Choosing mf as an odd multiple of 3 minimizes the harmonics in the line-to-line voltage. For ma ≤ 1 the line-to-line fundamental is (√3/2)·maVdc, which is where the 0.866 in the text's Table 8-8 comes from.
Lab: three-phase sine PWM
Controlling an induction motor
The synchronous speed of an induction motor with p poles is ωs = 2ω/p, so changing the electrical frequency changes the speed. But flux in the air gap is proportional to V/f. If you lower f and keep V, the flux rises, the iron saturates, and the motor overheats. The remedy is constant volts per hertz: lower V in proportion to f. At low frequency the stator resistance drops a significant share of the voltage, so many drives add a small boost there.
A PWM inverter suits this job well, because ma adjusts the voltage with a fixed dc link (an ac-ac converter with a dc link). A six-step inverter can do it only if the dc link voltage can be adjusted. The lab below uses a 230 V, 60 Hz, 4-pole motor with a standard equivalent circuit.
Lab: induction motor volts per hertz
Try: (1) at 30 Hz, compare constant V/f with constant V. (2) Go down to 10 Hz with constant V/f, then switch on the boost. (3) Reduce the dc link voltage until the PWM ma exceeds 1 at 60 Hz.
Worked examples: change the answer and see what happens
Activities
Three-phase sine PWM and space-vector PWM
Sine PWM is simple and linear, but in a three-phase bridge it leaves part of the dc link unused. Space-vector PWM (SVPWM) uses the whole link. This section shows where sine PWM runs out of voltage, how to think of a three-phase bridge as eight voltage vectors, and why SVPWM turns out to be sine PWM with one small addition.
Where three-phase sine PWM runs out
In the three-phase sine PWM of the previous section, each leg compares its own sine reference with a shared triangle. In the linear range (ma ≤ 1) the output of each leg follows its reference, so the phase-voltage amplitude is maVdc/2 and the line-to-line fundamental is
A six-step inverter reaches 1.103Vdc from the same link, so sine PWM uses only 78.5 % of what the bridge can give. Beyond ma = 1 the signals exceed the carrier peak, pulses vanish, and low-order harmonics return (overmodulation).
A bridge has eight voltage vectors
Each leg has two states, so a three-phase bridge has 2³ = 8 switch states. Write a state as (a b c), where 1 means the upper switch of that leg is on. Six of the states put a voltage on the load, and two short it:
| State (a b c) | Vector | Magnitude | Angle |
|---|---|---|---|
| 1 0 0 | V1 | 2Vdc/3 | 0° |
| 1 1 0 | V2 | 2Vdc/3 | 60° |
| 0 1 0 | V3 | 2Vdc/3 | 120° |
| 0 1 1 | V4 | 2Vdc/3 | 180° |
| 0 0 1 | V5 | 2Vdc/3 | 240° |
| 1 0 1 | V6 | 2Vdc/3 | 300° |
| 0 0 0 or 1 1 1 | V0, V7 | 0 | none |
The three phase voltages can be written as a single rotating complex number, the space vector. A balanced three-phase sine set with peak Vm is a vector of length Vm rotating at the output frequency. The six active vectors are the corners of a hexagon. SVPWM makes any reference vector inside the hexagon by averaging neighboring vectors over each switching period Ts.
Here m = Vm/(Vdc/2) (the same ma used in sine PWM), and α′ is the angle of the reference measured from the nearer active vector, Vn, in its sector. T1 goes to Vn, T2 to Vn+1, and T0 is shared between the zero vectors 000 and 111. Because T0 cannot be negative, the largest linear reference is the inscribed circle of the hexagon: Vm = Vdc/√3, which means m = 2/√3 = 1.155.
Explorer: the space-vector diagram
Drag the angle to move the reference vector around the hexagon, or press Play. Watch the sector, the dwell times, and the gate pattern change. Then raise m: at which angle does the vector first leave the green circle? Try m = 1.0 (the limit of sine PWM, the grey circle) and m = 1.155.
SVPWM is sine PWM with an injected signal
If the dwell times are placed symmetrically in each period (zero vectors at the ends and middle, as in the gate pattern above) the duty ratio of every leg equals 0.5 + 0.5·(vref,x/(Vdc/2)) with the common-mode signal
added to all three sine references. That is a triangular wave at three times the output frequency with peak ma/4. The same signal in all three legs cancels in the line-to-line voltages, so the load sees the same fundamental, but the peaks of the modulating signals fall from ma to (√3/2)·ma. That is why the linear range extends to ma = 1.155.
A simpler signal with the same purpose is third-harmonic injection: add (ma/6)·sin 3θ to each reference. It has the same linear limit, 1.155, and slightly more ripple than SVPWM.
The injected signal does appear as a common-mode voltage at three times the output frequency. It does not reach the load current of a balanced wye load, but it does matter for bearing currents and EMI filter design.
Lab: sine PWM, injection, and SVPWM side by side
Try: (1) at ma = 0.9, switch among the three methods: what changes in the line-to-line voltage, and what in the current THD? (2) Raise ma to 1.1 with sine PWM, then switch to SVPWM. (3) Read the modulating-signal chart: does any signal cross the carrier peak? (4) Look at the two sweep charts at the bottom. They take a moment, because they scan ma for all three methods.
Worked examples: change the answer and see what happens
Activities
Multilevel inverters
A multilevel inverter makes more than three voltage levels, so its output looks more like a sine wave. That cuts harmonics and the voltage step at each switching, which suits high-power motor drives and the connection of photovoltaics, batteries, and fuel cells to the grid.
Cascaded H bridges
Put k H bridges in series, each with its own isolated dc source Vdc. Each bridge contributes +Vdc, 0, or −Vdc, so the total has 2k + 1 levels. Give bridge j a notch angle αj and the output is a staircase with Fourier coefficients
The modulation index Mi compares the fundamental with that of a square wave of amplitude kVdc. With k angles you can set Mi and eliminate k − 1 harmonics: the equations Σcos(mαj) = 0 for each chosen m, together with the Mi equation. They are nonlinear, so they are solved numerically, usually by Newton-Raphson iteration. The lab does this for you, and it will tell you when no solution exists. There often are none: a particular set of harmonics can be eliminated only over certain ranges of Mi.
Pattern swapping. The bridge with the smallest angle conducts the longest and supplies the most energy. If the sources are batteries, that battery runs down first. Rotating the angle assignment from cycle to cycle makes every source deliver the same average power.
Lab: cascaded H bridges
Try: (1) k = 2 with α = 20° and 40° (set by hand). (2) Switch to “Solve” with Mi = 0.8: which harmonics vanish? (3) k = 5, “skip triplens”, Mi = 0.8. (4) Slide Mi with k = 3 in the “lowest odd” mode and watch where solutions disappear. (5) Turn on pattern swapping.
Diode-clamped inverters
The diode-clamped converter needs one dc source, divided by a stack of capacitors. Each leg has twice as many switches as it has levels minus one, and clamp diodes tie the junctions to the capacitor taps. Closing a window of adjacent switches connects the leg to one of the capacitor taps. Because the open switches share the dc voltage, each blocks only Vdc/(levels − 1), instead of the full Vdc.
How many levels do you need?
The next lab rounds a sine wave to the nearest of N levels, a simple way to see how the THD falls as you add levels, and what the extra levels cost in switches, sources, and diodes. (This is an illustration of the idea; real converters use the selective-elimination angles above, or PWM on top of a few levels.)
Worked examples: change the answer and see what happens
Activities
Design challenges
Each challenge gives you a specification and a set of choices. Press Test my design to see which requirements pass. A design is complete when every check passes. Several designs may work; each one trades something for something else.
Check your understanding
Fifteen questions on the ideas from this module, then reflection prompts and a downloadable copy of your responses.
Reflect
Your questions for your instructor
Questions the example panels could not answer are saved here. Copy them to send to your instructor, or download them with the rest of your responses.
Save your work
This page does not store or send anything. To keep a record, or to turn it in if your instructor asks, download a text file of every answer you have entered. If any of this work is graded, follow your instructor's rules on collaboration and on the use of AI tools.
Formula reference
Ideal switches, series RL load, steady state. Vn are peak values; ω0 = 2πf; Zn = R + jnω0L.
Any inverter with an RL load
Single-phase waveforms
| Scheme | Fundamental | Harmonics | Notes |
|---|---|---|---|
| Square wave | V1 = {{4Vdc|π}} | Vn = {{4Vdc|nπ}}, n odd | Voltage THD 48.3 %. Imax = (Vdc/R)·(1 − e−T/2τ)/(1 + e−T/2τ) |
| Notched pulse | V1 = {{4Vdc|π}}cos α | Vn = {{4Vdc|nπ}}cos(nα) | Harmonic n vanishes at α = 90°/n (odd n). Vrms = Vdc[[1 − 2α/π]] |
| Bipolar PWM | V1 = maVdc (ma ≤ 1) | Clusters at mf, 2mf, … | mf odd. Overmodulation: V1 ≤ 4Vdc/π |
| Unipolar PWM | V1 = maVdc | Clusters at 2mf, 4mf, … | mf even. Half the carrier for similar harmonics |
| Cascaded, k sources | V1 = {{4Vdc|π}}Σcos αj | Vn = {{4Vdc|nπ}}Σcos(nαj) | 2k + 1 levels, Mi = V1/(4kVdc/π). Eliminate k − 1 harmonics |
Three-phase
| Quantity | Expression |
|---|---|
| Six-step, line-to-neutral | Vn,LN = {{2Vdc|3nπ}}[2 + cos(nπ/3) − cos(2nπ/3)], n = 1, 5, 7, 11, 13, …; V1,LN = {{2Vdc|π}} |
| Six-step, line-to-line | Vn,LL = {{4Vdc|nπ}}cos(nπ/6); V1,LL = √3·V1,LN |
| Three-phase PWM (ma ≤ 1) | V1,LL = {{√3|2}}·maVdc; choose mf an odd multiple of 3 |
| Induction motor | ωs = 2ω/p; air-gap flux ∝ V/f; keep V/f constant |
Three-phase PWM methods
| Method | Linear range | Max VLL,1 (peak) | Notes |
|---|---|---|---|
| Sine PWM | ma ≤ 1 | 0.866 Vdc | VLL,1 = {{√3|2}}·maVdc; choose mf an odd multiple of 3 |
| Third-harmonic injection | ma ≤ 2/√3 = 1.155 | 1.0 Vdc | Add (ma/6)·sin 3θ to each reference |
| SVPWM | m ≤ 2/√3 = 1.155 | 1.0 Vdc | T1 = (√3/2)m·sin(60° − α′), T2 = (√3/2)m·sin α′, T0 = 1 − T1 − T2; equals sine PWM + [−(max + min)/2] |
| Six-step | fixed | 1.103 Vdc | No amplitude control except Vdc |
Multilevel hardware
| Topology | Output levels | Parts for N output levels |
|---|---|---|
| Cascaded H bridge | N = 2k + 1 | k isolated sources, 4k switches |
| Diode-clamped full bridge | N = 2m − 1 (m levels per leg) | One source, m − 1 capacitors, 2(N − 1) switches, 2(m − 1)(m − 2) clamp diodes; each switch blocks Vdc/(m − 1) |