Projects / Quiz buzzer system

Quiz buzzer system

Beginner1.5 hGuided buildReviewed

Build it step by step

0 of 6 done
  1. NANO

    Wire the buttons

    Each to its own pin D2 to D9 and to ground. They use the internal pull-ups.

  2. NANO9.4 mA

    Wire the LEDs

    One LED and 220 Ω per team to the pins in the table.

  3. NANO

    Add the buzzer and reset

    Buzzer on A4, host reset button on A5 and ground.

  4. NANO9.5 mA

    Upload and test

    Press any team button. Its LED lights, the buzzer sounds, and the other buttons do nothing.

  5. NANO

    Reset

    Press the host button and try another team.

  6. NANO

    Fit it in a box

    Put the arcade buttons on the lid with long leads to the team tables.

In short

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

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

Wiring

FromToWhy
Team buttons 1 to 8Nano D2 to D9 and GNDPressed gives LOW
Team LEDs 1 to 8Nano D10, D11, D12, D13, A0, A1, A2, A3 through 220 Ω to GNDOne LED per team
Buzzer +Nano A4Sound
Buzzer -Nano GNDReturn
Host reset buttonNano A5 and GNDUnlock 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.

CheckExpected
First pressOnly that team's LED lights
Other presses after itIgnored
Host resetClears and unlocks
Two near-simultaneous pressesOnly 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 →

Ask Lark AI

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.