Arduino Nano — Reaction Timer Game
How fast can you press the button? Built in a tiny form factor.
Arduino
Nano
millis()
Button
Game
What you will learn
- How random() works and why we need to seed it with randomSeed()
- How to use millis() to measure elapsed time (the proper Arduino way)
- The state machine pattern: IDLE → WAIT → READY → RESULT
What you will need
| Component |
|---|
| 1× Arduino Nano |
| 2× LED (red + green) |
| 1× button |
| 2× 220Ω resistor |
| 1× breadboard |
| 5× jumper wires |
Step by step
Take it further
- Add a buzzer that beeps faster as the reaction time gets shorter (positive feedback).
- Track the BEST time across many rounds and show it as a "high score".
- Add a 3rd yellow LED that turns on if you press TOO EARLY (before the green) — and disqualify the round.
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 — 4-Note Mini PianoFour buttons, four notes, one tiny piano that fits in your pocket
Arduino — Two-Player Reaction BattleTwo players, two buttons — fastest finger wins
Arduino Nano — Parking Sensor4 distance zones — 1 slow low beep far, 2 fast high-pitch beeps close (like a real car reversing buzzer)
Servo — Two Buttons, Two PositionsPress A → go to 0°. Press B → go to 180°.
Arduino — Servo SweepMake a servo motor wave back and forth
Arduino Mega — 10-LED Bar GraphLight up an LED "bar" that grows with the analog input
Guides that use this project
2 guides 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.
Local LLM: Your Own Model, Your Own MachineRun a language model on your own hardware: the RAM maths for a Raspberry Pi, the real token speeds, and how an Arduino can act on what the model says.
AGI: Artificial General Intelligence, PreciselyAGI means a system that can do any cognitive task a human can and transfer what it learns. It does not exist yet, and here is how you would know if it did.
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
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.