Arduino Shooter Game

The project was born from the idea of making an arduino shooting laser game You will need the following components:

  • Arduino
  • 4 servos
  • 8x8 Display
  • 4 leds
  • 4 photoresistor
  • Buzzer
  • Pwm controller
  • Laser
  • Resistances
  • Desire to have fun( optional)

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: Step 1

1st step

I started connecting the servos and preparing a function that generated a random sequence, to up and down each servo. This function was activated by a click on the button.

Then connect the photoresistors to detect when the laser touched them and create an active variable, and reset if the servo, once up, passed 2 seconds down.

Once the 4 servos were down,all variable was reset.

Connect the buzzer and 1 second before secuence servos start, emit sound to alert player to be ready again.

Step 2: Step 2 - Final Prototype

2nd step

- Connect the servos to the controller, and prepare the "pull" function so that it will be generated during x time. It included a variable total score that was updated every time that one of the variables of the photoresistors changed. These variables were only detected when the servo to which it corresponded was uploaded. Connect the display and the LEDs, and prepare a function to show the total score and turn on the leds of success, each time the laser touched the photoresistors

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions

    0
    None
    Penolopy Bulnick

    10 months ago

    Fun project to make with an Arduino :)