User:Will King2013/ENES 100/Knight Rider/here

Problem Statement
Understand the Arduino more by using a pre-built design, and changing it for my needs.

Requirements for each element or component derived from system level goals and requirements
The requirements for this project is to power and control a line of LEDS using an Arduino. Making the LEDS light up in order in a recurring cycle.

Alternatives in design
This project is based off a pre-conceived project from: http://arduino.cc/en/Tutorial/ForLoop

The initial design
The design uses six 220 ohm resistors, six red LEDS, a bread board, and a Arduino. The LEDS and resistors were wired in six different lines on the bread board. Six wires on the end of each line connected to the Arduino using pin two through seven. With one wire connected from the positive line on the bread board to the ground pin on the Arduino.

Poster
Based of the code from http://arduino.cc/en/Tutorial/ForLoop, I changed the timer from 100 to 85 for a better visual result. The Arduino code is as follows:

int timer= 85;

void setup { // use a for loop to initialize each pin as an output: for (int thisPin = 2; thisPin < 8; thisPin++) { pinMode(thisPin, OUTPUT); } }

void loop { // loop from the lowest pin to the highest: for (int thisPin = 2; thisPin < 8; thisPin++) { // turn the pin on: digitalWrite(thisPin, HIGH); delay(timer); // turn the pin off: digitalWrite(thisPin, LOW); }

// loop from the highest pin to the lowest: for (int thisPin = 7; thisPin >= 2; thisPin--) { // turn the pin on: digitalWrite(thisPin, HIGH); delay(timer); // turn the pin off: digitalWrite(thisPin, LOW); } }

Next Steps
Implement design