RGB LED Night Lamb by Arduino

Introduction: RGB LED Night Lamb by Arduino

This instructable will show you the night lamp supplied by an RGB LED. The project contains several components with simple code that is suitable for beginners. This product is alterable for the appearance of the case, you can design whatever figure you want to produce the LED lamp. The LED applied in this project is not the common LED light, instead you will learn about the Arduino RGB light interfacing. The RGB LED is the combination of three separate LEDs which are red, blue and green. This allowed the RGB LED to emit different colors by mixing the 3 basic colors, that’s why it has 4 leads, one lead for each of the 3 colors and one common cathode. In the project it contains three variable registers for changing the colors. In addition, this product is alterable for the appearance of the case, you can design whatever figure you want to produce your own LED lamp. The following explains the preparation of elements for making it, how to connect the component into the breadboard, the progress for making the outer shell, and the code provided.

Step 1: Parts and Tools

There are what you need for inserting the element on the breadboard:

  • Arduino Leonardo
  • Breadboard
  • A 10k register
  • 3x variable resistors
  • Generic jumper wires

The decorative supplies I use in the project (can be changed by personal wishes):

  • Cardboard
  • Several bristol papers
  • Plastic sheet

Others: Hot glue gun

  • Double-sided tape
  • Foam rubber tape
  • Cutter knife
  • Scissor

Step 2: Place the Element on the Breadboard

Insert the RGB LED in or near the center of the breadboard to make the LED lamp lighten in better vision. Then connected the 10k register to the third lead of the RGB LED into the negative electrode. Place the three variation registers on the breadboard, connect the jumping wires to each first lead (left) of variation registers into positive electrode, attached wires to each third lead (right) of variation registers into negative electrode. The variation registers can allow RGB LEDs to change in different colors.

Step 3: Connecting the Component With Arduino

Inserting the generic jumper wires to the Arduino to make the product work. Firstavel, connect the wires from the negative electrode to the Arduino board of GND, and attach the wires from the positive electrode to 5V. Remember the wires placed in GND and 5V should be one negative one positive, or else the circuit board will be burned out. Then connect the wires from the first, second, and forth legs of RGB LED to pin 9, 6, and 5. Last, attach each second lead of variation registers to the Arduino board (from A0 to A2). It’s fine to place the position of the wires in different rows if you feel more comfortable for extra empty rows. However, just make sure the components connect to the correct electrode to make the product be able to work.

Step 4: Designing Your Own Out Shell!

In the beginning, I make a box to uncover the circuit which causes better appearance.

Then, I use white paper that is thicker than common to make the image of the night lamp design. Choose whatever topic you want to design your own out shell.

Making the flat image stand up in stereoscopic vision:

  1. Cut a long strip of paper
  2. Stick the paper in triangle shape Paste the triangle shape paper with glue to the image you want to put on

Use the foam rubber tape to stick the bottom of the triangle on the top of the base to make the image stand In order to make the vision better, I use the plastic sheet to stick in each side of my box to cover my paper cut on the plate with a transparent sense of sight.

Step 5: Program Code

Entering the Arduino code so the product can work! The code contains the program for lightening the RGB LED and making the RGB light be able to change colors by variation registers.

Be the First to Share


    • For the Home Contest

      For the Home Contest
    • Big and Small Contest

      Big and Small Contest
    • Game Design: Student Design Challenge

      Game Design: Student Design Challenge