# 8 Player Quizz Buzzer System Using Arduino

7,346

17

11

8 player quiz buzzer can be used in various competition organise in school and colleges to identify the team who has pressed the buzzer first.

Advantage of this quiz buzzer circuit is once a team has press the switch others team may press the switch but only number. displayed on display who press switch first. So with the help of this circuit we can easily identify the contestant who has press the switch first. Let build the circuit using a ARDUINO NANO which read the input from push buttons and displays the corresponding number on a display device. It is a simple circuit with minimum number of components and easily can build. The ARDUINO takes into account the time delay between two buttons and the accurate number is displayed. When one of the buttons is pressed, the buzzer starts ringing and the corresponding number is displayed on the 7 segment display.

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: Components:

1. Arduino Nano or any

2. Push Buttons x8

3. Resistors x8 2.2Kohm

4. Resistor 220ohm 1watt

5. 7 Segment Display

7. Buzzer

8. 2N2222 npn transistor x1

9. Resistor 1kohm

10. 9v Battery & connector

11. Dot matrix PCB

## Step 3: Circuit Diagram:

Here in circuit we are not using A6 & A7 pins of nano because there is no digital circuit present internally in the chip.

## Step 4: Coding:

int x=1;// take int value as 1

void setup()

{ pinMode(A0,INPUT); //analog pins as input

pinMode(A1,INPUT);

pinMode(A2,INPUT);

pinMode(A3,INPUT);

pinMode(A4,INPUT);

pinMode(A5,INPUT);

pinMode(0,INPUT); //digital pins as input

pinMode(1,INPUT);

pinMode(12,OUTPUT); //Digital pins as output for seven seg display

pinMode(11,OUTPUT);

pinMode(10,OUTPUT);

pinMode(9,OUTPUT);

pinMode(8,OUTPUT);

pinMode(7,OUTPUT);

pinMode(6,OUTPUT);

pinMode(3,OUTPUT); // output for buzzer

// set initially display to 0

digitalWrite(12,HIGH); // seg a

digitalWrite(11,HIGH); // seg b

digitalWrite(10,HIGH); // seg c

digitalWrite(9,HIGH); //seg d

digitalWrite(8,HIGH); //seg e

digitalWrite(7,HIGH); // seg f

digitalWrite(6,LOW); //seg g

digitalWrite(3,LOW); // buzzer as off

}

void loop() {

if(a==LOW) //if 1 player press button

{ if(x==1) // check if x is 1 if yes then execute the code

{ digitalWrite(3,HIGH); // buzzer on

digitalWrite(11,HIGH); // pirnt 1

digitalWrite(10,HIGH);

digitalWrite(9,LOW);

digitalWrite(8,LOW);

digitalWrite(7,LOW);

digitalWrite(6,LOW);

digitalWrite(12,LOW);

x++; //increment x

} }

else if(b==LOW) //if player 2 press button

{ if(x==1) // check if x is 1 if yes then execute the code

{ digitalWrite(3,HIGH);// buzzer on

digitalWrite(11,HIGH); // pirnt 2

digitalWrite(12,HIGH);

digitalWrite(9,HIGH);

digitalWrite(8,HIGH);

digitalWrite(7,LOW);

digitalWrite(6,HIGH);

digitalWrite(10,LOW);

x++; } }

else if(c==LOW) //if player 3 press button

{ if(x==1) // check if x is 1 if yes then execute the code

{ digitalWrite(3,HIGH);// buzzer on

digitalWrite(11,HIGH); // pirnt 3

digitalWrite(12,HIGH);

digitalWrite(10,HIGH);

digitalWrite(9,HIGH);

digitalWrite(6,HIGH);

digitalWrite(7,LOW);

digitalWrite(8,LOW);

x++; } }

else if(d==LOW) //if player 4 press button

{ if(x==1) // check if x is 1 if yes then execute the code

{ digitalWrite(3,HIGH);// buzzer on

digitalWrite(11,HIGH); // pirnt 4

digitalWrite(10,HIGH);

digitalWrite(7,HIGH);

digitalWrite(6,HIGH);

digitalWrite(8,LOW);

digitalWrite(9,LOW);

digitalWrite(12,LOW);

x++;

} }

else if(e==LOW) //if player 5 press button

{ if(x==1) // check if x is 1 if yes then execute the code

{ digitalWrite(3,HIGH);// buzzer on

digitalWrite(10,HIGH); // pirnt 5

digitalWrite(12,HIGH);

digitalWrite(9,HIGH);

digitalWrite(7,HIGH);

digitalWrite(6,HIGH);

digitalWrite(11,LOW);

digitalWrite(8,LOW);

x++;

} }

else if(f==LOW) //if player 6 press button

{ if(x==1) // check if x is 1 if yes then execute the code

{ digitalWrite(3,HIGH);// buzzer on

digitalWrite(10,HIGH); // pirnt 6

digitalWrite(12,HIGH);

digitalWrite(9,HIGH);

digitalWrite(8,HIGH);

digitalWrite(7,HIGH);

digitalWrite(6,HIGH);

digitalWrite(11,LOW); x++; } }

else if(g==LOW) //if player 7 press button

{ if(x==1) // check if x is 1 if yes then execute the code

{ digitalWrite(3,HIGH);// buzzer on

digitalWrite(10,HIGH); // pirnt 7

digitalWrite(12,HIGH);

digitalWrite(9,LOW);

digitalWrite(8,LOW);

digitalWrite(7,LOW);

digitalWrite(6,LOW);

digitalWrite(11,HIGH);

x++;

} }

else if(h==LOW) //if player 8 press button

{ if(x==1) // check if x is 1 if yes then execute the code

{ digitalWrite(3,HIGH);// buzzer on

digitalWrite(10,HIGH); // pirnt 8

digitalWrite(12,HIGH);

digitalWrite(9,HIGH);

digitalWrite(8,HIGH);

digitalWrite(7,HIGH);

digitalWrite(6,HIGH);

digitalWrite(11,HIGH);

x++;

} }

}

## Recommendations

• ### Internet of Things Class

21,523 Enrolled

## 11 Discussions

can u post ur video of making this

Hi, what about the 220ohm resistor, where it is get connected? The circuit diagram did not

show this resistor?? Pl help

Instead of seven segment display, is it possible to use LEDs for each participant? What changes in the circuitry will be required for that?

Yes it is possible and very simple to do. You need leds which will be connected to digital pins and make it high when button is pressed.

Instead of seven segment display, is it possible to use LEDs for each participant? What changes in the circuitry will be required for that?

I want to use common anode 7 segment display how to change this program

Just write LOW on the place of HIGH for pint of 7seg display.

Reset by using on board button of arduino nano.

Hello,

I am a beginner. Could u please tell me why you have used a 9v battery here?

Can we do this without using that. Also, in the diagram, the negative edge of the battery is not clear, where it is connected ?

With Regards,

Faaltu_77