Subscribe to Make Magazine Today!

Make: Projects

RGB LED Lamp

Create an RGB LED lamp with an Arduino.

RGB LED Lamp

A simple project using an Arduino that will allow you to create an RGB LED lamp.

All that you need for this project is an Arduino and an RGB LED.

Here you can download the code for the Arduino: Arduino code

Steps

Step #1: Electronic Sketch.

PrevNext
RGB LED Lamp
  • The RED pin is attached to pin 9
  • The GREEN pin is attached to pin 6
  • The BLUE pin is attached to pin 5
  • The BLACK pin is atteched to GND

Step #2:

PrevNext
RGB LED LampRGB LED LampRGB LED Lamp

The gray cable is obviously the ground.

Step #3:

PrevNext
RGB LED LampRGB LED LampRGB LED LampRGB LED Lamp

The three colours in series. There is a small fade between one colour and the next.


  • Reed S

    Me too!

  • Reed S

    Whoa, what language was the app in???

    -Re3d

  • Sante Kotturi

    Yea, I bought the ultimate kit from make. They ship common anode, not cathode… only fried one RGB LED to figure that out…

    @Kevin, there’s a technical reason why red isnt a bright. If you use a ‘smaller’ resistor, it should be brighter. I’m using 220 on blue & green, 100 on red and it’s working better.

  • warn people

    You should be less critical, for something so basic it goes without saying that you have to “salt to taste” . Not all RGB LED s Will use the same voltage & current.

  • Tripp

    Why doesn’t this tutorial recommend at least 100o resistors on the input lines?

  • Chinmay K

    Sir according to your program. Is that a Common anode or Common Cathode RGB Led?

    • Josh

      Common cathode. The common is running to ground. Common anode would have the common connected to 3.3v or 5v.