What is Pulse Width Modulation (PWM)?
PWM is a technique of controlling LED brightness by pulsing. We can control the perceived brightness of an LED by turning it ON for only a certain period of time t. If the LED is on for time t over a period T, then the duty factor (DF) is t/T. We can obtain a relationship between DF and perceived brightness or a relationship between average current and brightness where average current is the peak current multiplied by the DF.