Creative creator
Created March 29, 2020 © CC BY

LED Chaser Circuit using Arduino

LED Chaser Circuit using Arduino UNO Atmega328P Microcontroller.

BeginnerFull instructions provided1 hour1
LED Chaser Circuit using Arduino

Things used in this project

Hardware components

Arduino UNO UTSOURCE
×1
FTDI Board UTSOURCE:
×1
7805 Voltage Regulator UTSOURCE:
×1
PCB Board UTSOURCE:
×1
9v Battery UTSOURCE:
×1
Female Header UTSOURCE:
×1
Heat Shrink Tube UTSOURCE:
×1
LED UTSOURCE:
×1
Push Button UTSOURCE:
×1
Different Values of Resistor UTSOURCE :
×1
Screw Terminal Block UTSOURCE:
×1
16MHZ Crystal UTSOURCE:
×1
22PF, 100nF Capacitor UTSOURCE:
×1

Hand tools and fabrication machines

Soldering Iron UTSOURCE:
Iron Stand UTSOURCE:
Nose Pliers UTSOURCE:
Flux UTSOURCE:

Story

Read more

Schematics

Step 1

Step 2

Step 3

Code

ARDUINO LED CHASER CIRCUIT

Arduino
/*
Code Name:    Arduino 12 LED Chaser
URI:          https://circuitbest.com
Description:  LED Chaser with Different Modes.
Version:      1.0
Author:       Creative Creator
Author URI:   https://www.youtube.com/channel/UCJoXoKcfAo4j9XWDlxCWMyg
***CopyRight By Creative Creator***
***Non-commercial Use Only***
*/

int delayTime;
void setup(){
  pinMode(2, OUTPUT);  
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(13, OUTPUT); 
}

