#13advanced
Rainbow Fader
Smooth RGB color mixing with PWM duty cycle control
Watch the circuit build itself: components drop in, wires connect, and the output comes alive.
Components
Everything you need for this project.
1x RGB common-cathode LED
3x 220Ω resistors
4x jumper wires
How It Works
PWM duty cycle control, RGB color mixing, smooth transitions (interpolation), and analog output through digital means.
InputPWM Timer
ProcessingESP32-S3 interpolates through HSV color space
OutputRGB LED rainbow cycle
What You Build
RGB LED with each color channel on D1 (red), D2 (green), D3 (blue) through 220Ω resistors. PWM controls brightness of each channel.
African Context
RGB LEDs are in every phone, TV, and LED strip. Understanding PWM color mixing is the foundation of display technology and smart lighting systems.
What You'll See
LED smoothly transitions through the full rainbow spectrum. Display shows current RGB values and color preview.