Building game show buzzers with a Raspberry Pi

The Operator's Perspective

To operate the system, the operator presses b on the iPad to enable the buttons. The software locks into a loop until one of the buttons is pressed. Once a button is pressed, the appropriate number appears on the LCD screen. The operator can press r to reset the system, which will clear the screen, and then press b when it's time for the next question. The numbers 1 through 5 are available as a backup to the actual buttons. If a problem arises with the hardware, the buzzer operator can watch contestants hit the buttons and press the appropriate player's number, which manually controls the LCD.

Pitfalls and Future Improvements

The biggest pitfall encountered in the entire project was that the controlling iPad couldn't see the Raspberry Pi over the building's WiFi. I quickly solved this problem by giving the Pi its own WiFi router. Beyond that, the system operated smoothly throughout the event. Nevertheless, I've identified a few changes that I'd like to make.

Before using the buzzers again, I will probably make a few improvements/upgrades to the software. Modifying the getBuzzers function to also watch for a key press would make it possible to disable the buzzers without waiting for an actual button press. A timer here would also give contestants a set amount of time to answer. It has also been requested that the order of player buzz-ins beyond the first also be displayed.

I will probably also update the numbers array so that it holds a full coordinate rather than just an x offset. Then, the team graphics can be plotted anywhere on screen. Converting all of the functions to a buzzer class has also crossed my mind.

Buy this article as PDF

Express-Checkout as PDF

Pages: 8

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Creating a multiplayer quick-reaction game

    The quick-reaction game provides an introduction to building simple circuits with the Raspberry Pi and controlling those circuits with ScratchGPIO, an advanced version of Scratch.

  • A Python interface to a large-format pen plotter

    Getting a large-format plotter operational presented a personal challenge. A Raspberry Pi with a USB-to-serial dongle was the easiest way to start plotting on my home network.

  • Pygame modules for interactive programs

    Pygame modules are particularly suited to programming highly interactive software. We look at the modules dedicated to events, sound, and input by keyboard, mouse, and game controller.

  • Graphical displays with Python and Pygame

    As its name implies, Pygame is a set of Python modules designed to write games. However, many Pygame modules are useful for any number of projects. We introduce you to a few Pygame modules that you can use to create custom graphical displays for your project.

  • Fast clocks, model railroads, LED displays, and more

    Some model train enthusiasts like to run their trains like a real railroad with a dispatcher controlling movements, issuing train orders, and making sure the train stays on schedule. But, time runs differently for these trains, thanks to fast clocks.