Introduction: Knight Rider Using Arduino Uno

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

Picture of 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

Picture of 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

Picture of 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

Picture of This Is the Wire Diagram of the Circuit

Comments

DIY Hacks and How Tos (author)2017-11-12

Cool project. Could you share a wiring diagram to go with it?

Yes, I will post the wire diagram within today

I would like to know if you have a wiring diagram for this project? I don't see one anywhere on here. Thanks

Varun Pandithurai made it! (author)madrasi2017-11-13

Here is the wire diagram and I also included it in the article.

Thank you very much. I have never done anything like this but I am going to try it out. This will help a lot.

Here is the wire diagram and I also included it in the article

About This Instructable

124views

5favorites

License:

Bio: An electronic engineer
More by Varun Pandithurai:Knight Rider Using Arduino Uno
Add instructable to: