Arduino Rocker Game

Introduction: Arduino Rocker Game

This is an Arduino game, there are 11 LED lights, the LED lights will shine in a pattern. When the middle LED shines, press the button. You have three lives, every time you press the button when the light is not on the middle you lose a life. After you are out of lives, you lose the game and the game restarts. This projected was changed from https://www.instructables.com/id/Arduino-LED-Rocker-Game/ . I changed the delay time to 0.3 seconds, and I added two LEDs in this project.

Step 1: Step 1 Materials

  • 11 LEDs
  • Arduino Leonardo
  • a button
  • bread board
  • 13 jumper wires
  • 12 resistors

Step 2: Step 2 How to Build It?

Every LED should be connected with a resistor from pin 2 to pin 12. Connect the button to pin 13. Then connect the ground GND pin to the ground rail of the breadboard.

Step 3: Step 3 the Code

https://www.google.com/url?q=https://create.arduino.cc/editor/seanwu0000/b25ba73a-651b-4f42-ad54-30345790c560/preview&sa=D&source=hangouts&ust=1587701192719000&usg=AFQjCNG8sfH8e2WTdWRTTaj6sxDkDHfKPg

Step 4: Step 4 DONEEEE!!!!

If you press the button when the light is not in the middle, you will loose a life. You only get three lives. If you pressed the button when the light is in the middle, the speed will get faster and the game will get harder.

Be the First to Share

    Recommendations

    • Halloween Contest

      Halloween Contest
    • Back to School: Student Design Challenge

      Back to School: Student Design Challenge
    • Rocks, Gems, and Stones Speed Challenge

      Rocks, Gems, and Stones Speed Challenge

    Comments