Projects / Four-player quiz buzzer

Four-player quiz buzzer

Four buttons and four lights show which player pressed first, with a reset button for the quiz master.

Beginner1.7 hGuided buildReviewed

Build it step by step

0 of 8 done
  1. UNO

    Wire four buttons

    Each between D2 to D5 and GND.

  2. UNO13.1 mA

    Wire four LEDs

    Each through 220 ohm from D6 to D9 to GND.

  3. UNO

    Wire the buzzer and reset

    Buzzer on D10, reset button on D11 to GND.

  4. UNO13.2 mA

    Upload the sketch

    All LEDs are off.

  5. UNO13.2 mA

    Press any player button

    That LED lights and a note sounds.

  6. UNO

    Press the other buttons

    Nothing changes.

  7. UNO13.2 mA

    Press reset

    All LEDs go off.

  8. UNO

    Try all four players

    Each gets its own light and note.

In short

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

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Player buttons, one side eachUno D2, D3, D4, D5Other side to GND, internal pull-ups
Player LEDs plus through 220 ohmUno D6, D7, D8, D9One per player, minus to GND
Passive buzzer plus and minusUno D10 and GNDDifferent tone per player
Reset buttonUno D11 to GNDQuiz 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.

CheckExpected
Press player 3LED 3 lights with its note
Press player 1 afterwardsNo change
Press resetAll lights off
Press two buttons togetherOne light only
Hold a button through resetThe 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 →

Ask Lark AI

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.