User:Bvangenn0235/ENES-100/Project1

Week1 Narrative: 09/09/2013-09/15/2013
Team (Me, Brian, Sergey, & Fredrick) assignment: create a tutorial that details the use of Arduino (model Uno) to teach class. Went to http://arduino.cc/en/Tutorial/Blink and learned about basic Arduino program"Sketch". Setup first program _9sec_Blink.ino (modefied version off tutorial lesson): void setup { pinMode (13, 1); } void loop  { digitalWrite (13, 1); delay (9000); digitalWrite (13, 0); delay (9000); } This allowed LED to blink 9seconds and turn off for 9 seconds before repeating. Next set up Blink_ser2.ino:

int downline1 = 13; int downline2 = 12; int downline3 = 11; int downline4 = 10; int downline5 = 9; int downline6 = 8; int downline7 = 7; int downline8 = 6; void setup { pinMode(downline1, OUTPUT); pinMode(downline2, OUTPUT); pinMode(downline3, OUTPUT); pinMode(downline4, OUTPUT); pinMode(downline5, OUTPUT); pinMode(downline6, OUTPUT); pinMode(downline7, OUTPUT); pinMode(downline8, OUTPUT); } void loop { digitalWrite(downline1, HIGH); delay(30); digitalWrite(downline1, LOW); delay(5); digitalWrite(downline8, HIGH); delay(30); digitalWrite(downline8, LOW); delay(5); digitalWrite(downline2, HIGH); delay(30); digitalWrite(downline2, LOW); delay(5); digitalWrite(downline7, HIGH); delay(30); digitalWrite(downline7, LOW); delay(5); digitalWrite(downline3, HIGH); delay(30); digitalWrite(downline3, LOW); delay(5); digitalWrite(downline6, HIGH); delay(30); digitalWrite(downline6, LOW); delay(5); digitalWrite(downline4, HIGH); delay(30); digitalWrite(downline4, LOW); delay(5); digitalWrite(downline5, HIGH); delay(30); digitalWrite(downline5, LOW); delay(5); digitalWrite(downline4, HIGH); delay(30); digitalWrite(downline4, LOW); delay(5); digitalWrite(downline5, HIGH); delay(30); digitalWrite(downline5, LOW); delay(5); digitalWrite(downline3, HIGH); delay(30); digitalWrite(downline3, LOW); delay(5); digitalWrite(downline6, HIGH); delay(30); digitalWrite(downline6, LOW); delay(5); digitalWrite(downline2, HIGH); delay(30); digitalWrite(downline2, LOW); delay(5); digitalWrite(downline7, HIGH); delay(30); digitalWrite(downline7, LOW); delay(5); digitalWrite(downline1, HIGH); delay(30); digitalWrite(downline1, LOW); delay(5); digitalWrite(downline8, HIGH); delay(30); digitalWrite(downline8, LOW); delay(5); } this allowed form multiple lights to be manipulated to look like a converging and diverging line. The small delay creates the illusion of the lights next to each other being on simlutaneoulsy for a few seconds creating a more fluid image created presentation for class to present findings.