Electronic Quiz Buzzer Circuit Diagram using PIC Microcontroller

Summary of Electronic Quiz Buzzer Circuit Diagram using PIC Microcontroller


This article details the design of a quiz buzzer system using a PIC16F877A microcontroller and an 8x8 LED matrix to identify the first responder. The circuit disables other buttons once one is pressed, uses a reset button for the quiz master, and triggers a buzzer for one second upon activation. The system relies on PORTC for input scanning and PORTB/PORTD for LED matrix display, ensuring fair competition in time-oriented quizzes.

Parts used in the Quiz Buzzer System:

  • PIC16F877A Microcontroller
  • LED Matrix 8×8
  • Transistor BC548
  • Resistors (1K, 10Kx7, 220)
  • Capacitors (33pfx2)
  • Crystal Oscillator (12 MHz)
  • Green LED
  • Buzzer 5V (PCB Type)
  • Push Buttons (x7)

Usually high level quiz competitions are very much time-oriented as it becomes significant to determine who has answered first. So here we’ll see how to make a buzzer system that helps to decide the winners.

Actually I designed this circuit of buzzer for quiz program conducted in our area and then I thought it may help someone, so I decided to introduce it here.Electronic Quiz Buzzer Circuit Diagram using PIC Microcontroller

This game show buzzer circuit uses PIC16F877A and a LED matrix to display who has pressed the button first. As soon as someone hits the button first, all other buttons are disabled helping to find the person or group which are ready to answer the question.

Read:LED Interfacing with PIC Microcontroller: Embedded C program with circuit

A reset button provided for the quiz master enables all the switches again for the next question. The led matrix helps to display the number in larger size and it’s designed to blink continuously. Buzzer will be ON for a second when anyone presses the button.

Components required

  1. PIC16F877A
  2. LED matrix 8×8
  3. Transistor BC548
  4. Resistor (1K,10Kx7,220)
  5. Capacitor(33pfx2)
  6. Crystal (12 MHz)
  7. LED Green
  8. Buzzer 5V(PCB Type)
  9. Push button x7

Quiz buzzer schematic working

  • LED matrix is connected through PORTB and PORTD of the microcontroller; cathode row is connected to PORTB and anode row is connected to PORTD.
  • When the power is ON, green LED starts to glow indicating that all switches are ready to press and LED matrix in blanked by sending PORTD=11111111 AND PORTB=00000000.
  • PIC microchip will continually scan the pins of PORTC to check if someone presses the button. It will check the next button only if the present button is not pressed.
  • While programming I had chosen the ‘if’ statement so as to avoid activation of two buttons at the same time by checking each pin from 0 to 7 of PORTC. Probability of this occurring is very low (And I know it’s a little bit unfair if that happens). The use of ‘case’ statements will check all the pins at the same time which may lead to activation of two buttons at a time.

Note:  You may also want to check out if-else statements in C programming.

  • The pins of PORTC is connected to +5V (pull up) through a 10K resistor, so if no one pressed the button PORTC gets 11111111 as default.
  • Pressing of any switch will make a short circuit to ground getting a logic zero at the corresponding pin of PORTC and so the program execution will enter into the sub function (loop) of the particular group number to display on the LED matrix.
  • Here I interfaced LED matrix directly to the PIC micro controller which makes the circuit simpler.
  • When the program execution enters in to any particular sub function(loop), it will enable the buzzer by sending a logic 1 to the 5th pin of PORTC and it send a logic 0 after 1 second (make beep sound of one second long).
  • Then enters in to the matrix loop, which scans each column with delay of 3 milli second.
  • PORTB sends the data corresponding to the column; higher scanning speed will make see the display as a number due to the persistence of vision of the eye.
  • Upon pressing the reset button, program execution will return to the main program.

Electronic Quiz Buzzer Circuit Diagram using PIC Microcontroller schematichQuiz buzzer program

The microcontroller code for this project is available at our Program Center.

I hope you like this quiz buzzer circuit diagram and let me know through the comment box below if you need any further assistance.

 

 

For more detail: Electronic Quiz Buzzer Circuit Diagram using PIC Microcontroller

Quick Solutions to Questions related to Quiz Buzzer System:

  • How does the system determine the winner?
    The system scans PORTC pins and disables all other buttons immediately after detecting the first press to identify the winner.
  • What components are connected to PORTB and PORTD?
    The cathode row of the LED matrix connects to PORTB and the anode row connects to PORTD.
  • Can two buttons be activated at the same time?
    No, the program uses if statements to check pins sequentially, preventing simultaneous activation of two buttons.
  • How long does the buzzer sound when a button is pressed?
    The buzzer turns ON for exactly one second when any switch is pressed.
  • What is the function of the reset button?
    The reset button allows the quiz master to re-enable all switches for the next question.
  • Why is a 10K resistor used with PORTC?
    The 10K resistor acts as a pull-up to +5V, ensuring PORTC reads logic 1 when no button is pressed.
  • How is the number displayed on the LED matrix?
    The matrix scans each column with a 3-millisecond delay to create a visible number through persistence of vision.
  • What indicates that the system is ready for a new question?
    A green LED glows when power is ON to indicate that all switches are ready to be pressed.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter