Skip to content

pushkarsinghh/Reaction-Timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🕹️ Arduino Reaction Timer Game

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.

👉 Simulate it on Tinkercad


🔧 What You’ll Need

  • 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.


🧠 How It Works

  • 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.

📄 Code Preview

pinMode(buttonPin, INPUT_PULLUP); // No resistor needed
if (digitalRead(buttonPin) == LOW) {
  reactionTime = millis() - startTime;
}

📸 Preview

Preview of Arduino Reaction Timer Game


🛠️ Built With

  • Arduino IDE
  • Tinkercad Circuits (for virtual prototyping)

Made with 💡 by Pushkar