Arduino Tutorial 21: Understanding and Mixing Primary Colors with an RGB LED

In lesson 20 we showed you how to connect up an RGB LED, and how to program it to get the primary colors, based on input from the user. In this lesson we look at mixing colors and getting a wide array of colors from the LED by mixing the R, G, and B channels. As examples, we use RGB mixing to create Cyan, Magenta, and Yellow. These are just examples, and any of the in between colors can also be mixed.

If you want to follow along at home, you can order the Arduino Kit we are using HERE.

The video shows how to connect the circuit, and also takes you step by step through the code. If you need extra help, the code is included below.