Build it step by step
0 of 6 doneWire the buttons
Each to its own pin D2 to D9 and to ground. They use the internal pull-ups.
Wire the LEDs
One LED and 220 Ω per team to the pins in the table.
Add the buzzer and reset
Buzzer on A4, host reset button on A5 and ground.
Upload and test
Press any team button. Its LED lights, the buzzer sounds, and the other buttons do nothing.
Reset
Press the host button and try another team.
Fit it in a box
Put the arcade buttons on the lid with long leads to the team tables.
How do you build a quiz buzzer system?
Up to eight teams press buzzers and the first press locks out the rest, with a light and a sound. You need Arduino Nano, Arcade push button 30 mm × 8, LED 5 mm red × 8, Resistor 220 Ω × 8, Active buzzer 5 V, Tactile push button 6 mm, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 6 steps and about 90 minutes.
- Level
- Beginner
- Time
- About 90 min
- Parts
- 8
Parts list
- Development BoardsBuyArduino Nano × 1
- Switches
- SemiconductorsBuyLED 5 mm red × 8
- PassivesBuyResistor 220 Ω × 8
- Motors & ActuatorsBuy
- SwitchesBuy
- PrototypingBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Team buttons 1 to 8 | Nano D2 to D9 and GND | Pressed gives LOW |
| Team LEDs 1 to 8 | Nano D10, D11, D12, D13, A0, A1, A2, A3 through 220 Ω to GND | One LED per team |
| Buzzer + | Nano A4 | Sound |
| Buzzer - | Nano GND | Return |
| Host reset button | Nano A5 and GND | Unlock for the next question |
Code
Arduino IDE, board "Arduino Nano" (processor ATmega328P, or ATmega328P (Old Bootloader) for clones). No libraries. The scan takes a few microseconds, so two presses closer than that cannot be told apart and the lower-numbered team wins. That is far faster than human reaction. The buzzer should be a passive type for tone(); with an active buzzer use digitalWrite.
Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).
const byte BTN[8] = {2, 3, 4, 5, 6, 7, 8, 9};
const byte LED[8] = {10, 11, 12, 13, A0, A1, A2, A3};
const byte BUZZ = A4, RESET = A5;
int winner = -1;
void setup() {
for (byte i = 0; i < 8; i++) { pinMode(BTN[i], INPUT_PULLUP); pinMode(LED[i], OUTPUT); }
pinMode(BUZZ, OUTPUT);
pinMode(RESET, INPUT_PULLUP);
}
void loop() {
if (winner < 0) {
for (byte i = 0; i < 8; i++) { // scan every button in a few microseconds
if (digitalRead(BTN[i]) == LOW) {
winner = i;
digitalWrite(LED[i], HIGH);
tone(BUZZ, 1000, 400);
break;
}
}
} else if (digitalRead(RESET) == LOW) { // host unlocks the next round
for (byte i = 0; i < 8; i++) digitalWrite(LED[i], LOW);
winner = -1;
delay(300);
}
}Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| First press | Only that team's LED lights |
| Other presses after it | Ignored |
| Host reset | Clears and unlocks |
| Two near-simultaneous presses | Only one LED, never two |
If it does not work
Two LEDs light
Impossible with this code, check a wiring short instead.
A team never registers
Its button wire is loose or on the wrong pin.
Buzzer silent
An active buzzer needs digitalWrite instead of tone().
Random wins
A button has no ground return or is floating. Check the common ground.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the quiz buzzer system?
Arduino Nano, Arcade push button 30 mm × 8, LED 5 mm red × 8, Resistor 220 Ω × 8, Active buzzer 5 V, Tactile push button 6 mm, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
How long does the quiz buzzer system take to build?
About 90 minutes for a beginner maker, in 6 steps.
How do I know the quiz buzzer system works?
First press: Only that team's LED lights. Other presses after it: Ignored. Host reset: Clears and unlocks.
Two LEDs light: what should I check?
Impossible with this code, check a wiring short instead.
A team never registers: what should I check?
Its button wire is loose or on the wrong pin.
Buzzer silent: what should I check?
An active buzzer needs digitalWrite instead of tone().
Random wins: what should I check?
A button has no ground return or is floating. Check the common ground.
