Close
0%
0%

Building an Interactive Retail Display with Timer

We recently finished a project for a client who wanted to move beyond the standard snack wall.

Public Chat
Similar projects worth following
0 followers
Their goal: a smart vending machine for office environments that feels more like a curated retail display than a traditional coin-op box. They needed interactivity, timed access controls, and a way to stop people from walking off with unpaid items.

Here’s how we approached the hardware and firmware for an interactive retail display with a built-in timer and anti-theft alert — specifically tuned for an office vending machine.

---

The Core Problem: Trust & Time in an Office Setting

Offices are different from public spaces. Employees are trusted, but not completely. The client wanted a machine where users could open a door, grab a product, and have the system automatically charge them — but only if the door was closed within a set time window. If someone lingered too long or tried to remove multiple items without payment, the system needed to alert staff immediately.

This is not a standard vending machine logic. It’s a retail display with smart access control.

Hardware Stack: From Sensor to Alert

We started with the nRF52840 as the main MCU. Why? It gives us BLE 5.2 for local connectivity to an office tablet or smartphone app, plus enough GPIOs to handle a door sensor, a timer trigger, and a buzzer. No need for Wi-Fi here — the machine syncs with a local hub via BLE, and the hub talks to the cloud over MQTT.

Key components we used:

- Magnetic reed switch on the door — detects open/close state.

- IR break-beam sensor across the shelf front — detects if a product is removed.

- Piezo buzzer + red LED strip for the anti-theft alert.

- ESP32 as a secondary controller for the touchscreen UI (7-inch TFT, running LVGL).

- LiPo battery + USB-C charger for backup — if power is cut, the system still logs the last event.

The PCB design was done in KiCad. We kept the power rail separate from the sensor lines to avoid noise on the reed switch input. Two-layer board, 1.6mm thickness, ENIG finish — standard for low-volume prototypes.

Why This Works for Office Vending Machines

A smart vending machine for office use needs to balance convenience with control. Employees don’t want to fumble with coins or cards. Managers don’t want to chase down unpaid items.

Our approach gives them:

- No checkout line — open, grab, close. It’s faster than a coffee machine.

- Audible and visual deterrent — the buzzer and red LED are enough to discourage casual theft without being aggressive.

- Remote monitoring — the BLE-to-MQTT bridge means the office admin can see real-time inventory and alerts on a dashboard.

We shipped three prototypes to the client in Bangalore. Each unit included the full PCB assembly, the touchscreen bezel (3D printed in PETG), and a pre-flashed firmware that works out of the box. They had it running in their office break room within 48 hours.

  • About Project

    Himanshu Dadaan hour ago 0 comments

    Firmware Logic: Timer, Alert, and Reset

    The firmware runs on Zephyr RTOS. Here’s the state machine:

    1. Idle state — door closed, screen shows product catalog. No timer running.

    2. Door open — BLE sends a "door open" event to the hub. A 20-second countdown starts on the display. The user can grab one item.

    3. Product removed — the IR beam is broken. The system logs which shelf position was accessed. If the user closes the door within 20 seconds, the transaction is recorded as "pending payment" (handled by the office billing system).

    4. Timer expires — if the door remains open past 20 seconds, the buzzer sounds a 3-second pulse, the LED strip flashes red, and a push notification goes to the office manager’s phone via MQTT.

    5. Anti-theft alert — if the door is closed but the IR beam shows a product was removed without a corresponding payment event (e.g., someone tried to block the sensor), the system triggers a persistent alert. It only clears when a manager taps an NFC tag on the machine.

    The timer is adjustable in firmware — we set 20 seconds as default because that’s enough for one snack grab but too short for someone to try stuffing a bag.

    Build Your Own or Let Us Handle It

    If you’re designing an office vending machine or any interactive retail display that needs a timer and anti-theft system, the architecture is straightforward. Use a BLE-capable MCU, a reed switch, an IR sensor, and a simple state machine. We’re happy to share the KiCad files or Zephyr code snippets — just ask.

    Otherwise, we can design the whole thing for you, from schematic to prototype shipping. Our team handles firmware, PCB layout, 3D enclosure design, and final assembly. We’ve done it for vending, kiosks, and point-of-sale displays across the US, UK, and India.

    Ready to build a smart vending machine for your office? Drop us a line. We’ll send you a quote and a timeline within 48 hours.

View project log

Enjoy this project?

Share

Discussions

Does this project spark your interest?

Become a member to follow this project and never miss any updates