First things first, I came up with the idea because of pure boredom. As you can, obviously tell from the title of the project, that it is a reaction "game". You can play it alone or with friends. The only player limit is set from the pins of the Arduino. I kept the design and wiring simple. You can use it on, I think, every Arduino Board. I posted this tiny project, because I couldn't find any similar codes. Correct me in the comments, if I'm wrong.
The Building Process
You just need some wires, a breadbord, three or more pushbuttons and a piezo. You don't even need a Resistor for grounding, because I worked with the internal INPUT_PULLUP of the Arduino.
You have to connect digital pin 3 to ground through a pushbutton. The same with pin 4 and 5.
And last but not least, you connect the piezo to ground and pin 10.
You don't have to do the exact same wiring like me, because in the code, I used integers at the begining to set the pinouts.
Now, you have a fully-functional reaction "game."
Comments