Arduino — Two-Player Reaction Battle
Two players, two buttons — fastest finger wins
Arduino
Button
LED
Buzzer
Game
What you will learn
- How to use random() and randomSeed() for unpredictable timing
- How to use millis() to measure reaction time non-blockingly
- How to use multiple INPUT_PULLUP buttons without external pull-down resistors
What you will need
| Component |
|---|
| 1× Arduino Uno R3 |
| 2× LED (red + green) |
| 2× button |
| 2× 220Ω resistor |
| 1× buzzer |
| 1× breadboard |
| 12× jumper wires |
Step by step
Take it further
- Add a 7-segment display that shows the winning player's reaction time in milliseconds.
- Track the BEST time across many rounds in a variable and print it after each game.
- Add a "cheat detection" — if a player presses BEFORE the LED goes off, disqualify the round and flash a yellow LED.
Practise it before you build it
Wire this circuit in the ThinkEdge Learn simulator first. The simulator runs a real Arduino sketch against a modified-nodal-analysis solver, so the LED on screen actually lights when the current is right — no hardware, no burnt components, and a class can try it in a browser.
Related projects
Arduino Nano — Reaction Timer GameHow fast can you press the button? Built in a tiny form factor.
Arduino Nano — 4-Note Mini PianoFour buttons, four notes, one tiny piano that fits in your pocket
Arduino Nano — Parking Sensor4 distance zones — 1 slow low beep far, 2 fast high-pitch beeps close (like a real car reversing buzzer)
Arduino Mega — 10-LED Bar GraphLight up an LED "bar" that grows with the analog input
Arduino — PIR Motion Burglar AlarmDetect motion with the PIR sensor and sound the buzzer
Morse Code TelegraphHow the first internet worked — one click at a time
Guides that use this project
One guide on the site build this project as part of a longer explanation. The guide says why the circuit works; this page says how to wire it.
Where this project sits
It is also part of these lists, which is how a class usually finds it.
Arduino LED projects for beginners36 projects in this list
Arduino push button projects for beginners14 projects in this list
Arduino buzzer and tone projects19 projects in this list
Try the full simulator with your class
103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. One licence covers a whole school.