Quiz Control Panel - updated! see bottom of page

The Quiz Control Panel is a standard setup of four contestant buttons, each with an output to provide an indication of who pressed first. The program locks out the other three buttons and provides an output for a 1s buzzer. The Question Master then has to press his reset button to normalise the system. A GUI with different team colours is included if a monitor is used. When the Pi is headless (no monitor) there is a button to gracefully shutdown the Raspberry Pi so it can be unplugged without fear of corrupting the SD card. The program requires to be started at power on, this is done by editing the file:

sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart

and adding the line,

@/usr/bin/python /home/pi/????.py (the path & program and the path & file name of the script)

The Quiz unit comprises of four button boxes each with a wireless remote control key fob built in and the master box with the relay receiver board, Raspberry Pi, output relay board, lamps and buzzer. There is also an off button and a system ready LED to indicate the Raspberry pi has booted successfully.

RPi Quiz Script (just copy & past into IDLE 2.7).

RPi Quiz Panel Schematic.

Quiz GUI Quiz Hardware
Complete quiz system.

Demonstration of the prototype Quiz Panel - Buttons and Lamp boxes will be replaced with something more suitable..


One thing that annoyed me about this project was the program always ran with the CPU usage at 100% so I fixed that with version 1.2 and I also took the opportunity to write the code to suit a Raspberry Pi Zero (or any with the 40 pin header) - see below:

RPi Zero Quiz Script. (just copy & past into IDLE 2.7).

RPi Zero Quiz Panel Schematic.


I have expanded the unit for six teams and built a small hat for the Pi zero to simplify the connections of the buttons and lamps.

Quiz GUI

Quiz Hardware
Pi Zero, HAT and Relay Board.

RPi Zero Quiz Script for six contestants. (just copy & past into IDLE 2.7).

RPi Zero Quiz Panel Schematic for six contestants.