Introduction: Knight Rider Arduino

Picture of Knight Rider Arduino

This is a tutorial on how to make a simple knight rider aka blinking led wave.

Step 1: What You Need

5 leds
5 220 ohm resistors
Arduino
Usb cable
Breadboard

Step 2: Wiring

Picture of Wiring

Well what you need to do is for the first led connect it to the resistor to pin 6 digital. Then for the other leds it will go in order so led 2 goes to pin 5 digital and so on. Everything is in the picture. Hope you get it! Then connect all the leds negative wire thing to GND . That's kinda all though so upload the following code in the next step

Step 3: The Code

// LED Wave

void setup() { pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); }

void loop() { digitalWrite(2, HIGH); delay(500); digitalWrite(2, LOW); digitalWrite(3, HIGH); delay(500); digitalWrite(3, LOW); digitalWrite(4, HIGH); delay(500); digitalWrite(4, LOW); digitalWrite(5, HIGH); delay(500); digitalWrite(5, LOW); digitalWrite(6, HIGH); delay(500); digitalWrite(6, LOW); digitalWrite(5, HIGH); delay(500); digitalWrite(5, LOW); digitalWrite(4, HIGH); delay(500); digitalWrite(4, LOW); digitalWrite(3, HIGH); delay(500); digitalWrite(3, LOW); // the loop() will now loop around and start from the top again }

Step 4: Ending

Well I hope you made this project and have fun like and comment

Comments

craftclarity (author)2014-05-12

This project looks awesome, but there isn't really enough documentation of you actually making it for a complete Step-by-Step Instructable. There are two things which you could do.

1) If you happen to have images of you making your project you can create some more steps with more complete instructions and then republish your Instructable.

2) If you don't have any more pictures of you working on your project, that's okay too. That just means that your project is better suited to be submitted as a Photo Instructable. Your images are already in your photo library, and you can copy and paste the same text that you have already written for your Step-by-Step Instructable, so it should only take a few minutes to create a new Photo Instructable and show the world what you made!

Also, it's great that you have decided to share your photos with us, but we need an explanation of what you made and how you made it before it can be published. Please write up a description of your project and reply to this comment to let me know that you are done.

Thanks for your submission and let me know if you have any questions along the way.

About This Instructable

39views

0favorites

License:

More by coolyyz:How To Convert AC To DCHow To Make A Music PlayerHow To Make a 74HC595 Shift Resistor Circuit
Add instructable to: