author
1Comments

Tell us about yourself!

Complete Your Profile
  • hornet1717 made the instructable Multiple Blinking LED on the Arduino2 years ago
    Multiple Blinking LED on the Arduino

    HiGreat Job Mate, I made a few changes to the code for 8 LEDs on a board,Here's the code; Using the following pins 13,12,11,10,9,6,5,3 on Arduino UNO R3 int led = 13;int led2 = 12;int led3 = 11;int led4 = 10;int led5 = 9;int led6 = 6;int led7 = 5;int led8 = 3;// 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);pinMode(led6, OUTPUT);pinMode(led7, OUTPUT);pinMode(led8, OUTPUT); }// the loop routine runs over and over again forever:void loop() {{digitalWrite(led, HIGH);delay (15);digitalWrite(led, LOW);delay(15);digitalWrite(led, HIGH);delay(15);digitalWrite(led, LOW);delay(15);}{digitalWrite(led2, HIGH);delay (15);digitalWri...

    see more »

    HiGreat Job Mate, I made a few changes to the code for 8 LEDs on a board,Here's the code; Using the following pins 13,12,11,10,9,6,5,3 on Arduino UNO R3 int led = 13;int led2 = 12;int led3 = 11;int led4 = 10;int led5 = 9;int led6 = 6;int led7 = 5;int led8 = 3;// 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);pinMode(led6, OUTPUT);pinMode(led7, OUTPUT);pinMode(led8, OUTPUT); }// the loop routine runs over and over again forever:void loop() {{digitalWrite(led, HIGH);delay (15);digitalWrite(led, LOW);delay(15);digitalWrite(led, HIGH);delay(15);digitalWrite(led, LOW);delay(15);}{digitalWrite(led2, HIGH);delay (15);digitalWrite(led2, LOW);delay(15);digitalWrite(led2, HIGH);delay(15);digitalWrite(led2, LOW);delay(15);}{digitalWrite(led3, HIGH);delay (15);digitalWrite(led3, LOW);delay(15);digitalWrite(led3, HIGH);delay(15);digitalWrite(led3, LOW);delay(15);}{digitalWrite(led4, HIGH);delay (15);digitalWrite(led4, LOW);delay(15);digitalWrite(led4, HIGH);delay(15);digitalWrite(led4, LOW);delay(15);}{digitalWrite(led5, HIGH);delay (15);digitalWrite(led5, LOW);delay(15);digitalWrite(led5, HIGH);delay(15);digitalWrite(led5, LOW);delay(15);}{digitalWrite(led6, HIGH);delay (15);digitalWrite(led6, LOW);delay(15);digitalWrite(led6, HIGH);delay(15);digitalWrite(led6, LOW);delay(15);}{digitalWrite(led7, HIGH);delay (15);digitalWrite(led7, LOW);delay(15);digitalWrite(led7, HIGH);delay(15);digitalWrite(led7, LOW);delay(15);}{digitalWrite(led8, HIGH);delay (15);digitalWrite(led8, LOW);delay(15);digitalWrite(led8, HIGH);delay(15);digitalWrite(led8, LOW);delay(15);{digitalWrite(led8, HIGH);delay (15);digitalWrite(led8, LOW);delay(15);digitalWrite(led8, HIGH);delay(15);digitalWrite(led8, LOW);delay(15);}{digitalWrite(led7, HIGH);delay (15);digitalWrite(led7, LOW);delay(15);digitalWrite(led7, HIGH);delay(15);digitalWrite(led7, LOW);delay(15);}{digitalWrite(led6, HIGH);delay (15);digitalWrite(led6, LOW);delay(15);digitalWrite(led6, HIGH);delay(15);digitalWrite(led6, LOW);delay(15);}{digitalWrite(led5, HIGH);delay (15);digitalWrite(led5, LOW);delay(15);digitalWrite(led5, HIGH);delay(15);digitalWrite(led5, LOW);delay(15);}{digitalWrite(led4, HIGH);delay (15);digitalWrite(led4, LOW);delay(15);digitalWrite(led4, HIGH);delay(15);digitalWrite(led4, LOW);delay(15);}{digitalWrite(led3, HIGH);delay (15);digitalWrite(led3, LOW);delay(15);digitalWrite(led3, HIGH);delay(15);digitalWrite(led3, LOW);delay(15);}{digitalWrite(led2, HIGH);delay (15);digitalWrite(led2, LOW);delay(15);digitalWrite(led2, HIGH);delay(15);digitalWrite(led2, LOW);delay(15);}{digitalWrite(led, HIGH);delay (15);}digitalWrite(led, LOW);delay(15);digitalWrite(led, HIGH);delay(15);digitalWrite(led, LOW);delay(15);}}H

    View Instructable »