Introduction: Knight Rider Using Arduino Uno

About: An electronic engineer

In this tutorial I will Teach you how to use Arduino uno to make a knight rider

Step 1: Do the Connections As Per the Video

Step 2: The LED's Should Be Connected to the Digital Pin of Arduino Uno

Step 3: The Led Should Be Connected From PIN 1 to PIN 10 of Digital Side So That the Output Will Be Not Pulserated

Step 4: Then Finally Dump the Program Into the Arduino Uno

int led1 = 1;

int led2 = 2;

int led3 = 3;

int led4 = 4;

int led5 = 5;

int led6 = 6;

int led7 = 7;

int led8 = 8;

int led9 = 9;

int led10 = 10;

void setup()

{

pinMode(led1, OUTPUT);

pinMode(led2, OUTPUT);

pinMode(led3, OUTPUT);

pinMode(led4, OUTPUT);

pinMode(led5, OUTPUT);

pinMode(led6, OUTPUT);

pinMode(led7, OUTPUT);

pinMode(led8, OUTPUT);

pinMode(led9, OUTPUT);

pinMode(led10, OUTPUT);

}

void loop()

{

digitalWrite(led1 = 1, HIGH);

delay(10);

digitalWrite(led1 = 1, LOW);

delay(70);

digitalWrite(led2 = 2, HIGH);

delay(10);

digitalWrite(led2 = 2, LOW);

delay(70);

digitalWrite(led3 = 3, HIGH);

delay(10);

digitalWrite(led3 = 3, LOW);

delay(70);

digitalWrite(led4 = 4, HIGH);

delay(10);

digitalWrite(led4 = 4, LOW);

delay(70);

digitalWrite(led5 = 5, HIGH);

delay(10);

digitalWrite(led5 = 5, LOW);

delay(70);

digitalWrite(led6 = 6, HIGH);

delay(10);

digitalWrite(led6 = 6, LOW);

delay(70);

digitalWrite(led7 = 7, HIGH);

delay(10);

digitalWrite(led7 = 7, LOW);

delay(70);

digitalWrite(led8 = 8, HIGH);

delay(10);

digitalWrite(led8 = 8, LOW);

delay(70);

digitalWrite(led9 = 9, HIGH);

delay(10);

digitalWrite(led9 = 9, LOW);

delay(70);

digitalWrite(led10 = 10, HIGH);

delay(10);

digitalWrite(led10 = 10, LOW);

delay(70);

}

Step 5: The Program Above Is Case Sensitive So Copy and Paste It.

Having any doubts regarding program or the Knight rider contact me @ varunpmas@gmail.com

Step 6: This Is the Wire Diagram of the Circuit