This Arduino project tests a player's reaction time. When the LED lights up, the player must press the button as quickly as possible. The reaction time is displayed on the 16x2 LCD screen.
- Upload the code to your Arduino board.
- When "Get Ready..." appears, wait for the LED to light up.
- Press the button as quickly as possible when the LED lights up.
- Your reaction time is displayed on the LCD.
- Arduino Uno
- 16x2 LCD Display (with I2C module)
- LED (any color)
- Push button
- 220-ohm resistor
- Breadboard
- Jumper wires
- Connect the LED:
- LED anode (long leg) to Arduino pin 8 via a 220-ohm resistor
- LED cathode (short leg) to GND
- Connect the push button:
- One leg of the button to Arduino pin 7
- The other leg to GND
- Use the internal pull-up resistor in the code (no external resistor needed)
- Connect the LCD:
- VCC to 5V
- GND to GND
- SDA to A4
- SCL to A5