RO EN

RGB LEDs – what they are and how they work

01/06/2026

RGB LEDs are electronic components that can display multiple colors by combining three internal LEDs: red, green, and blue. By controlling the intensity of each color, many shades can be created, including white.

For the code, you can use the same code as for a traffic light project, but with a different delay—or you can remove the delay entirely. Here I'll leave you to experiment on your own. Traffic light link: click here.

The appearance of RGB LEDs

LEDs first appeared as simple indicators, and the development of the blue LED made it possible to combine the three colors into a single LED. This led to the creation of modern RGB LEDs, which are now widely used in lighting and displays.

Common cathode and common anode

Common cathode – the common pin is connected to ground (GND), and the colors light up by applying a positive voltage to each pin.

Common anode – the common pin is connected to the power supply (VCC), and the colors light up by applying a LOW logic level (0V) to each pin.

You can test them with a multimeter. If you don't know how to use one, I have an article where I explain everything step by step. Click here.

Uses

RGB LEDs are used in LED strips, illuminated signs, decorative lighting, electronics, DIY projects, and displays.