View All

Please refer to the English Version as our Official Version.Return

Europe
France(Français) Germany(Deutsch) Italy(Italia) Russian(русский) Poland(polski) Czech(Čeština) Luxembourg(Lëtzebuergesch) Netherlands(Nederland) Iceland(íslenska) Hungarian(Magyarország) Spain(español) Portugal(Português) Turkey(Türk dili) Bulgaria(Български език) Ukraine(Україна) Greece(Ελλάδα) Israel(עִבְרִית) Sweden(Svenska) Finland(Svenska) Finland(Suomi) Romania(românesc) Moldova(românesc) Slovakia(Slovenská) Denmark(Dansk) Slovenia(Slovenija) Slovenia(Hrvatska) Croatia(Hrvatska) Serbia(Hrvatska) Montenegro(Hrvatska) Bosnia and Herzegovina(Hrvatska) Lithuania(lietuvių) Spain(Português) Switzerland(Deutsch) United Kingdom(English)
Asia/Pacific
Japan(日本語) Korea(한국의) Thailand(ภาษาไทย) Malaysia(Melayu) Singapore(Melayu) Vietnam(Tiếng Việt) Philippines(Pilipino)
Africa, India and Middle East
United Arab Emirates(العربية) Iran(فارسی) Tajikistan(فارسی) India(हिंदी) Madagascar(malaɡasʲ)
South America / Oceania
New Zealand(Maori) Brazil(Português) Angola(Português) Mozambique(Português)
North America
United States(English) Canada(English) Haiti(Ayiti) Mexico(español)
HomeBlogPulse Width Modulation (PWM) Explained
on January 13th 3,657

Pulse Width Modulation (PWM) Explained

Pulse Width Modulation (PWM) is a simple and efficient way you can control electrical power using digital signals. Instead of changing the supply voltage, you adjust how long the signal stays ON and OFF within each cycle to control power delivery. This article helps you understand how PWM works, how duty cycle affects output, and why PWM is widely used in electronics and control systems. You will also see how PWM is applied in controllers, waveform types, and applications.

Catalog

1. What is Pulse Width Modulation?
2. How Pulse Width Modulation Works?
3. PWM Signal Waveform Characteristics
4. Types of Pulse Width Modulation
5. PWM Generation Methods
6. PWM in Microcontrollers and Controllers
7. Applications of Pulse Width Modulation
8. PWM vs Linear Control vs Phase Angle Control
9. Conclusion

Pulse Width Modulation Concept

Figure 1. Pulse Width Modulation Concept

What is Pulse Width Modulation?

Pulse Width Modulation (PWM) is a digital control technique used to regulate electrical power delivered to a load by varying the proportion of ON time within a fixed switching period. Instead of changing the supply voltage level, PWM controls the effective power by rapidly switching the signal between fully ON and fully OFF states. This approach allows efficient power regulation with minimal energy loss, making PWM widely used in motor drives, LED control, power converters, and embedded control systems.

How Pulse Width Modulation Works?

PWM Working Principle

Figure 2. PWM Working Principle

Pulse Width Modulation works by repeatedly turning the output signal ON and OFF at a constant frequency. During each switching cycle, the signal remains ON for a specific duration and OFF for the remainder of the cycle. The ratio of ON time to the total cycle time is known as the duty cycle, and it directly determines the average voltage and current delivered to the load. A higher duty cycle increases delivered power, while a lower duty cycle reduces it.

Because the switching frequency is typically much higher than the electrical or mechanical response of the load, the load responds to the average value of the signal rather than individual pulses. As a result, PWM enables smooth and precise power control using digital signals without requiring variable voltage sources.

PWM Signal Waveform Characteristics

