Reaction Game- Computer Engineering Project

by 903925 in Circuits > Electronics

283 Views, 1 Favorites, 0 Comments

Reaction Game- Computer Engineering Project

IMG-0680.JPG
IMG-0677.JPG

The reaction game is exactly what the name says, it tests your reaction speed. You might be asking what benefits could this server outside of entertainment, well you can use this for individuals in rehab from surgery or accidents. Their reaction speed would health and physical progress after medical operations.

Supplies

  • Raspberry Pi 3 B
  • Breadboard
  • Ribbon cable (attaches the breadboard to raspberry pi
  • Minimum 8 male to male wires or male-female wires
  • 2 Switches
  • 1 Buzzer
  • 1 300 Ohm resistor

Create the Program

IMG_0438.JPG
IMG_0439.JPG

The image attached shows the entire python code that will need to be copied. Change the GPIO pins and code to your benefit.

Set Up the Following Circuit

Reaction Game- Circuit Layout Explanation

Use the video as a guide for what circuits need to be made and where they should or can be placed.

Remember, one circuit for the switch which needs 2 male-female wires, on wire goes to a gpio the other goes to ground. Another circuit is for the LED which requires the LED code, 2 male-female wires and a possible resistor 330 Ohms+ depends on the voltage. The third circuit is for the second switch aka player 2 this circuit is identical to the first switch circuit however makes sure to switch up the gpio pins. Last but not least, the buzzer goes under the same function as LED as it only needs an electrical current to make a noise just something that signals that the game is over (the buzzer has the same circuit layout as an LED, can use resistor depending on voltage)

Create Your Model That You Will Integrate Your Circuit To

IMG_0437 (1).JPG

Collect cardboard or your desired materials to create a box big enough to encompass your breadboard. Find a place for 4 holes on your box, the switches, buzzer, and LED will be sticking out from this holes. In case, you can reinforce the bottom of the switches so when pressure is put on top, it will have some resistance and will not collapse by the normal button pressing force.