Pulse width modulation
What Is Pulse Width Modulation?
Pulse width modulation (PWM) is a technique for encoding an analog signal level in the duty cycle of a digital switching waveform. The switching device alternates between fully on and fully off states at a fixed carrier frequency, and the fraction of each switching period during which the output is in the on state, called the duty cycle, determines the average power delivered to the load. Because the switch dissipates very little energy while conducting (low voltage drop) and while blocking (negligible current), PWM achieves high efficiency compared to linear power control methods. The technique is foundational to modern power electronics and is implemented in microcontrollers, dedicated motor control ICs, and field-programmable gate arrays across virtually every segment of electrical engineering.
PWM emerged as a practical control method in the 1960s alongside the development of reliable high-speed switching transistors, and its theoretical basis connects directly to sampled-data control theory. The carrier frequency, the duty cycle resolution, and the modulation strategy together determine the harmonic spectrum of the output waveform. Higher carrier frequencies push switching harmonics further from the fundamental frequency, making filtering easier, but they also increase switching losses in the power semiconductors.
Motor Drive Control
PWM is the standard method for driving both AC and DC motors through variable-speed power electronics. In DC motor drives, the average terminal voltage applied to the armature is set by the duty cycle of a half-bridge or full-bridge switching stage. Speed regulation follows from closed-loop feedback on motor speed or position. For AC induction motors and permanent-magnet synchronous motors, three-phase PWM inverters generate variable-frequency, variable-amplitude voltages that control torque and speed with high precision. Sinusoidal PWM, space-vector modulation, and direct torque control are common strategies that differ in how the duty cycles of the three inverter legs are calculated to minimize current harmonics and torque ripple. The principles underlying these strategies are described in the IEEE Power Electronics Society's technical resources on motor drives.
Power Converter Modulation
Beyond motor drives, PWM governs the operation of switched-mode power supplies, DC-DC converters, and AC power conversion stages. In a buck converter, the duty cycle sets the output voltage as a fraction of the input; in a boost converter, duty cycle control raises the output above the input level. Isolation is added using flyback, forward, or full-bridge topologies, all of which rely on PWM timing to transfer energy across a transformer. AC generators and power-conditioning inverters that interface renewable energy sources to the grid use PWM to synthesize a clean sinusoidal output from a DC bus, with total harmonic distortion (THD) specifications often below 3 percent. The Texas Instruments application note series on PWM converter control covers practical implementation across these topologies.
Modulation Strategies and Harmonic Content
The relationship between the PWM switching pattern and the output harmonic spectrum is central to filter design. Naturally sampled sinusoidal PWM produces sidebands around multiples of the carrier frequency, while regular sampled (uniformly sampled) PWM introduces a small additional phase error but simplifies digital implementation. Oversampling and spreading techniques, including random PWM, spread the harmonic energy across a wider frequency range to reduce acoustic noise from motors and electromagnetic interference in sensitive equipment. The NIST guide to power quality measurements provides the metrology framework for quantifying harmonic distortion and other power quality parameters relevant to PWM-driven systems.
Applications
Pulse width modulation has applications in a wide range of disciplines, including:
- Variable-speed drives for AC induction and synchronous motors
- DC motor speed and position control in robotics and machine tools
- Switched-mode power supply regulation in consumer electronics
- Solar inverters and wind turbine power converters
- LED lighting dimming and color control
- Audio power amplifiers (Class D amplification)