PWM Characteristic
Description
Pulse Width
ON time within one PWM cycle, from 0 microseconds to full period.
Duty Cycle
Percentage of ON time per cycle, from 0 percent to 100 percent.
PWM Frequency
Number of cycles per second, commonly 500 Hz to 100 kHz.
PWM Period
Total cycle time, typically 1 millisecond to 10 microseconds.
Signal Amplitude
Voltage level of the PWM signal, usually 3.3 V, 5 V, or 12 V.
High Voltage Level
Voltage during ON state, equal to supply voltage.
Low Voltage Level
Voltage during OFF state, typically 0 V.
Rise Time
Time to switch from low to high, often 10 ns to 1 µs.
Fall Time
Time to switch from high to low, often 10 ns to 1 µs.
Switching Speed
Maximum rate of state change, supporting high-frequency PWM.
Resolution
Number of duty steps, commonly 8 bit or 10 bit.
Signal Stability
Consistency of frequency and duty cycle over time.
Jitter
Small timing variation, usually less than 1 percent.
Dead Time
Intentional delay between switching, typically 100 ns to 5 µs.
Harmonics
High-frequency components generated by fast switching.
Power Control
Output power varies linearly with duty cycle.
Load Response
Ability to maintain waveform under load changes.
Filtering Output
Filtered PWM produces smooth DC voltage.
Noise Immunity
Resistance to interference improves with clean edges.

Types of Pulse Width Modulation

Pulse Width Modulation can be classified into different control strategies based on how the output waveform is shaped. These PWM types focus on modulation concepts and control algorithms that affect output voltage, harmonic performance, and efficiency.

Single-Pulse Width Modulation (Single-Pulse PWM)

Single-Pulse PWM Waveform

Figure 3. Single-Pulse PWM Waveform

Single-Pulse PWM uses one switching pulse per half cycle of the output waveform. The width of this single pulse is adjusted to control the output voltage level. Because only one switching event occurs per half cycle, switching losses remain low. However, this control strategy produces higher harmonic distortion and is mainly used in low-frequency and basic power-control applications where simplicity is prioritized over waveform quality.

Multiple-Pulse Width Modulation (Multiple-Pulse PWM)

Multiple-Pulse PWM Waveform

Figure 4. Multiple-Pulse PWM Waveform

Multiple-Pulse PWM divides each half cycle into several smaller pulses instead of a single large pulse. Increasing the number of pulses spreads harmonic energy toward higher frequencies, improving output waveform quality. This PWM type offers a balance between reduced harmonic distortion and manageable switching losses, making it suitable for industrial power converters and motor-drive systems.

Sinusoidal Pulse Width Modulation (SPWM)

Sinusoidal PWM Generation

Figure 5. Sinusoidal PWM Generation

Sinusoidal PWM is a modulation strategy that generates pulses based on a sinusoidal reference signal. The pulse widths vary according to the instantaneous amplitude of the reference waveform, allowing the output to approximate a sine wave after filtering. SPWM is widely used in inverters, motor drives, and renewable-energy systems because it provides good harmonic performance with moderate control complexity.

Space Vector Pulse Width Modulation (SVPWM)

Space Vector PWM is an advanced control strategy that uses a mathematical vector model of the inverter rather than direct waveform comparison. It selects optimal switching states to approximate a rotating reference vector in the voltage space. Compared to SPWM, SVPWM improves DC bus voltage utilization and further reduces harmonic distortion, making it suitable for high-performance motor drives and precision industrial control systems.

PWM Generation Methods

PWM signals can also be categorized by how the pulses are generated and aligned in hardware. These PWM generation methods focus on timer operation, switching symmetry, and pulse placement, rather than the modulation strategy itself.

Single-Edge PWM (Edge-Aligned PWM)

Edge-Aligned PWM Timing

Figure 6. Edge-Aligned PWM Timing

Single-Edge PWM aligns all pulses to one edge of the switching period, typically the rising edge. The duty cycle is adjusted by extending or shortening the pulse from this fixed edge. This generation method is simple to implement using hardware timers and comparators, but its asymmetric switching pattern can increase harmonic distortion and electromagnetic interference.

Double-Edge PWM (Center-Aligned PWM)

Center-Aligned PWM Timing

Figure 7. Center-Aligned PWM Timing

Double-Edge PWM centers the pulse within the switching period by switching ON and OFF symmetrically around the midpoint. This symmetric timing reduces harmonic distortion and electromagnetic interference while improving current balance. Because of these advantages, center-aligned PWM is commonly used in precision motor drives and high-performance power-control applications.

