Find all your DIY electronics in the MakerShed. 3D Printing, Kits, Arduino, Raspberry Pi, Books & more!

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.


Comments

  1. Reed S says:

    Me too!

  2. Reed S says:

    Whoa, what language was the app in???

    -Re3d

  3. Sante Kotturi says:

    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.

  4. warn people says:

    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.

  5. Tripp says:

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

In the Maker Shed