void loop(){
  

  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(13, LOW);
  delay(100);
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(13, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(12, LOW);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(12, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(13, LOW);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(12, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(13, HIGH);
  delay(100);
  
  digitalWrite(2,LOW);
  delay(100);
  digitalWrite(3,LOW);
  delay(100);
  digitalWrite(4,LOW);
  delay(100);
  digitalWrite(5,LOW);
  delay(100);
  digitalWrite(6,LOW);
  delay(100);
  digitalWrite(7,LOW);
  delay(100);
  digitalWrite(8,LOW);
  delay(100);
  digitalWrite(9,LOW);
  delay(100);
  digitalWrite(10,LOW);
  delay(100);
  digitalWrite(11,LOW);
  delay(100);
  digitalWrite(12,LOW);
  delay(100);
  digitalWrite(13,LOW);
  delay(100);
  
  digitalWrite(13,HIGH);
  delay(100);
  digitalWrite(2,HIGH);
  delay(100);
  digitalWrite(12,HIGH);
  delay(100);
  digitalWrite(3,HIGH);
  delay(100);
  digitalWrite(11,HIGH);
  delay(100);
  digitalWrite(4,HIGH);
  delay(100);
  digitalWrite(10,HIGH);
  delay(100);
  digitalWrite(5,HIGH);
  delay(100);
  digitalWrite(9,HIGH);
  delay(100);
  digitalWrite(6,HIGH);
  delay(100);
  digitalWrite(8,HIGH);
  delay(100);
  digitalWrite(7,HIGH);
  delay(100);
  
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(12, LOW);
  delay(100);
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(13, LOW);
  delay(100);
  
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(13, HIGH);
  delay(100);
  
  digitalWrite(13,LOW);
  delay(100);
  digitalWrite(12,LOW);
  delay(100);
  digitalWrite(11,LOW);
  delay(100);
  digitalWrite(10,LOW);
  delay(100);
  digitalWrite(9,LOW);
  delay(100);
  digitalWrite(8,LOW);
  delay(100);
  digitalWrite(7,LOW);
  delay(100);
  digitalWrite(6,LOW);
  delay(100);
  digitalWrite(5,LOW);
  delay(100);
  digitalWrite(4,LOW);
  delay(100);
  digitalWrite(3,LOW);
  delay(100);
  digitalWrite(2,LOW);
  delay(100);
  
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(12, LOW);
  delay(100);
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(13, LOW);
  delay(100);
  
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  
  digitalWrite(13,LOW);
  delay(100);
  digitalWrite(2,LOW);
  delay(100);
  digitalWrite(12,LOW);
  delay(100);
  digitalWrite(3,LOW);
  delay(100);
  digitalWrite(11,LOW);
  delay(100);
  digitalWrite(4,LOW);
  delay(100);
  digitalWrite(10,LOW);
  delay(100);
  digitalWrite(5,LOW);
  delay(100);
  digitalWrite(9,LOW);
  delay(100);
  digitalWrite(6,LOW);
  delay(100);
  digitalWrite(8,LOW);
  delay(100);
  digitalWrite(7,LOW);
  delay(100);
  
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  
  digitalWrite(11,LOW);
  delay(100);
  digitalWrite(12,LOW);
  delay(100);
  digitalWrite(13,LOW);
  delay(100);
  
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  
  digitalWrite(8,LOW);
  delay(100);
  digitalWrite(9,LOW);
  delay(100);
  digitalWrite(10,LOW);
  delay(100);
  
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  
  digitalWrite(5,LOW);
  delay(100);
  digitalWrite(6,LOW);
  delay(100);
  digitalWrite(7,LOW);
  delay(100);
  
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  
  digitalWrite(2,LOW);
  delay(100);
  digitalWrite(3,LOW);
  delay(100);
  digitalWrite(4,LOW);
  delay(100);
  
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(13, LOW);
  delay(100);
  digitalWrite(13, HIGH);
  delay(100);
  digitalWrite(13, LOW);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(12, LOW);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(12, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(2, LOW);
  delay(100);
  
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(13, HIGH);
  delay(100);
  
  digitalWrite(2, LOW);
  delay(100);
  digitalWrite(2, HIGH);
  delay(100);
  digitalWrite(3, LOW);
  delay(100);
  digitalWrite(3, HIGH);
  delay(100);
  digitalWrite(4, LOW);
  delay(100);
  digitalWrite(4, HIGH);
  delay(100);
  digitalWrite(5, LOW);
  delay(100);
  digitalWrite(5, HIGH);
  delay(100);
  digitalWrite(6, LOW);
  delay(100);
  digitalWrite(6, HIGH);
  delay(100);
  digitalWrite(7, LOW);
  delay(100);
  digitalWrite(7, HIGH);
  delay(100);
  digitalWrite(8, LOW);
  delay(100);
  digitalWrite(8, HIGH);
  delay(100);
  digitalWrite(9, LOW);
  delay(100);
  digitalWrite(9, HIGH);
  delay(100);
  digitalWrite(10, LOW);
  delay(100);
  digitalWrite(10, HIGH);
  delay(100);
  digitalWrite(11, LOW);
  delay(100);
  digitalWrite(11, HIGH);
  delay(100);
  digitalWrite(12, LOW);
  delay(100);
  digitalWrite(12, HIGH);
  delay(100);
  digitalWrite(13, LOW);
  delay(100);
  digitalWrite(13, HIGH);
  delay(100);
  
  digitalWrite(13,LOW);
  delay(100);
  digitalWrite(12,LOW);
  delay(100);
  digitalWrite(11,LOW);
  delay(100);
  digitalWrite(10,LOW);
  delay(100);
  digitalWrite(9,LOW);
  delay(100);
  digitalWrite(8,LOW);
  delay(100);
  digitalWrite(7,LOW);
  delay(100);
  digitalWrite(6,LOW);
  delay(100);
  digitalWrite(5,LOW);
  delay(100);
  digitalWrite(4,LOW);
  delay(100);
  digitalWrite(3,LOW);
  delay(100);
  digitalWrite(2,LOW);
  delay(100);

  //newly added

  delayTime = 100;   //0 means Analog Input A0
  digitalWrite(2, HIGH);  delay(delayTime);
  digitalWrite(2, LOW);  delay(delayTime);
  digitalWrite(3, HIGH);  delay(delayTime);
  digitalWrite(3, LOW);  delay(delayTime);
  digitalWrite(4, HIGH);  delay(delayTime);
  digitalWrite(4, LOW);  delay(delayTime);
  digitalWrite(5, HIGH);  delay(delayTime);
  digitalWrite(5, LOW);  delay(delayTime);
  digitalWrite(6,HIGH);    delay(delayTime);
  digitalWrite(6, LOW);    delay(delayTime);
  digitalWrite(7, HIGH);    delay(delayTime);
  digitalWrite(7, LOW);    delay(delayTime);
  digitalWrite(8, HIGH);  delay(delayTime);
  digitalWrite(8, LOW);  delay(delayTime);
  digitalWrite(9, HIGH);  delay(delayTime);
  digitalWrite(9, LOW);  delay(delayTime);
  digitalWrite(10, HIGH);  delay(delayTime);
  digitalWrite(10, LOW);  delay(delayTime);   
  digitalWrite(11, HIGH);    delay(delayTime);
  digitalWrite(11, LOW);    delay(delayTime);
  digitalWrite(12, HIGH);    delay(delayTime);
  digitalWrite(12, LOW);    delay(delayTime);
    digitalWrite(13, HIGH);    delay(delayTime);
  digitalWrite(13, LOW);    delay(delayTime);

  delayTime = 120;   //0 means Analog Input A0
  digitalWrite(2, HIGH);  delay(delayTime);
  digitalWrite(2, LOW);  delay(delayTime);
  digitalWrite(3, HIGH);  delay(delayTime);
  digitalWrite(3, LOW);  delay(delayTime);
  digitalWrite(4, HIGH);  delay(delayTime);
  digitalWrite(4, LOW);  delay(delayTime);
  digitalWrite(5, HIGH);  delay(delayTime);
  digitalWrite(5, LOW);  delay(delayTime);
  digitalWrite(6,HIGH);    delay(delayTime);
  digitalWrite(6, LOW);    delay(delayTime);
  digitalWrite(7, HIGH);    delay(delayTime);
  digitalWrite(7, LOW);    delay(delayTime);
  digitalWrite(8, HIGH);  delay(delayTime);
  digitalWrite(8, LOW);  delay(delayTime);
  digitalWrite(9, HIGH);  delay(delayTime);
  digitalWrite(9, LOW);  delay(delayTime);
  digitalWrite(10, HIGH);  delay(delayTime);
  digitalWrite(10, LOW);  delay(delayTime);   
  digitalWrite(11, HIGH);    delay(delayTime);
  digitalWrite(11, LOW);    delay(delayTime);
  digitalWrite(12, HIGH);    delay(delayTime);
  digitalWrite(12, LOW);    delay(delayTime);
    digitalWrite(13, HIGH);    delay(delayTime);
  digitalWrite(13, LOW);    delay(delayTime);


//2sided 

  digitalWrite(13, HIGH);    
  digitalWrite(2, HIGH);    delay(delayTime);
  digitalWrite(13, LOW);    
  digitalWrite(2, LOW);    delay(delayTime);
  digitalWrite(12, HIGH);    
  digitalWrite(3, HIGH);    delay(delayTime);
  digitalWrite(12, LOW);    
  digitalWrite(3, LOW);    delay(delayTime);
  digitalWrite(11, HIGH);    
  digitalWrite(4, HIGH);    delay(delayTime);
  digitalWrite(11, LOW);    
  digitalWrite(4, LOW);    delay(delayTime);
  digitalWrite(10, HIGH);    
  digitalWrite(5, HIGH);    delay(delayTime);
  digitalWrite(10, LOW);    
  digitalWrite(5, LOW);    delay(delayTime);
  digitalWrite(9, HIGH);    
  digitalWrite(6, HIGH);    delay(delayTime);
  digitalWrite(9, LOW);    
  digitalWrite(6, LOW);    delay(delayTime);
  digitalWrite(8, HIGH);    
  digitalWrite(7, HIGH);    delay(delayTime);
  digitalWrite(8, LOW);    
  digitalWrite(7, LOW);    delay(delayTime);

  digitalWrite(7, HIGH);    
  digitalWrite(8, HIGH);    delay(delayTime);
  digitalWrite(7, LOW);    
  digitalWrite(8, LOW);    delay(delayTime);
  digitalWrite(6, HIGH);    
  digitalWrite(9, HIGH);    delay(delayTime);
  digitalWrite(6, LOW);    
  digitalWrite(9, LOW);    delay(delayTime);
  digitalWrite(5, HIGH);    
  digitalWrite(10, HIGH);    delay(delayTime);
  digitalWrite(5, LOW);    
  digitalWrite(10, LOW);    delay(delayTime);
  digitalWrite(4, HIGH);    
  digitalWrite(11, HIGH);    delay(delayTime);
  digitalWrite(4, LOW);    
  digitalWrite(11, LOW);    delay(delayTime);
  digitalWrite(3, HIGH);    
  digitalWrite(12, HIGH);    delay(delayTime);
  digitalWrite(3, LOW);    
  digitalWrite(12, LOW);    delay(delayTime);
  digitalWrite(2, HIGH);    
  digitalWrite(13, HIGH);    delay(delayTime);
  digitalWrite(2, LOW);    
  digitalWrite(13, LOW);  delay(delayTime);

  //same as above


 
  digitalWrite(12, HIGH);    
  digitalWrite(3, HIGH);    delay(delayTime);
  digitalWrite(12, LOW);    
  digitalWrite(3, LOW);    delay(delayTime);
  digitalWrite(11, HIGH);    
  digitalWrite(4, HIGH);    delay(delayTime);
  digitalWrite(11, LOW);    
  digitalWrite(4, LOW);    delay(delayTime);
  digitalWrite(10, HIGH);    
  digitalWrite(5, HIGH);    delay(delayTime);
  digitalWrite(10, LOW);    
  digitalWrite(5, LOW);    delay(delayTime);
  digitalWrite(9, HIGH);    
  digitalWrite(6, HIGH);    delay(delayTime);
  digitalWrite(9, LOW);    
  digitalWrite(6, LOW);    delay(delayTime);
  digitalWrite(8, HIGH);    
  digitalWrite(7, HIGH);    delay(delayTime);
  digitalWrite(8, LOW);    
  digitalWrite(7, LOW);    delay(delayTime);

  digitalWrite(7, HIGH);    
  digitalWrite(8, HIGH);    delay(delayTime);
  digitalWrite(7, LOW);    
  digitalWrite(8, LOW);    delay(delayTime);
  digitalWrite(6, HIGH);    
  digitalWrite(9, HIGH);    delay(delayTime);
  digitalWrite(6, LOW);    
  digitalWrite(9, LOW);    delay(delayTime);
  digitalWrite(5, HIGH);    
  digitalWrite(10, HIGH);    delay(delayTime);
  digitalWrite(5, LOW);    
  digitalWrite(10, LOW);    delay(delayTime);
  digitalWrite(4, HIGH);    
  digitalWrite(11, HIGH);    delay(delayTime);
  digitalWrite(4, LOW);    
  digitalWrite(11, LOW);    delay(delayTime);
  digitalWrite(3, HIGH);    
  digitalWrite(12, HIGH);    delay(delayTime);
  digitalWrite(3, LOW);    
  digitalWrite(12, LOW);    delay(delayTime);
  digitalWrite(2, HIGH);    
  digitalWrite(13, HIGH);    delay(delayTime);
 

  
}

Credits

Creative creator

Creative creator

13 projects • 2 followers

Comments