Design a One-Button Exhibit: Busy States, Repeat Presses and LED Feedback
A large illuminated button makes an inviting control for an exhibit, classroom demonstration or information kiosk. The difficult part is often what happens after someone presses it. Does the demonstration restart, ignore further presses, queue another run or report a problem?
Designing those behaviours explicitly makes a one-button interface easier to understand and test. This guide uses a harmless audiovisual demonstration as its example; it does not describe a safety control for machinery.
The PMD Way 40 mm button collection includes an illuminated stainless steel button with a wiring harness. The listing offers momentary and self-latching mechanisms, several ring colours and different voltage variants. Choose the momentary mechanism when the software needs a separate event for each press.
Define the visitor's action in one sentence
For example: “Press once to play the demonstration; wait until it finishes before starting again.” That sentence implies at least two operating states: ready and running. It also answers an important question about presses received during playback.
For this example, additional presses while running are ignored rather than queued. A visitor should not accidentally schedule several repeats by holding the button. If the intended experience needs cancellation or restart, define that as a different interaction and explain it on the panel.
Keep the instruction visible beside the control. A large button is easy to notice, but size alone does not establish accessibility for every visitor. Check reach, viewing angle, required force and comprehension with the people who will use the installation.
Keep the switch and illumination circuits separate
The button's contacts report a mechanical action. Its illumination reports whatever the designer connects it to. A glowing ring does not inherently prove that a controller is ready or that a requested action succeeded.
Obtain the terminal diagram and electrical specifications for the supplied variant before wiring the harness. Do not infer functions from wire colours or assume the catalogue voltage selection is the contact rating. Confirm the illumination's supply requirements, polarity and any internal current limiting separately.
Use a documented low-voltage variant for the prototype. Connect the switch to a suitable controller input with a defined pull-up or pull-down arrangement. Drive the illumination through an appropriate interface if its voltage or current exceeds the controller pin's capability. The listing also includes higher-voltage variants; those are not interchangeable with a low-voltage input circuit.
Convert a contact into one press event
Mechanical contacts may change state several times during one operation. Debounce the raw input, then detect the transition into the pressed state. Avoid launching the demonstration on every pass through the main loop while the input remains active.
Arduino's state-change detection example demonstrates comparing the current and previous states. In an interactive exhibit, keep debounce handling and application state separate so a clean press event has a clear meaning.
Also decide what happens when power returns while the button is held. A useful choice for this example is to wait for a stable release before accepting the next press. That avoids treating a held or jammed button as an automatic request to begin immediately after a restart.
Write a small state table
| State | Button event | Next action |
|---|---|---|
| Starting | Any press | Ignore until checks finish and the button is released |
| Ready | New debounced press | Issue one start request and enter running |
| Running | Another press | Ignore; do not queue another run |
| Running | Confirmed completion | Return to ready after release |
| Running | Failure or expired deadline | Enter a clearly reported fault state |
| Fault | Visitor press | Remain unavailable until the defined recovery occurs |
This table is an application design example, not a property of the switch. It is especially useful when a separate player, computer or network service performs the actual demonstration. Sending a command and receiving confirmation are different events.
Make the ring's meaning honest
Define illumination from the application state rather than wiring it to the switch contact and hoping visitors infer the result. For example, a steady ring can mean ready, while a gentle change in illumination can indicate that the demonstration is running.
Do not rely on colour alone to explain a fault. Add a readable message, an understandable sound cue where appropriate, or a staffed recovery process. The selected button has one chosen ring colour; do not assume it offers independently controllable RGB channels.
If the controller cannot confirm that playback started, show that uncertainty rather than displaying success. A command acknowledgement may only mean that a player received the request. Use an actual playback or completion signal when the application requires confirmation of the result.
Keep the interface responsive during the demonstration
Long blocking waits can prevent the controller from noticing completion signals or updating feedback. Arduino's Blink Without Delay example shows how elapsed-time checks allow other work to continue between LED updates.
Apply that approach to the exhibit's state machine. Check inputs, process responses and update indicators regularly. Give external operations a defined deadline. If the response never arrives, the controller should report a fault rather than remain apparently busy forever.
Record diagnostic information separately from the visitor display: accepted press count, start requests, completion messages and timeouts. Those records help distinguish a contact problem from an unresponsive player without burdening visitors with technical details.
Test human behaviour as well as clean presses
- Press briefly, press slowly and hold the button through completion.
- Press repeatedly while the demonstration is running.
- Restart the controller with the button held.
- Disconnect the player or simulate a missing completion response.
- Restore operation and confirm that recovery does not replay an old request.
- Check the label and ring in the installed lighting and viewing position.
Inspect panel dimensions, mounting depth, harness clearance and sealing instructions before machining the enclosure. The 40 mm name does not replace a dimensioned cut-out drawing. Likewise, the catalogue's IP65 label does not establish the protection of an entire enclosure or exposed rear wiring.
A successful one-button exhibit has a simple visible interaction backed by deliberate internal rules. Visitors know when to press and what happened; the builder can explain exactly how the system behaves when a press, a response or a restart arrives at an inconvenient moment.