“Here is a fun reaction timer game using a few of the parts from an Elegoo Uno Super Starter Kit.
This is a fun reaction timer game using a 4 digit 7-segment LED display an Arduino and a button. Challenge yourself or your friends to beat the LOWEST reaction time. Can you go even lower?!
The game starts off by flashing the high score (which is initially set to 9999). The idea is to get the LOWEST score possible by beating the previous high (low) score. Press the button to start the game. ‘8888’ which flash a few times, along with a few tones from the piezo, to indicate a game is about to start. Then the display goes blank and the game is about to start. Now the Arduino will wait a random time between 2 and 10 seconds. Then, the counter starts counting up in milliseconds accompanied by a rising tone on the piezo/speaker. Your job is to press the button as soon as you see the digits counting up as quickly as you can. If you are lucky you will beat the high score and your new score now becomes the new high score. If you fail, you get the two fail notes and the game goes back to the start.
I got this idea after acquiring an Elegoo Uno Super Starter Kit and was trying to come up with some ideas of what to do with some of the parts. The kit comes with a 5641AS common cathode 4-digit 7-segment LED display, plus the usual buttons, resistors, etc.
You will need an Arduino Uno or Nano, a breadboard, jumper wires, the 5641AS (or any other 4-digit display) 4-digiti 7-segment LED Display, a button, 7 x 220ohm resistors and a piezo sounder or speaker.”