Arduino Knight Rider 10 LEDs

Arduino Knight Rider 10 LEDs

Set of LEDs that blinks one after another

  • 524 views
  • 0 comments
  • 1 respect

Components and supplies

Apps and online services

About this project

Set of LEDs that blinks one after another

Code

10 LEDs KNIGHT RIDER ARDUINOArduino
int ledPin1 = 13; 
int ledPin2 = 12;
int ledPin3 = 11;
int ledPin4 = 10;
int ledPin5 = 9;
int ledPin6 = 8;
int ledPin7 = 7;
int ledPin8 = 6; 
int ledPin9 = 5;
int ledPin10 = 4;
const int delayTime = 50; 

 void setup () 
 
{
  pinMode(ledPin1, OUTPUT); 
  pinMode(ledPin2, OUTPUT); 
  pinMode(ledPin3, OUTPUT); 
  pinMode(ledPin4, OUTPUT); 
  pinMode(ledPin5, OUTPUT); 
  pinMode(ledPin6, OUTPUT); 
  pinMode(ledPin7, OUTPUT); 
  pinMode(ledPin8, OUTPUT);
  pinMode(ledPin9, OUTPUT); 
  pinMode(ledPin10, OUTPUT);
} 
 void loop() { 
 
 
 digitalWrite(ledPin1,HIGH);
 delay(delayTime);
 digitalWrite(ledPin1,LOW);
 digitalWrite(ledPin2,HIGH);
 delay(delayTime); 
 digitalWrite(ledPin2,LOW);
 
 digitalWrite(ledPin3,HIGH);
 delay(delayTime);
 digitalWrite(ledPin3,LOW);
 
 digitalWrite(ledPin4,HIGH);
 delay(delayTime);
 digitalWrite(ledPin4,LOW);

 digitalWrite(ledPin5,HIGH);
 delay(delayTime);
 digitalWrite(ledPin5,LOW);
 
 digitalWrite(ledPin6,HIGH);
 delay(delayTime);
 digitalWrite(ledPin6,LOW);
 
 digitalWrite(ledPin7,HIGH);
 delay(delayTime);
 digitalWrite(ledPin7,LOW);
 
 digitalWrite(ledPin8,HIGH);
 delay(delayTime);
 digitalWrite(ledPin8,LOW);

 digitalWrite(ledPin9,HIGH);
 delay(delayTime);
 digitalWrite(ledPin9,LOW);

 digitalWrite(ledPin10,HIGH);
 delay(delayTime);
 digitalWrite(ledPin10,LOW);
 
 
 digitalWrite(ledPin10,HIGH);
 delay(delayTime); 
 digitalWrite(ledPin10,LOW);

 digitalWrite(ledPin9,HIGH);
 delay(delayTime); 
 digitalWrite(ledPin9,LOW);
 
 digitalWrite(ledPin8,HIGH);
 delay(delayTime); 
 digitalWrite(ledPin8,LOW);
 digitalWrite(ledPin7,HIGH);
 delay(delayTime); 
 digitalWrite(ledPin7,LOW);
 
 digitalWrite(ledPin6,HIGH); 
 delay(delayTime); 
 digitalWrite(ledPin6,LOW); 
 
 digitalWrite(ledPin5,HIGH);
 delay(delayTime); 
 digitalWrite(ledPin5,LOW); 
 
 digitalWrite(ledPin4,HIGH); 
 delay(delayTime); 
 digitalWrite(ledPin4,LOW); 
 
 digitalWrite(ledPin3,HIGH); 
 delay(delayTime); 
 digitalWrite(ledPin3,LOW); 
 
 digitalWrite(ledPin2,HIGH); 
 delay(delayTime); 
 digitalWrite(ledPin2,LOW); 
 
 digitalWrite(ledPin1,HIGH);
 delay(delayTime); 
 digitalWrite(ledPin1,LOW); 

 
 
}

Schematics

10 LEDs KNIGHT RIDER ARDUINO
The circuit diagram
10 leds knight rider arduino 9rzvzhb7h4

Comments

Similar projects you might like

Multicolor Knight Rider with RGB PL9823 LED + Arduino UNO

Project tutorial by Giovanni Gentile

  • 12,255 views
  • 1 comment
  • 20 respects

Knight Rider - KITT Scanner Featuring NeoPixels

Project in progress by Peter Gullberg

  • 26,361 views
  • 11 comments
  • 40 respects

Blinking LEDs with Arduino

Project tutorial by Super Kid

  • 7,956 views
  • 3 comments
  • 21 respects

Turn LEDs On/Off via Remote Control

Project tutorial by ismystore

  • 15,286 views
  • 2 comments
  • 9 respects

Alexa Controlled LEDs Through Raspberry Pi

Project tutorial by vincent wong

  • 10,339 views
  • 6 comments
  • 30 respects

Arduino Door Bell with 3 LEDs

Project showcase by Team abhishekghosh

  • 9,420 views
  • 2 comments
  • 9 respects
Add projectSign up / Login