Electronics 01
How PWM Dims LEDs and Controls Motor Speed
PWM switches a pin fully on and off. Why an LED looks dimmer, why a motor slows, why 50% duty looks 76% bright, and what frequency to use, with numbers.
PWM switches a pin fully on and off. Why an LED looks dimmer, why a motor slows, why 50% duty looks 76% bright, and what frequency to use, with numbers.
Resistor values for every LED colour on Arduino 5V and ESP32 3.3V pins, with the pin limits, worked examples and why a white LED on 3.3V is a trap.
Blue photons carry 0.8 eV more than red ones, yet blue LEDs need 1.45 V more. Datasheets show where the extra voltage goes and why white LEDs match blue.
An LED's current rises exponentially with voltage: 0.1 V extra takes a red LED from 20 mA to 56 mA. Here is the physics, the resistor math and the fixes.