What is pwm frequency

Last updated: April 1, 2026

Quick Answer: PWM frequency is the rate at which a pulse width modulation signal switches between high and low states, measured in Hertz. It determines how quickly the signal oscillates independent of its duty cycle.

Key Facts

Understanding PWM Frequency

PWM (Pulse Width Modulation) frequency refers to how many complete on-off cycles occur per second. While duty cycle controls the percentage of time a signal stays high, frequency controls how rapidly these cycles repeat. These are separate but complementary parameters in PWM applications.

Frequency Range and Applications

PWM frequencies vary dramatically across applications. Low frequencies (1-100 Hz) might be used in simple lighting applications where the switching is slow enough not to matter. Medium frequencies (1-20 kHz) are common for motor control and LED brightness adjustment. High frequencies (above 20 kHz) are used in power supplies and audio amplifiers where the switching must be inaudible to humans.

Effects on Performance

The frequency you choose significantly impacts system performance. Lower frequencies reduce power consumption in the switching circuit but can cause visible flickering in LEDs or audible noise in motors. Higher frequencies eliminate these problems but consume more power and require faster switching components. Engineers must balance these tradeoffs when designing PWM systems.

Frequency Selection in Microcontrollers

Most microcontrollers like Arduino allow users to adjust PWM frequency through software configuration. This flexibility lets developers optimize for their specific application needs. Standard Arduino PWM frequencies are around 490 Hz on pins 5 and 6, and about 980 Hz on other pins, though these can be modified with code.

Practical Considerations

When selecting a PWM frequency, consider the load being controlled, the switching capability of your components, and the required smoothness of operation. For DC motor control, frequencies between 5-20 kHz work well. For LED brightness control, even 1 kHz is often sufficient. Radio frequencies and ultrasonic applications may require frequencies in the megahertz range.

Related Questions

What is PWM duty cycle?

Duty cycle is the percentage of time a PWM signal remains high during each cycle, ranging from 0-100%. It directly controls the average power delivered to a device, with 50% duty cycle delivering half power and 100% delivering full power.

How does PWM frequency affect motor speed?

PWM frequency primarily affects motor characteristics like noise and heating, not speed. Motor speed is controlled by duty cycle, not frequency. However, very low frequencies can cause motor cogging or jerky movement.

What PWM frequency should I use for LEDs?

For LED brightness control, frequencies above 100 Hz work well since human eyes perceive flicker above this threshold. Most applications use 1-20 kHz for smooth dimming without visible flickering.

Sources

  1. Wikipedia - Pulse-width modulationCC-BY-SA-4.0
  2. Arduino - analogWrite() ReferenceCC-BY-SA-4.0