Arduino Light Show

by Nick-Smith-513 in Circuits > Arduino

3247 Views, 13 Favorites, 0 Comments

Arduino Light Show

IMG_0393.JPG
if you are just now getting into Arduino here is a cool and easy project for you

What You Need

IMG_0399.JPG
IMG_0400.JPG
IMG_0398.JPG
IMG_0397.JPG
IMG_0395.JPG
- An arduino
- a DC power supply
- a bread board
- 4 led's
- 9 jumper cables

Step 1

IMG_0401.JPG
Plug 4 jumper cables in the input / output  ports
plug them into pins 8-11

Step 2

IMG_0402.JPG
plug 4 leds into your bread board make sure that you have them all the same way
ex. all the positive leads on the right and all the negative leads on the left

tip- the shorter lead on the led is the negative lead

Step 3

IMG_0404.JPG
plug one  jumper cable into ground and plug the other end of the cable into the negative rail on your breadboard

plug all the input / output pins 8-11 into the same rail as the positive leads of your leds

Step 4

IMG_0405.JPG
take 4 jumper cables and plug one end into the negative rail on your bread board and the other end into the negative lead on your leds

Step 5

you will need to copy the sketch below and paste it into your arduino software and upload it to your arduino



void setup(){
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
}
void loop(){
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(3);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(3);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(3);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(3);
    digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(3);
    digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(3);
    digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(3);
}

Finished

now you have a cool little light show



if you liked this instructable please follow me and check out some of my other projects

please vote