Carrier-Based PWM (Comparator PWM)

Carrier-Based PWM generates pulses by comparing a reference signal with a high-frequency carrier waveform using a comparator. When the reference exceeds the carrier, the output switches ON. This method serves as the hardware generation foundation for many PWM control strategies, including SPWM, and is widely implemented in microcontrollers, DSPs, and industrial controllers.

PWM in Microcontrollers and Controllers

Pulse Width Modulation in Arduino

Arduino PWM LED Control

Figure 8. Arduino PWM LED Control

Arduino generates Pulse Width Modulation using internal hardware timers that switch the output pin between HIGH and LOW states. The duty cycle is adjusted through software, which directly controls the average voltage delivered to the load. By changing the duty cycle, Arduino can smoothly vary LED brightness or motor speed without changing the supply voltage. The PWM frequency is usually fixed by the timer settings, ensuring stable operation during control tasks. As shown in figure, the Arduino PWM pin drives an LED through a resistor, clearly demonstrating how duty cycle variation changes the visible brightness.

Pulse Width Modulation in ESP32

ESP32 PWM Output Example

Figure 9. ESP32 PWM Output Example

ESP32 provides advanced Pulse Width Modulation using dedicated PWM hardware modules. It supports higher resolution, multiple independent PWM channels, and flexible frequency control without placing load on the CPU. This allows precise and responsive power control for motors, LEDs, and IoT devices. ESP32 PWM is especially suitable for applications that require fast response and accurate output regulation. Figure 9 shows the ESP32 controlling multiple LEDs with different PWM duty cycles, illustrating how each channel independently adjusts output power.

Pulse Width Modulation in PLCs

PLC PWM Heater Control

Figure 10. PLC PWM Heater Control

PLCs use Pulse Width Modulation to control industrial loads such as heaters, motors, and actuators with high reliability. The PWM output is adjusted based on sensor feedback or programmed control logic to regulate power accurately. This method allows smooth control while minimizing electrical stress on switching devices. PLC-based PWM is designed to operate reliably in electrically noisy and harsh industrial environments. As shown in figure, the PLC uses a PWM signal to drive a solid-state relay that controls heater power based on temperature feedback.

Applications of Pulse Width Modulation

Pulse Width Modulation is widely used to control power efficiently and precisely in both low-power and high-power electronic applications.

1. Motor Speed Control

PWM is commonly used in DC motors, servo motors, and BLDC motor drives to control speed and torque by varying the average voltage supplied to the motor. This method provides smooth speed control and high efficiency in robotics, industrial automation, and electric vehicles.

2. LED Dimming and Lighting Control

In LED drivers, PWM controls brightness by rapidly switching the LED on and off while maintaining a constant current level. This prevents color shift, improves efficiency, and allows precise brightness adjustment in displays, automotive lighting, and smart lighting systems.

3. Power Supplies and Voltage Regulation

PWM is a core technique in switch-mode power supplies, DC-DC converters, and inverters. It helps regulate output voltage and current efficiently, reducing heat generation compared to linear regulators.

4. Audio Signal Generation

PWM is used in Class-D audio amplifiers to convert audio signals into high-frequency switching signals. This enables high-power audio amplification with low power loss and compact circuit design.

5. Heating and Temperature Control

PWM controls power delivered to heaters, heating elements, and temperature control systems by adjusting the on-off time of the supply. This provides stable temperature regulation in industrial heaters, soldering stations, and home appliances.

6. Battery Charging and Energy Management

PWM is applied in battery chargers and solar charge controllers to manage charging current and voltage. This improves charging efficiency, protects batteries from overcharging, and extends battery life.

7. Microcontroller and Embedded Systems

PWM outputs from microcontrollers are widely used to generate analog-like signals, control actuators, and interface with external devices. This makes PWM important in embedded systems, IoT devices, and control applications.

PWM vs Linear Control vs Phase Angle Control

