Introduction: Arduino Light

So I was changed https://www.instructables.com/id/Arduino-Traffic-Light-Tutorial/'s work into a make night light, and right over here you will know how to make an easy traffic light or a night light. I changed it into a shiny light, it can change different colors in a few seconds, you also can custom the color you want.

Step 1: Step 1: Things You Need

1 green LED

1 yellow LED

1 red LED

3 220 ohm resistors

wires

breadboard

Arduino Leonardo

Step 2: Step 2: Connect Components

Connect the components shown in the picture.

Step 3: Step 3: Arduino IDE Code

https://create.arduino.cc/editor/nc29/337c7d26-c867-4166-84cf-36655722bb68/preview

void setup() {

pinMode(13, OUTPUT);

pinMode(12, OUTPUT);

pinMode(11, OUTPUT);

}

void loop() {

digitalWrite(13, HIGH);

delay(1500); //origial is 3000

digitalWrite(13, LOW);

digitalWrite(12, HIGH);

delay(1500); //origial is 3000

digitalWrite(12, LOW);

digitalWrite(11, HIGH);

delay(1500); //origial is 3000

digitalWrite(11, LOW);

}

Step 4: Step 4: Find Your Box

Find something that can accommodate your Arduino, mine just like the picture. It used to be a cookie box and made of metal. It has small holes in it, so the light can go through. How large is the box is, depends on what you want. You can also make a lamp that can shine different colors during the party time, or light out when you sleep.

Step 5: Step 5 :Finished