Four-player quiz buzzer
Four buttons and four lights show which player pressed first, with a reset button for the quiz master.
Build it step by step
0 of 8 doneWire four buttons
Each between D2 to D5 and GND.
Wire four LEDs
Each through 220 ohm from D6 to D9 to GND.
Wire the buzzer and reset
Buzzer on D10, reset button on D11 to GND.
Upload the sketch
All LEDs are off.
Press any player button
That LED lights and a note sounds.
Press the other buttons
Nothing changes.
Press reset
All LEDs go off.
Try all four players
Each gets its own light and note.
How do you build a four-player quiz buzzer?
Four buttons and four lights show which player pressed first, with a reset button for the quiz master. You need Arduino Uno R3, Tactile push button 6 mm × 5, LED 5 mm red × 4, Resistor 220 Ω × 4, Passive buzzer, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 8 steps and about 100 minutes.
- Level
- Beginner
- Time
- About 100 min
- Parts
- 7
Parts list
- Development BoardsBuyArduino Uno R3 × 1
- SwitchesBuy
- SemiconductorsBuyLED 5 mm red × 4
- PassivesBuyResistor 220 Ω × 4
- Motors & ActuatorsBuyPassive buzzer × 1
- PrototypingBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Player buttons, one side each | Uno D2, D3, D4, D5 | Other side to GND, internal pull-ups |
| Player LEDs plus through 220 ohm | Uno D6, D7, D8, D9 | One per player, minus to GND |
| Passive buzzer plus and minus | Uno D10 and GND | Different tone per player |
| Reset button | Uno D11 to GND | Quiz master clears the round |
Code
Each player button is wired to ground with the internal pull-up, so pressing it reads LOW. The loop checks the four buttons one after another. The first one found pressed is stored as the winner, its light stays on and the other buttons are ignored until the quiz master presses reset. The loop runs thousands of times a second, so the check order only matters if two people press within a few microseconds, in which case player 1 beats player 4. For a fairer system, read all four pins at once from the port register and pick randomly among the ones that are low. Each player has a different note so you can hear who won without looking. Adding a countdown, a lock-out for pressing before the question ends, or a score count on a seven-segment display makes a fuller game show kit. Use sturdy arcade buttons in a box for a real game night, and number the buttons clearly so players know which light is theirs.
Runs on a virtual Arduino Uno 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 uint8_t BTN[4] = {2, 3, 4, 5};
const uint8_t LED[4] = {6, 7, 8, 9};
const uint8_t BUZ = 10, RESET = 11;
const int TONE_HZ[4] = {523, 659, 784, 1047}; // a different note for each player
int winner = -1; // -1 means the round is open
void setup() {
for (uint8_t i = 0; i < 4; i++) {
pinMode(BTN[i], INPUT_PULLUP);
pinMode(LED[i], OUTPUT);
}
pinMode(RESET, INPUT_PULLUP);
pinMode(BUZ, OUTPUT);
Serial.begin(9600);
}
void startRound() {
winner = -1;
for (uint8_t i = 0; i < 4; i++) digitalWrite(LED[i], LOW);
noTone(BUZ);
}
void loop() {
if (winner < 0) {
// Read every button as fast as possible, the first pressed wins.
for (uint8_t i = 0; i < 4; i++) {
if (digitalRead(BTN[i]) == LOW) {
winner = i;
digitalWrite(LED[i], HIGH);
tone(BUZ, TONE_HZ[i], 400);
Serial.print("Player "); Serial.print(i + 1); Serial.println(" was first");
break;
}
}
} else if (digitalRead(RESET) == LOW) {
startRound();
delay(300); // avoid an accidental double press
}
}Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Press player 3 | LED 3 lights with its note |
| Press player 1 afterwards | No change |
| Press reset | All lights off |
| Press two buttons together | One light only |
| Hold a button through reset | The held button wins the next round, release it first |
If it does not work
A LED lights at power on
A button is stuck or its wire shorts to GND.
Two LEDs light
Check the wiring, only one should ever light.
Reset does nothing
Check the reset button goes to D11 and GND.
Buzzer silent
Use a passive buzzer with tone(), and check its polarity.
Same player always wins ties
Use port reading and a random pick for fairness.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the four-player quiz buzzer?
Arduino Uno R3, Tactile push button 6 mm × 5, LED 5 mm red × 4, Resistor 220 Ω × 4, Passive buzzer, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
How long does the four-player quiz buzzer take to build?
About 100 minutes for a beginner maker, in 8 steps.
How do I know the four-player quiz buzzer works?
Press player 3: LED 3 lights with its note. Press player 1 afterwards: No change. Press reset: All lights off.
A LED lights at power on: what should I check?
A button is stuck or its wire shorts to GND.
Two LEDs light: what should I check?
Check the wiring, only one should ever light.
Reset does nothing: what should I check?
Check the reset button goes to D11 and GND.
Buzzer silent: what should I check?
Use a passive buzzer with tone(), and check its polarity.