Parameter
PWM Control
Linear Control
Phase Angle Control
Basic Control Method
Output is controlled by varying duty cycle
Output is controlled by dropping voltage linearly
Output is controlled by delaying AC waveform conduction
Typical Supply Type
DC power supply
DC power supply
AC power supply
Control Signal Frequency
Commonly 1 kHz to 100 kHz
Zero switching frequency
Line frequency of 50 Hz or 60 Hz
Power Efficiency
Efficiency typically 85 percent to 98 percent
Efficiency typically 30 percent to 60 percent
Efficiency typically 70 percent to 90 percent
Heat Generation
Heat loss is low due to switching operation
Heat loss is high due to voltage drop
Heat loss is moderate during partial conduction
Output Voltage Regulation
Average voltage is controlled by duty cycle
Output voltage follows control input directly
RMS voltage varies with firing angle
Control Resolution
High resolution with digital timers
Very high resolution with analog control
Medium resolution limited by AC waveform
Circuit Complexity
Medium complexity with switching components
Simple circuit with pass element
Medium complexity using TRIAC or SCR
EMI and Noise Level
EMI is moderate to high without filtering
EMI is very low
EMI is high due to waveform distortion
Typical Switching Device
MOSFET or IGBT
BJT or linear regulator
TRIAC or SCR
Response Speed
Response time is in microseconds
Response time is in milliseconds
Response time depends on AC zero crossing
Load Compatibility
Best for motors LEDs and power converters
Best for low power analog loads
Best for lamps heaters and AC motors
Power Rating Range
From 1 watt to several kilowatts
Usually below 50 watts
Commonly from 100 watts to several kilowatts
Control Accuracy
Accuracy depends on timer resolution
Very accurate and smooth control
Accuracy affected by line voltage variation
Common Applications
Motor speed control SMPS LED dimming
Audio amplifiers sensor circuits
Light dimmers fan regulators heater control

Conclusion

Pulse Width Modulation provides efficient and accurate power control by varying the duty cycle of a switching signal. Different PWM types and generation methods affect waveform quality, efficiency, and system performance. PWM is widely used in microcontrollers, PLCs, and power electronics for motors, lighting, power conversion, and temperature control. Its simplicity and efficiency make it essential in modern electronic applications.

About us

ALLELCO LIMITED

Allelco is an internationally famous one-stop procurement service distributor of hybrid electronic components, committed to providing comprehensive component procurement and supply chain services for the global electronic manufacturing and distribution industries, including global top 500 OEM factories and independent brokers.
Read more

Quick inquiry

Please send an inquiry, we will respond immediately.

Quantity

Frequently Asked Questions [FAQ]

1. Can PWM damage motors or LEDs if used incorrectly?

Yes, improper PWM settings such as very high frequency, poor filtering, or incorrect driver selection can cause overheating, noise, or shortened lifespan. Using the correct PWM frequency and proper driver circuits prevents damage.

2. What PWM frequency is best for motors, LEDs, and heaters?

Motors typically use PWM frequencies between 1 kHz and 20 kHz, LEDs often use 500 Hz to 5 kHz, and heaters can use very low frequencies such as 1 Hz to 100 Hz. The ideal frequency depends on the load type and application.

3. Do I need a filter when using PWM for analog signals?

Yes, a low-pass filter is recommended when PWM is used to generate analog-like voltages. Filtering smooths the PWM waveform and reduces ripple, making it suitable for sensitive circuits.

4. What components are required to build a PWM control circuit?

A basic PWM system requires a controller, switching device, driver circuit, power supply, and load. Additional components such as filters, protection circuits, and heat sinks may be needed depending on power level.

5. Does PWM create electrical noise or interference?

PWM switching can generate electromagnetic interference if not properly designed. Using shielding, filtering, proper grounding, and correct switching frequency helps reduce noise issues.

Popular Posts

HOT Part Number

0 RFQ
Shopping cart (0 Items)
It is empty.
Compare List (0 Items)
It is empty.
Feedback

Your feedback matters! At Allelco, we value the user experience and strive to improve it constantly.
Please share your comments with us via our feedback form, and we'll respond promptly.
Thank you for choosing Allelco.

Subject
E-mail
Comments
Captcha
Drag or click to upload file
Upload File
types: .xls, .xlsx, .doc, .docx, .jpg, .png and .pdf.
Max file size: 10MB