Knight Rider W/ Arduino

Hello guys , this is my first project . Maybe smth is wrong .

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Items What You Need ...

7x Red LED's

7x 330 Ohm Resistor

A lot of wires

1x Push Button

Arduino ( i am using nano )

Breadboard

Step 2: Schematic

Look picture for more details....

Step 3: Code

Code works , i made my own code , maybe smth is wrong , but how i said , this is my first project .

sides are LED's 1 and 7;

almostsides are LED's 2 and 6;

middle are LED's 3 and 5;

center is LED 4; //pins

If you wanna add some circuits:

1 Step : Create new case .

2 Step : When you complete case type break;

3 Step : randNumber = random(1, 5); change the second number , like if you have 6 cases you need to change second number above , like : 5 cases , type 6 ....

Thanks , for reading .

Hope you enjoyed . ;)

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    7 Discussions

    0
    None
    KristersKtomatoskins

    Reply 3 years ago

    Thanks! Did you made it ? What Arduino did you used?

    0
    None
    tomatoskinsKristersK

    Reply 3 years ago

    I didn't make it. But if I ever do, I'll be sure to share a pic! I only have an Uno right now.

    0
    None
    KristersKCandy Cane

    Reply 3 years ago

    Thanks! Did you made it ? What Arduino did you used?

    0
    None
    Candy CaneKristersK

    Reply 3 years ago

    I plan on trying this out once i have a little more free time on my hands but when i do ill be sure to show you how it went.