PWM Frequency Calculator Pulse Width Modulation

Calculate Frequency ยท Period ยท Duty Cycle ยท Resolution ยท Timer Settings

๐Ÿ“– PWM Frequency Calculator

Pulse Width Modulation (PWM) is a technique used to control the average voltage delivered to a load by varying the duty cycle of a square wave. This calculator helps you determine frequency, period, duty cycle, and timer settings for PWM applications.

๐Ÿ“ PWM Formulas

Frequency: f = 1 / T
Period: T = 1 / f
Duty Cycle: D = (Ton / T) ร— 100%
PWM Resolution: N = log2(Timer_Count)
Timer Frequency: f_timer = f_PWM ร— 2^N

๐Ÿ“Š Common PWM Applications

ApplicationFrequency RangeResolution
LED Dimming100 Hz - 1 kHz8-10 bits
Motor Control (DC)5 kHz - 30 kHz10-12 bits
Audio Amplifiers100 kHz - 1 MHz12-16 bits
Switching Power Supplies50 kHz - 1 MHz8-12 bits
Servo Control50 Hz8-10 bits
LED Lighting (Automotive)100 Hz - 500 Hz8-10 bits

โ“ Frequently Asked Questions

What is PWM frequency? โ–ผ
PWM frequency is the number of complete cycles per second. Higher frequencies reduce audible noise and allow faster response but may increase switching losses. Typical frequencies range from 50Hz to 1MHz.
What is duty cycle? โ–ผ
Duty cycle is the percentage of time the signal is HIGH compared to the total period. A 50% duty cycle means the signal is ON for half the period, resulting in half the average voltage.
How do I choose PWM frequency for motor control? โ–ผ
For DC motors, use 5-30kHz to avoid audible noise. For servo control, use 50Hz (20ms period) standard. Higher frequencies provide smoother control but may cause more heating.
What is PWM resolution? โ–ผ
PWM resolution is the number of discrete duty cycle steps available. Higher resolution = finer control. An 8-bit PWM has 256 steps, 10-bit has 1024 steps, 12-bit has 4096 steps.