The Reaction Game - Arduino Project

by 903925 in Circuits > Arduino

718 Views, 3 Favorites, 0 Comments

The Reaction Game - Arduino Project

REACTION GAME.jpg
Eng Final Project - Material List (1).png

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. My inspiration for this final project is from grade 10 computer engineering. I made a similar reaction game however, at that time I had no LCD monitor, different time tracking method, buzzer, and led tracer. In addition, the premise of that reaction game was competitive as there were two players who could compete to see who would press the button first. Remember all of this is customizable even the schematics (in terms of pins/hardware configuration, the code tends to be pretty similar).

Gather the Following Supplies

Eng Final Project - Material List.png
Screen Shot 2021-06-21 at 9.03.08 PM.png

All of these supplies are important and not only attribute to a functional reaction game like the one presented in the title page but the led tracer and LCD monitor depend on such parts. You may find the costs for all the specific components through the following link:

Link: https://docs.google.com/drawings/d/1gNFjccMXgB8mqSamJjh7g89piCwZKZl2_HvUOmjd2Eg/edit?usp=sharing

LED Tracer Schematic and Creation

Screen Shot 2021-06-21 at 8.07.58 PM.png
Screen Shot 2021-06-21 at 8.08.45 PM.png

It's best to get the easier task out of the way right off the bat. With the schematic being provided above, the task at hand is to use a 555 timer in astable mode to pulse the 4017 Johnson decade counter. Since the LED tracer requires no code and simply runs on its own. Only requiring a connection to power and ground through the breadboard from the arduino. I personally used 12 leds through 6 inputs of the Johnson decade counter, however, you can choose more as you see fit. In addition, the capacitor that is part of the led tracer circuit can be manipulated to change the led fade transfer speed. The white wires coming out of the Johnson decade counter in the tinkercad circuit image above are connected to LEDS which is completely customizable and up to the person.

Wiring the LCD Monitor

Screen Shot 2021-06-21 at 8.13.40 PM.png
Screen Shot 2021-06-21 at 8.18.44 PM.png

Attached you will see the schematic for the LCD monitor connected to the appropriate pins. Keep you eyes out for these pins later because they will be important for the coding aspect of this game. In addition, you can connect a potentiometer to the LCD monitors CONTRAST pin but that is completely optional and doesn't effect the code.

Setting Up the Core Reaction Game Parts

Screen Shot 2021-06-21 at 8.22.43 PM.png
Screen Shot 2021-06-21 at 8.24.09 PM.png

There is also a schematic above for the reaction game and third unique circuit connected to the arduino. The components used are simply the two 10k ohm resistors, one 330 ohm resistor, piezo buzzer, and two push buttons. Be cognisant to properly ground and power the buttons, leds, and buzzer whilst connecting them to appropriate pins.

Setting Up the Code

Screen Shot 2021-06-21 at 8.31.31 PM.png
final project run

The arduino code file is attached. This is where you make sure to connect match the pins of all the components to that of the code or more simply adapt the code such that it meets these requirements, otherwise, it will not function. Do not try to copy the code in the image, that is only visually representing this step and is only a fragment of my full code. Once you're done, compare how your reaction game runs compared to mine!

Downloads