Test your reflexes with this simple but fun Arduino Reaction Timer!
When the LED lights up—hit the button fast. Your reaction time is measured and displayed via the Serial Monitor.
- Arduino Uno
- 1x LED
- 1x 220Ω resistor (for LED)
- 1x Push Button
- Breadboard + Jumper Wires
⚡ No external resistor needed for button – internal pull-up is used.
- Wait for the LED to light up after a random delay.
- Press the button as quickly as possible.
- Your reaction time is calculated in milliseconds.
pinMode(buttonPin, INPUT_PULLUP); // No resistor needed
if (digitalRead(buttonPin) == LOW) {
reactionTime = millis() - startTime;
}
- Arduino IDE
- Tinkercad Circuits (for virtual prototyping)
Made with 💡 by Pushkar