RGB LED

What you will learn

  • What RGB stands for
  • How to change the color of an RGB LED
  • How to fade a from one color to another with an RGB LED

What is RGB

RGB stands for red, green, and blue. It allows you mix those colors to create custom colors.

rgb explained

Bill of Materials

kit

Blocks

Coding Video

Wiring Diagram

wiring diagram

Steps

1. Have the front of the Arduino face towards 1 of the breadboard.

step1

2. Connect the RGB LED into the breadboard.

step

  • RED Wire in (27, H)
  • GND Wire in (28, H) -- (Longest wire)
  • GREEN Wire in (29, H)
  • BLUE Wire in (30, H)

step

3. Connect a resistor from (27, F) to (27, E)

step

4. Connect a resistor from (29, F) to (29, E).

step

5. Connect a resistor from (30, F) to (30, E).

step

6. Connect a wire from (28, E) to GND on the breadboard.

step

7. Connect a wire from (27, A) to pin 11 on the Arduino.

step

8. Connect a wire from (29, A) to pin 10 on the Arduino.

step

9. Connect a wire from (30, A) to pin 9 on the Arduino.

step

10. Connect a wire from - of the breadboard to a GND pin on the Arduino.

step

Challenge

  • See if you can send a message to the Arduino and display a color. An example would be sending "red" and showing red in the RGB LED.
  • See if you create another fade. An example would be purple to blue.