Control Strategies
Delve into the various control strategies used in power electronics to optimize performance.
Content
Pulse Width Modulation (PWM)
Versions:
Watch & Learn
AI-discovered learning video
Sign in to watch the learning video for this topic.
Pulse Width Modulation (PWM): The Chaotic Conductor of Power Electronics
Ever wondered how a switch that is either ON or OFF can produce a smooth, controllable voltage like a maestro coaxing a symphony out of two piano keys?
You already know about power converters and their messy friends harmonics and switching losses from previous sections. PWM is the practical spellbook we use to tame those problems while giving us precise control. This is not the first lecture in the series — it builds on feedback control principles and the realities of switching losses that we covered earlier. Think of PWM as the control strategy that sits between your controller's clever commands and the converter's brutal switching reality.
What PWM actually is (short and punchy)
- Pulse Width Modulation (PWM) is a method of creating an average output voltage by rapidly switching a device between ON and OFF states and varying the relative duration of the ON time within each switching period.
- In plain English: we vary the width of pulses in a periodic train to shape the average waveform your load feels.
Key parameters
- Switching frequency f_s: How fast we blink the switch. High frequency = finer control, more switching loss.
- Duty cycle D: Fraction of each period the switch is ON. D = t_ON/T.
- Modulation index M: In many schemes, the amplitude control parameter (e.g., ratio of reference amplitude to carrier amplitude).
Why PWM is the control strategy of choice
- It converts continuous control signals from feedback controllers into realizable binary commands for power switches.
- It balances dynamic performance and efficiency: higher switching frequency gives better approximation to the desired waveform but costs more switching loss and EMI.
- It is compatible with modern digital controllers, allowing complex modulation schemes and closed-loop control.
Expert take: PWM is where control theory meets brutal semiconductor physics. You design the controller assuming continuous voltages, then ask PWM to implement that with things that only do 0 or 1. The trick is in the dance.
Common PWM schemes and when to use them
1) Natural/Unipolar vs Bipolar PWM
- Bipolar PWM: The polarity of the output switches between positive and negative. Simpler, more switching harmonics concentrated around switching frequency.
- Unipolar PWM: Uses two half-bridges so each leg switches relative to a midpoint. Lower harmonic content at the fundamental and lower dv/dt stress per device.
When to use: Use unipolar if you care about lower harmonic distortion for a given switching frequency; bipolar if you want simplicity and fewer gate signals.
2) Sinusoidal PWM (SPWM)
- Compare a sinusoidal reference (the desired waveform) with a triangular carrier. Where the reference is higher, switch ON.
- Result: Output has a fundamental component whose amplitude is proportional to modulation index, plus switching harmonics centered around the carrier frequency and its sidebands.
SPWM is intuitive and meshes well with sinusoidal load requirements (e.g., inverters for motors, grid-tied systems).
3) Space Vector PWM (SVPWM)
- A smarter, geometry-based method for three-phase converters. Treats the converter's possible switching states as vectors in the 2D alpha-beta plane and synthesizes the desired vector by time-weighted combination.
- Pros: Better DC bus utilization (more output voltage for the same modulation index) and slightly lower harmonic distortion than naive SPWM.
Use SVPWM for three-phase drives where you want maximum voltage amplitude and efficiency.
4) Carrier-based multi-level and selective schemes
- For multi-level converters, PWM extends to multiple carriers or phase-shifted carriers to reduce harmonic content and lower device stress.
- Selective harmonic elimination (SHE) chooses switching angles to directly cancel specific harmonics if you can solve the nonlinear equations.
The tradeoffs: frequency, harmonics, switching loss, and control loop bandwidth
Remember earlier when we discussed switching losses and snubber circuits? PWM is the linchpin connecting choice of switching frequency to both losses and harmonic spectrum.
- Increasing f_s: reduces low-frequency harmonic ripple and improves closed-loop tracking, but raises switching losses and EMI.
- Decreasing f_s: reduces switching losses but makes the output more ragged and the control loop less accurate.
Tie to feedback control: your controller bandwidth must be significantly below the switching frequency to avoid aliasing and to allow PWM averaging approximations to hold. If you want fast closed-loop response, you either pick a higher f_s or design the loop to handle the modulation dynamics explicitly.
Practical tips and heuristics
- Choose switching frequency so that switching harmonics lie outside the most sensitive frequency bands of your load and filtering system. Use filter design rules from the harmonics section to place cutoffs.
- If thermal or EMI limits bite, consider unipolar or multi-level PWM to distribute dv/dt and harmonic energy.
- For digital implementations, ensure timer resolution gives you enough steps in duty cycle for your control precision. Low timer resolution = quantization in duty = limit cycles or chattering in the control loop.
Example: Generating a simple SPWM in pseudocode
// Assume carrier is triangular with frequency f_c and amplitude A_c
// reference is a sinusoid with freq f_o and amplitude A_r
for each time step t:
carrier = triangle(2*pi*f_c*t)
reference = A_r * sin(2*pi*f_o*t)
if reference >= carrier:
set_switch(ON)
else:
set_switch(OFF)
Note: In real MCU code you compute timer compare values from the normalized reference and write them to hardware PWM compare registers. Hardware timers do the hard low-level toggling; the MCU updates compare values at control rate.
Quick comparison table
| Scheme | Pros | Cons | Typical use |
|---|---|---|---|
| Bipolar PWM | Simple, fewer signals | Higher low-order harmonics | Basic inverters |
| Unipolar PWM | Lower harmonics, lower dv/dt per device | More complex gating | Motor drives, lower EMI designs |
| SPWM | Intuitive, easy to implement | Not optimal DC utilization | Grid-connected inverters, basic drives |
| SVPWM | Better voltage utilization, lower distortion | More complex math/gating | High-performance three-phase drives |
Closing — the soul of PWM
Pulse Width Modulation is the bridge between the elegant continuous commands designers want and the ruthless binary reality of power switches. It's a balancing act: accuracy vs losses, spectral purity vs hardware complexity, and control bandwidth vs thermal limits.
Key takeaways:
- PWM shapes average voltage by varying pulse widths; duty cycle controls amplitude.
- Choice of PWM scheme directly affects harmonics, switching losses, and achievable control performance.
- PWM design must be done hand-in-hand with filter design and feedback control tuning.
Final thought: PWM lets you have your cake and eat it too — as long as you pay for the cake with switching losses and a carefully tuned control loop. Choose your sacrifices wisely.
Version: If you want, we can turn this into a lab exercise: implement SPWM on an MCU, measure harmonic spectra, then swap to SVPWM and compare. Snacks optional but recommended.
Comments (0)
Please sign in to leave a comment.
No comments yet. Be the first to comment!