Arduino UNO and LEDs can be used together to create wonderful LED chaser patterns. You can find the code as well.

LED chaser is a very interesting project for beginners. I always love it to see in real. 😍🤩 Feel free to try out the code with the online simulator. Share your code too. I would love to see what all you were able to develop!

Code and Video of the project is shown below


wokwi Arduino simulator 29.gif

LED chaser using Arduino - with code

        void setup() {
pinMode(0, OUTPUT);
pinMode(1, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
}

void loop() {

//Pattern 01
digitalWrite(0, LOW); 
delay(300);
digitalWrite(1, LOW); 
delay(300);
digitalWrite(2, LOW); 
delay(300);
digitalWrite(3, LOW); 
delay(300);
digitalWrite(5, LOW); 
delay(300);
digitalWrite(6, LOW); 
delay(300);
digitalWrite(7, LOW); 
delay(300);
  
digitalWrite(0, HIGH); 
delay(200);
digitalWrite(1, HIGH); 
delay(200);
digitalWrite(2, HIGH); 
delay(200);
digitalWrite(3, HIGH); 
delay(200);
digitalWrite(5, HIGH); 
delay(200);
digitalWrite(6, HIGH); 
delay(200);
digitalWrite(7, HIGH); 
delay(200);

//Pattern 02
digitalWrite(7, LOW); 
delay(300);
digitalWrite(6, LOW); 
delay(300);
digitalWrite(5, LOW); 
delay(300);
digitalWrite(3, LOW); 
delay(300);
digitalWrite(2, LOW); 
delay(300);
digitalWrite(1, LOW); 
delay(300);
digitalWrite(0, LOW); 
delay(300);
  
digitalWrite(7, HIGH); 
delay(200);
digitalWrite(6, HIGH); 
delay(200);
digitalWrite(5, HIGH); 
delay(200);
digitalWrite(3, HIGH); 
delay(200);
digitalWrite(2, HIGH); 
delay(200);
digitalWrite(1, HIGH); 
delay(200);
digitalWrite(0, HIGH); 
delay(200);

//Pattern 03
digitalWrite(7, LOW); 
digitalWrite(6, HIGH); 
digitalWrite(5, LOW); 
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
digitalWrite(1, HIGH); 
digitalWrite(0, LOW); 
delay(300);

digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
digitalWrite(2, HIGH); 
digitalWrite(1, LOW); 
digitalWrite(0, HIGH); 
delay(300); //Rep1

digitalWrite(7, LOW); 
digitalWrite(6, HIGH); 
digitalWrite(5, LOW); 
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
digitalWrite(1, HIGH); 
digitalWrite(0, LOW); 
delay(300);

digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
digitalWrite(2, HIGH); 
digitalWrite(1, LOW); 
digitalWrite(0, HIGH); 
delay(300); //Rep2

digitalWrite(7, LOW); 
digitalWrite(6, HIGH); 
digitalWrite(5, LOW); 
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
digitalWrite(1, HIGH); 
digitalWrite(0, LOW); 
delay(300);

digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
digitalWrite(2, HIGH); 
digitalWrite(1, LOW); 
digitalWrite(0, HIGH); 
delay(300); //Rep3

digitalWrite(7, LOW); 
digitalWrite(6, HIGH); 
digitalWrite(5, LOW); 
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
digitalWrite(1, HIGH); 
digitalWrite(0, LOW); 
delay(300);

digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
digitalWrite(2, HIGH); 
digitalWrite(1, LOW); 
digitalWrite(0, HIGH); 
delay(300); //Rep4

digitalWrite(7, LOW); 
digitalWrite(6, HIGH); 
digitalWrite(5, LOW); 
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
digitalWrite(1, HIGH); 
digitalWrite(0, LOW); 
delay(300);

digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
digitalWrite(2, HIGH); 
digitalWrite(1, LOW); 
digitalWrite(0, HIGH); 
delay(300); //Rep5

digitalWrite(7, LOW); 
digitalWrite(6, HIGH); 
digitalWrite(5, LOW); 
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
digitalWrite(1, HIGH); 
digitalWrite(0, LOW); 
delay(300);

digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
digitalWrite(2, HIGH); 
digitalWrite(1, LOW); 
digitalWrite(0, HIGH); 
delay(300); //Rep6

digitalWrite(7, LOW); 
digitalWrite(6, HIGH); 
digitalWrite(5, LOW); 
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
digitalWrite(1, HIGH); 
digitalWrite(0, LOW); 
delay(300);

digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
digitalWrite(2, HIGH); 
digitalWrite(1, LOW); 
digitalWrite(0, HIGH); 
delay(300); //Rep7

digitalWrite(7, LOW); 
digitalWrite(6, HIGH); 
digitalWrite(5, LOW); 
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
digitalWrite(1, HIGH); 
digitalWrite(0, LOW); 
delay(300);

digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
digitalWrite(2, HIGH); 
digitalWrite(1, LOW); 
digitalWrite(0, HIGH); 
delay(300); //Rep8

digitalWrite(6, HIGH); 
digitalWrite(3, HIGH); 
digitalWrite(1, HIGH); 
delay(200);

//Pattern 04
digitalWrite(0, LOW); 
delay(300);
digitalWrite(1, LOW); 
delay(300);
digitalWrite(2, LOW); 
delay(300);
digitalWrite(3, LOW); 
delay(300);
digitalWrite(5, LOW); 
delay(300);
digitalWrite(6, LOW); 
delay(300);
digitalWrite(7, LOW); 
delay(300);
  
digitalWrite(7, HIGH); 
delay(200);
digitalWrite(6, HIGH); 
delay(200);
digitalWrite(5, HIGH); 
delay(200);
digitalWrite(3, HIGH); 
delay(200);
digitalWrite(2, HIGH); 
delay(200);
digitalWrite(1, HIGH); 
delay(200);
digitalWrite(0, HIGH); 
delay(200);

//Pattern 05
digitalWrite(7, LOW); 
delay(300);
digitalWrite(6, LOW); 
delay(300);
digitalWrite(5, LOW); 
delay(300);
digitalWrite(3, LOW); 
delay(300);
digitalWrite(2, LOW); 
delay(300);
digitalWrite(1, LOW); 
delay(300);
digitalWrite(0, LOW); 
delay(300);
  
digitalWrite(0, HIGH); 
delay(200);
digitalWrite(1, HIGH); 
delay(200);
digitalWrite(2, HIGH); 
delay(200);
digitalWrite(3, HIGH); 
delay(200);
digitalWrite(5, HIGH); 
delay(200);
digitalWrite(6, HIGH); 
delay(200);
digitalWrite(7, HIGH); 
delay(200);

//Pattern 06
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100);  
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100);   
digitalWrite(3, LOW); 
delay(100);   

digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100);  
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100);   
digitalWrite(3, HIGH); 
delay(100); //Rep 1

digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100);  
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100);   
digitalWrite(3, LOW); 
delay(100);   

digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100);  
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100);   
digitalWrite(3, HIGH); 
delay(100); //Rep 2

digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100);  
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100);   
digitalWrite(3, LOW); 
delay(100);   

digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100);  
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100);   
digitalWrite(3, HIGH); 
delay(100); //Rep 3

digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100);  
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100);   
digitalWrite(3, LOW); 
delay(100);   

digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100);  
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100);   
digitalWrite(3, HIGH); 
delay(100); //Rep 4

digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100);  
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100);   
digitalWrite(3, LOW); 
delay(100);   

digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100);  
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100);   
digitalWrite(3, HIGH); 
delay(100); //Rep 5

//Pattern 07
digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH);
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(7, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH);
digitalWrite(6, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
  
digitalWrite(0, HIGH); 
delay(200);
digitalWrite(1, HIGH); 
delay(200);
digitalWrite(2, HIGH); 
delay(200);
digitalWrite(3, HIGH); 
delay(200);
digitalWrite(5, HIGH); 
delay(200);
digitalWrite(6, HIGH); 
delay(200);
digitalWrite(7, HIGH); 
delay(200);

//Pattern 08
digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH);
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(0, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH);
digitalWrite(1, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);

digitalWrite(7, HIGH); 
delay(200);
digitalWrite(6, HIGH); 
delay(200);
digitalWrite(5, HIGH); 
delay(200);
digitalWrite(3, HIGH); 
delay(200);
digitalWrite(2, HIGH); 
delay(200);
digitalWrite(1, HIGH); 
delay(200);
digitalWrite(0, HIGH); 
delay(200);

//Pattern 09
digitalWrite(3, LOW); 
delay(100);
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100); 
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
 
digitalWrite(3, HIGH); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100); 
digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); //Rep1  

digitalWrite(3, LOW); 
delay(100);
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100); 
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
 
digitalWrite(3, HIGH); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100); 
digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); //Rep2 

digitalWrite(3, LOW); 
delay(100);
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100); 
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
 
digitalWrite(3, HIGH); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100); 
digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); //Rep3 

digitalWrite(3, LOW); 
delay(100);
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100); 
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
 
digitalWrite(3, HIGH); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100); 
digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); //Rep4 

digitalWrite(3, LOW); 
delay(100);
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100); 
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
 
digitalWrite(3, HIGH); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100); 
digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); //Rep5 

