Introduction: Chaser Lights -quinn

Picture of Chaser Lights -quinn

This will be making an application where strings of adjacent light bulbs cycle on and off frequently to give the illusion of lights moving along the string.

Step 1: Set Up Arduino Board

Picture of Set Up Arduino Board

materials needed:

Arduino board

LED x6

Resistors x6

Breadboard

Connecting wires x9

Step 2: Add Pieces Into Breadboard

Picture of Add Pieces Into Breadboard

connect wires from Arduino to breadboard as done in the photo with resistors and LED lights in the correct place.

Step 3: Coding

Picture of Coding

In your Arduino app create a new project and add in this coding:

int pinsTotal=8;
int pins[] = {2,3,4,6}; int pins[] = {9,8,7,5}; // making a new line makes the computer see it as a new, different subject so it goes at the same time // arrangement/pattern of the direction the lights will go in

void setup() { for (int i=0; i

}

void loop() { for (int i=0; i0; i=i-1){ digitalWrite(pins[i], HIGH); delay(100); digitalWrite(pins[i], LOW); } }


------

Then hit the upload button to connect the coding to the hardware and the lights should work

Comments

Swansong (author)2017-04-19

That's neat :) I love chaser Christmas lights!

About This Instructable

58views

1favorite

License:

More by Quinnstructable:Chaser Lights -quinn
Add instructable to: