All courses › Embedded Systems and Instrumentation › PWM

PWM

A PWM signal switches rapidly between a high and a low voltage with a given duty cycle, the fraction of the period the signal is high. The load or filter after the signal effectively only sees the average voltage, which is proportional to the duty cycle – this is used to control everything from LED brightness to motor speed.

Vavg=D⋅VhighV_{avg} = D\cdot V_{high}average voltage from duty cycle D

Symbols

DDduty cycle (fraction of the period the signal is high)
VhighV_{high}voltage level when the signal is highV
VavgV_{avg}average voltageV

Example

5 V PWM with 25% duty cycle:

Vavg=0.25⋅5=1.25V_{avg}=0.25\cdot5=1.25 V.

Duty cycle is the pulse length divided by the whole period, not by the time the signal is low.
Practise microcontrollers for free →

← Pull-Up Resistor · Serial Communication →

Part of Embedded Systems and Instrumentation: Microcontrollers.