This code and diagram will help Arduino users realize the full potential of their RGB LED and several pushbuttons.

Components:

  • Arduino Uno
  • Jumper Wire
  • 2 Pushbuttons
  • 2 10K Resistors
  • RGB LED

All available through adafruit.com

 

Instructions:

  • Wire the circuit according to the diagram.
  • Upload the code to the Arduino.
  • The first pushbutton changes the LED color. Push this to switch between blue, red, green, pink, and lavendar.
  • The second pushbutton changes the intensity of the LED's pulsing. Push this to switch between fast and slow pulsations.

Tutorial for additional help:

http://ams-design.com/arduino/2011/04/fritzing-org-awesome-resource/

 

Video describing the change in the LEDs color:

https://www.youtube.com/watch?v=eM6KkmWoLog