A good cents exit survey
A Penny for Your Thoughts
Get feedback for live events with an exit survey that counts pennies.
To generate useful feedback for live programs at the Fort Worth Museum of Science & History's Noble Planetarium on the campus of Central Texas College in Killeen, Texas, we conceived, designed, and built a custom feedback system centered around pennies. The goals were (1) ease of use for both guests and staff, (2) a fast participation process, and (3) immediate feedback to the presenters and managers.
The Guest Experience
When you attend a planetarium show at the Noble Planetarium, you are handed a penny on the way into the theater. As a part of the show, we ask you to hold out the penny at arm's length and imagine that you are looking through Abraham Lincoln's eye. That approximates the field of view of the Hubble Space Telescope, which is the frame of reference for the remainder of the program.
As you exit the theater, the presenter has rolled out an interesting device that looks sort of like a coin bank (Figure 1). You are invited to return the penny in one of five slots to indicate how much you liked the show. As the pennies are returned, they are tallied by the machine; once everyone has exited, the presenter submits the counts, which are immediately visible on an internal web page.
Hardware and Software
The funnels and case for the penny counter were designed using Blender [1] and printed with a 3D printer [2]. The completed counter is shown in Figure 2.
Under the hood, the Penny Counter's brain is a Raspberry Pi. A two-line by 16-character LCD display shows a menu for the operator; five buttons in a cross pattern provide navigation, and five GPIO pins read infrared sensors at the bottom of each funnel that watch for pennies. The Penny Counter's code is written in Python. It connects to a MySQL database to retrieve show names and post the finished tally after all of the guests have departed.
The Rasp Pi was connected to a generic printed circuit board (PCB) that breaks out the connections from the GPIO header to spring-loaded European-style terminal blocks (Euroblocks), which makes the slot sensors themselves easily interchangeable, as well [3]. The buttons also were wired into spring-loaded Euroblocks. The LCD display was mounted between the buttons and the PCB (Figures 3-6).
Software
The Penny Counter is powered by a Python script that monitors the coin slots and buttons and displays information to the user on a small LCD display. The complete penny.py
script [4] is available at the Linux Magazine website.
The script begins with several import
statements, demonstrating how Python includes libraries with additional functions and methods (Listing 1). The as
keyword at the end of lines 4 and 6 creates an alias for easier reference to these modules. The libraries needed for this project are:
Listing 1
Import Statements
serial
– Allows access to serial ports. In my case, this is a USB device that emulates a serial port.time
– Gets current time information.curses
– Lets me put text at specific terminal coordinates and captures keypresses. I used this library to simulate the Penny Counter before all of the hardware was built.MySQLdb
(mdb
) – Accesses MySQL databases.datetime
– Gets information about the current date and time and supplies functions to perform calculations.RPi.GPIO
(GPIO
) – Accesses the 40-pin GPIO header on the Rasp Pi.os
– Talks to the underlying operating system on which Python is running. In my case, it is Raspbian, but it could also be Windows or other Linux distributions, depending on your hardware and host system.subprocess
– Starts secondary threads for parallel processing.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.
-
DebConf24 to be Held in South Korea
Busan will be the location of the latest DebConf running July 28 through August 4
-
Fedora Unleashes Atomic Desktops
Fedora has combined its solid distribution with rpm-ostree system to make it possible to deliver a new family of Fedora spins, called Fedora Atomic Desktops.
-
Bootloader Vulnerability Affects Nearly All Linux Distributions
The developers of shim have released a version to fix numerous security flaws, including one that could enable remote control execution of malicious code under certain circumstances.