Reaction Game – Arduino tutorial

reaction game

How fast you react to something is an important and useful skill. It can save you from various dangers and keep you alive if something sudden were to happen. With the help of Arduino, in this project we're going to be testing our reaction time, but without any dangers. ?

List of things you'll need:

  • Arduino Uno
  • Breadboard wires
  • 1x 220 Ω resistor
  • 5x LEDs
  • 1x Pushbutton
  • USB-B cable (or something else to power your Arduino)

Once you've got all of them, connect them like this:

fritzing

Once that's done, connect your Arduino to your PC and upload this sketch below. To play this game, you'll have to push the button when LED in the middle is lit. If you manage to press at the right time, you'll proceed to the next level which is sped up. If you fail, you'll go back to level 1.