Introduction: Blinking LED Decoration
Are you bored with your room? Does it lack style and innovation? Well how about a small decoration on the corner… is it not enough? Maybe a light blinking small decoration will do the job, better than that, how about a fully programmable one where you can control the color succession and the rhythm… This instructable will show you how I turned an ordinary decoration item into a decorative flashing lights
Step 1: Get Your Things.
To build this project you need:
- An Arduino UNO or compatible.
- Your decoration item.
- LEDs: Different colors of your choice.
- Some male to male jumper wires (10 pieces are enough).
- A mini breadboard.
Step 2: Get Things in Order:
first of all,connect all your LEDs on the mini breadboard, here I chose two leds by colors to have enough luminosity for better results. Next after doing all the wiring put the mini breadboard inside your item.
Step 3: Programming the Arduino UNO
Past the following code into the Arduino software and upload it to the device; in this code I used 5 colors you could change it by changing the number of LEDs
int led = 2;
int led2 = 3;
int led3 = 4;
int led4 = 5;
int led5 = 6;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(led5, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
digitalWrite(led2, HIGH);
delay(1000);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(1000);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(1000);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(1000);
digitalWrite(led5, LOW);
// wait for a second
}
Step 4: Enjoy :)!!
Participated in the
LED Contest