Knight Rider W/ Arduino

1,012

17

7

Introduction: Knight Rider W/ Arduino

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

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

    • Science Fair Challenge

      Science Fair Challenge
    • Home and Garden Contest

      Home and Garden Contest
    • Stone Concrete Cement Contest

      Stone Concrete Cement Contest

    7 Comments

    0
    tomatoskins
    tomatoskins

    6 years ago

    This is great! I love the idea and reference to Knight Rider!

    0
    KristersK
    KristersK

    Reply 6 years ago

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

    0
    tomatoskins
    tomatoskins

    Reply 6 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
    KristersK
    KristersK

    Reply 6 years ago

    I think it shoud work with Uno too .

    0
    Candy Cane
    Candy Cane

    6 years ago

    This is really nice!

    0
    KristersK
    KristersK

    Reply 6 years ago

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

    0
    Candy Cane
    Candy Cane

    Reply 6 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.