Cultivate Curiosity, Inspire Imagination.

Retail and events

Polling station push-button counter

A 4-digit LED counter with a lit count button, a protected reset and a tally that survives power cuts.

Watch the full video0:17

The challenge

A polling station needed a simple counter that users could interact with one button and read at a glance, and that could never lose its tally.

  • One press, one count: every press adds exactly one, with no double counts.
  • Easy to find: an illuminated count button that stands out.
  • Protected reset: a separate reset button, so the tally can't be cleared by accident.
  • Never lose the count: carry on from the last number after the power is switched off or cut.

Our engineering approach

Compact controller, bright digits

A XIAO ESP32-C6 drives the four 7-segment digits over SPI through a shift-register LED driver, with leading zeros blanked for a clean read-out up to 9999.

Debounced count, long-press reset

Each press is debounced so it registers once. Reset needs the separate button held for 3 seconds, which prevents an accidental clear.

Count saved on every press

The tally is written to flash memory the moment it changes, so a power cut at any point resumes on the last number. Flash wear-levelling keeps this safe well beyond the life of the installation.

12V illuminated count button

The count button was modified with a 12V LED so it is easy to spot and press.

Videos

1

Photos

3

Built with (shop the components)

Full-cycle service: ideation to handover

  • Ideation and feasibility: defining the count and reset behaviour and how the tally is protected.
  • Prototyping: testing the display driver, debouncing and saving on power loss.
  • Final build: firmware, display and button wiring, and the 12 V LED modification.

Need a custom electronics partner in Singapore?

From custom PCBs and firmware to interactive installations and video kiosks, our Singapore team designs, builds and hands over reliable hardware.

Related projects