Site Navigation

Your Account

Choose Language

Tools

No tools required.

Parts

Video Overview

Insert your RGB LED with the Red Pin on the left hand side. Insert your RGB LED with the Red Pin on the left hand side.
  • Insert your RGB LED with the Red Pin on the left hand side.

Add Comment

Insert a 220 Ohm Resistor in line with the Red Pin of the RGB LED.
  • Insert a 220 Ohm Resistor in line with the Red Pin of the RGB LED.

Add Comment

Insert a 220 Ohm Resistor in line with the Green Pin of the RGB LED.
  • Insert a 220 Ohm Resistor in line with the Green Pin of the RGB LED.

Add Comment

Insert a 220 Ohm Resistor in line with the Blue Pin of the RGB LED.
  • Insert a 220 Ohm Resistor in line with the Blue Pin of the RGB LED.

Add Comment

Run a jumper from Digital Pin 11 to the 220 Ohm Resistor on the Red Pin.
  • Run a jumper from Digital Pin 11 to the 220 Ohm Resistor on the Red Pin.

Add Comment

Run a jumper from Ground to the Ground / Cathode Pin of the RGB LED.
  • Run a jumper from Ground to the Ground / Cathode Pin of the RGB LED.

Add Comment

Run a jumper from Digital Pin 10 to the 220 Ohm Resistor on the Green Pin.
  • Run a jumper from Digital Pin 10 to the 220 Ohm Resistor on the Green Pin.

Add Comment

Run a jumper from Digital Pin 9 to the 220 Ohm Resistor on the Blue Pin.
  • Run a jumper from Digital Pin 9 to the 220 Ohm Resistor on the Blue Pin.

Add Comment

  • Grab this code and upload it in the Arduino IDE.

  • Your RGB LED should start to cycle through the colours. There is a 1 second delay on each colour change.

Add Comment

  • Here is a video of the RGB LED going through the colours.

  • Next up try and make it a bit Christmassy! Maybe flash Green with a Fade to Red!

Add Comment

Conclusion

At the end of this lesson you should be able to make pretty colours with the RGB LED.

11 other people completed this guide.

Madeleine Schappi

Member since: 09/27/2017

4,557 Reputation

55 Guides authored

Team

Advent Edit Member of Advent Edit

Community

3 Members

55 Guides authored

One Comment

Hello @madem and @marcusschappi37 marcusschappi37

I have come across your tutorials and wanted to reach out as I have a commercial project im hoping to develop, but need some expertise with coding and MC assembly.

Im not sure if you host or attend meetups, or have any advice on where and how to meet with people who work with microcontrollers and LEDs.

I look ofrward to your feedback, please feel free to email me directly at ledhedhelmets@gmail.com

Many thanks,

Chris

Chris Ferguson - Reply

Add Comment

View Statistics:

Past 24 Hours: 0

Past 7 Days: 1

Past 30 Days: 3

All Time: 223