Week 3 – RGB

Experiment 3: Driving an RGB LED
Name: ___________________________________________________


Introduction


You know what’s even more fun than a blinking LED? Changing colors with one LED. RGB, or red-green-blue, LEDs have three different color-emitting diodes that can be combined to create all sorts of colors. In this circuit, you’ll learn how to use an RGB LED to create unique color combinations. Depending on how bright each diode is, nearly any color is possible!
But which pin is which color? Pick up the RGB so that the longest pin (common ground) is aligned to the left as shown in the graphic below. The pins are Red, Ground, Green, and Blue – starting from the far left.

Parts Needed
You will need the following parts:

1x Breadboard
1x RedBoard or Arduino Uno
1x LED – RGB Common Cathode
3x 330Ω Resistors
5x Jumper Wires

Circuit Diagram
Ready to start hooking everything up? Check out the Fritzing diagram and hookup table below, to see how everything is connected.

What You Should See
You should see your LED turn on, but this time in new, crazy colors! If it isn’t, make sure you have assembled the circuit correctly and verified and uploaded the code to your board or see the troubleshooting section.


Program
To turn on the RGB LED with one color at time with an interval of 1 second.

Challenges
⦁ Combine RED and Green color to see the color that appears on the LED.
⦁ Combine RED and Yellow color to see the color that appears on the LED.

⦁ Combine Green and Yellow color to see the color that appears on the LED. _
⦁ Add a potentiometer to your circuit to change different color based on the potentiometer value.

Lesson Content
0% Complete 0/2 Steps