//Pattern 10
digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH);
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(7, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH);
digitalWrite(6, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(100);

digitalWrite(0, LOW); 
delay(100);
  
digitalWrite(7, HIGH); 
delay(200);
digitalWrite(6, HIGH); 
delay(200);
digitalWrite(5, HIGH); 
delay(200);
digitalWrite(3, HIGH); 
delay(200);
digitalWrite(2, HIGH); 
delay(200);
digitalWrite(1, HIGH); 
delay(200);
digitalWrite(0, HIGH); 
delay(200);

//Pattern 11
digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH);
digitalWrite(1, LOW); 
delay(100);
digitalWrite(1, HIGH);
digitalWrite(0, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
delay(100);
digitalWrite(2, HIGH);
digitalWrite(1, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(100);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(100);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(100);

digitalWrite(7, LOW); 
delay(100);

digitalWrite(0, HIGH); 
delay(200);
digitalWrite(1, HIGH); 
delay(200);
digitalWrite(2, HIGH); 
delay(200);
digitalWrite(3, HIGH); 
delay(200);
digitalWrite(5, HIGH); 
delay(200);
digitalWrite(6, HIGH); 
delay(200);
digitalWrite(7, HIGH); 
delay(200);

//Pattern 06 Repeat
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100);  
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100);   
digitalWrite(3, LOW); 
delay(100);   

digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100);  
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100);   
digitalWrite(3, HIGH); 
delay(100); //Rep 1

digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100);  
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100);   
digitalWrite(3, LOW); 
delay(100);   

digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100);  
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100);   
digitalWrite(3, HIGH); 
delay(100); //Rep 2

digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100);  
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100);   
digitalWrite(3, LOW); 
delay(100);   

digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100);  
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100);   
digitalWrite(3, HIGH); 
delay(100); //Rep 3

digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100);  
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100);   
digitalWrite(3, LOW); 
delay(100);   

digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100);  
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100);   
digitalWrite(3, HIGH); 
delay(100); //Rep 4

digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100);  
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100);   
digitalWrite(3, LOW); 
delay(100);   

digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100);  
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100);   
digitalWrite(3, HIGH); 
delay(100); //Rep 5

//Pattern 12
digitalWrite(0, LOW); 
delay(200);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(200);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(200);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW); 
delay(200);
digitalWrite(5, HIGH);
digitalWrite(6, LOW); 
delay(200);
digitalWrite(6, HIGH);
digitalWrite(7, LOW); 
delay(200);

digitalWrite(0, LOW); 
delay(200);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(200);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(200);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW); 
delay(200);
digitalWrite(5, HIGH);
digitalWrite(6, LOW); 
delay(200);

digitalWrite(0, LOW); 
delay(200);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(200);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(200);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW); 
delay(200);

digitalWrite(0, LOW); 
delay(200);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(200);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(200);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW); 
delay(200);

digitalWrite(0, LOW); 
delay(200);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(200);
digitalWrite(1, HIGH);
digitalWrite(2, LOW); 
delay(200);

digitalWrite(0, LOW); 
delay(200);
digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(200);

digitalWrite(0, LOW); 
delay(200);
  
digitalWrite(7, HIGH); 
delay(200);

digitalWrite(6, HIGH); 
digitalWrite(7, LOW);
delay(200);
digitalWrite(7, HIGH);
delay(200);

digitalWrite(5, HIGH); 
digitalWrite(6, LOW);
delay(200);
digitalWrite(6, HIGH); 
digitalWrite(7, LOW);
delay(200);
digitalWrite(7, HIGH);
delay(200);

digitalWrite(3, HIGH); 
digitalWrite(5, LOW);
delay(200);
digitalWrite(5, HIGH); 
digitalWrite(6, LOW);
delay(200);
digitalWrite(6, HIGH); 
digitalWrite(7, LOW);
delay(200);
digitalWrite(7, HIGH);
delay(200);

digitalWrite(2, HIGH); 
digitalWrite(3, LOW);
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW);
delay(200);
digitalWrite(5, HIGH); 
digitalWrite(6, LOW);
delay(200);
digitalWrite(6, HIGH); 
digitalWrite(7, LOW);
delay(200);
digitalWrite(7, HIGH);
delay(200);

digitalWrite(1, HIGH); 
digitalWrite(2, LOW); 
delay(200);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW);
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW);
delay(200);
digitalWrite(5, HIGH); 
digitalWrite(6, LOW);
delay(200);
digitalWrite(6, HIGH); 
digitalWrite(7, LOW);
delay(200);
digitalWrite(7, HIGH);
delay(200);

digitalWrite(0, HIGH); 
digitalWrite(1, LOW); 
delay(200);
digitalWrite(1, HIGH); 
digitalWrite(2, LOW); 
delay(200);
digitalWrite(2, HIGH); 
digitalWrite(3, LOW);
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(5, LOW);
delay(200);
digitalWrite(5, HIGH); 
digitalWrite(6, LOW);
delay(200);
digitalWrite(6, HIGH); 
digitalWrite(7, LOW);
delay(200);
digitalWrite(7, HIGH);
delay(200);

//Pattern 13
digitalWrite(7, LOW); 
delay(200);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(200);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(200);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
delay(200);
digitalWrite(2, HIGH);
digitalWrite(1, LOW); 
delay(200);
digitalWrite(1, HIGH);
digitalWrite(0, LOW); 
delay(200);

digitalWrite(7, LOW); 
delay(200);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(200);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(200);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
delay(200);
digitalWrite(2, HIGH);
digitalWrite(1, LOW); 
delay(200);

digitalWrite(7, LOW); 
delay(200);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(200);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(200);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW); 
delay(200);

digitalWrite(7, LOW); 
delay(200);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(200);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(200);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW); 
delay(200);

digitalWrite(7, LOW); 
delay(200);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(200);
digitalWrite(6, HIGH);
digitalWrite(5, LOW); 
delay(200);

digitalWrite(7, LOW); 
delay(200);
digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(200);

digitalWrite(7, LOW); 
delay(200);
  
digitalWrite(0, HIGH); 
delay(200);

digitalWrite(1, HIGH); 
digitalWrite(0, LOW);
delay(200);
digitalWrite(0, HIGH);
delay(200);

digitalWrite(2, HIGH); 
digitalWrite(1, LOW);
delay(200);
digitalWrite(1, HIGH); 
digitalWrite(0, LOW);
delay(200);
digitalWrite(0, HIGH);
delay(200);

digitalWrite(3, HIGH); 
digitalWrite(2, LOW);
delay(200);
digitalWrite(2, HIGH); 
digitalWrite(1, LOW);
delay(200);
digitalWrite(1, HIGH); 
digitalWrite(0, LOW);
delay(200);
digitalWrite(0, HIGH);
delay(200);

digitalWrite(5, HIGH); 
digitalWrite(3, LOW);
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW);
delay(200);
digitalWrite(2, HIGH); 
digitalWrite(1, LOW);
delay(200);
digitalWrite(1, HIGH); 
digitalWrite(0, LOW);
delay(200);
digitalWrite(0, HIGH);
delay(200);

digitalWrite(6, HIGH); 
digitalWrite(5, LOW); 
delay(200);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW);
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW);
delay(200);
digitalWrite(2, HIGH); 
digitalWrite(1, LOW);
delay(200);
digitalWrite(1, HIGH); 
digitalWrite(0, LOW);
delay(200);
digitalWrite(0, HIGH);
delay(200);

digitalWrite(7, HIGH); 
digitalWrite(6, LOW); 
delay(200);
digitalWrite(6, HIGH); 
digitalWrite(5, LOW); 
delay(200);
digitalWrite(5, HIGH); 
digitalWrite(3, LOW);
delay(200);
digitalWrite(3, HIGH); 
digitalWrite(2, LOW);
delay(200);
digitalWrite(2, HIGH); 
digitalWrite(1, LOW);
delay(200);
digitalWrite(1, HIGH); 
digitalWrite(0, LOW);
delay(200);
digitalWrite(0, HIGH);
delay(200);

//Pattern 09 Repeat
digitalWrite(3, LOW); 
delay(100);
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100); 
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
 
digitalWrite(3, HIGH); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100); 
digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); //Rep1  

digitalWrite(3, LOW); 
delay(100);
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100); 
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
 
digitalWrite(3, HIGH); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100); 
digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); //Rep2 

digitalWrite(3, LOW); 
delay(100);
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100); 
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
 
digitalWrite(3, HIGH); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100); 
digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); //Rep3 

digitalWrite(3, LOW); 
delay(100);
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100); 
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
 
digitalWrite(3, HIGH); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100); 
digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); //Rep4 

digitalWrite(3, LOW); 
delay(100);
digitalWrite(2, LOW); 
digitalWrite(5, LOW);
delay(100); 
digitalWrite(1, LOW); 
digitalWrite(6, LOW);
delay(100); 
digitalWrite(0, LOW); 
digitalWrite(7, LOW);
delay(100); 
 
digitalWrite(3, HIGH); 
delay(100);
digitalWrite(2, HIGH); 
digitalWrite(5, HIGH);
delay(100); 
digitalWrite(1, HIGH); 
digitalWrite(6, HIGH);
delay(100); 
digitalWrite(0, HIGH); 
digitalWrite(7, HIGH);
delay(100); //Rep5 
}
    

Please hop on to Discord if you need any help with the simulations

Project link: 

https://wokwi.com/arduino/projects/297184275681247753


Puneeth pksn
Hardware enthusiast with ample interest in Arduino projects