Main Content

How to use PWM with LEDs - from the basics to advanced intensity and color management

This project is basically a tutorial on managing the brightness of an LED and the color of an RGB LED using PWM or pulse width modulation.

In Section I, we will cover the basics of PWM and how it’s used with Arduinos. In Section ll, we will discuss smooth dimming of a single color LED, which requires something other than linearly changing PWM, and in Section lll, we will look at creating colors, and managing a rainbow of colors produced by RGB LEDs.

For fun with this project, I am using “fake neon” - the edge lighting LED strips from Adafruit, specifically the 1 meter RGB version without Neopixel capability. But really, to try everything we talk about here, all you really need is any common anode RGB LED.”

Link to article