Interactive Retail Display With Timer & Anti-theft Alert
About the project
A specialty beverage brand came to us with a display problem.
Project info
Items used in this project
Hardware components
Story
Their products just sat on shelves with nothing to draw attention, no way to track how long a sample had been sitting out, and no protection against units walking off. They wanted a countertop display that lit up when someone walked by, ran a visible countdown timer for product freshness, and raised an alarm if the unit moved without authorization. We handled everything from the first schematic to shipped prototypes. Here's how it came together.
The Problem in Plain Terms
Retail sampling displays have three jobs: get noticed, stay honest about product age, and not disappear. Off-the-shelf solutions handled maybe one of those. The brand wanted all three in a unit small enough for a checkout counter, running on battery for a full trade show week, and cheap enough to deploy by the hundred. That combination pushed us toward a custom board and firmware rather than assembling modules off a shelf.
Hardware Design
We started with the nRF52840 as the main MCU. It gave us BLE 5.0, plenty of GPIO, and low enough sleep current to hit a two-week standby target on a 2000mAh LiPo. We considered the ESP32 for its Wi-Fi stack, but the display didn't need cloud connectivity on its own — a companion phone app over BLE handled provisioning, and the Wi-Fi cost wasn't worth the power budget.
Motion sensing came from a PIR sensor feeding a comparator on the nRF52's analog input, so the MCU could stay in System ON sleep until something actually moved. We paired that with an LIS3DH accelerometer for the anti-theft function. The accelerometer runs a wake-on-motion interrupt at 10Hz with a threshold tuned to ignore table bumps but catch a lift.
The display itself is a 2.9-inch e-paper module driven over SPI. E-paper made sense here — the countdown updates once a minute, not once a frame, and the panel holds its image at zero power. A small RGB LED ring around the base handles the attention-grabbing flash when motion is detected.
For the anti-theft alert, we added a piezo buzzer driven through a MOSFET and a small boost converter — loud enough at 85dB to get noticed in a store, but not so loud it violates noise ordinances. There's also a reed switch on the base that detects when the unit is lifted off its mounting plate.
PCB layout was done in KiCad. Four layers, with the antenna keepout carefully maintained on the nRF52 module footprint. We ran the first prototype boards through a local fab in three weeks and had them in hand for bring-up.
Firmware and Embedded Software
We built the firmware on Zephyr RTOS. The nRF Connect SDK gave us a maintained BLE stack and power management primitives without us writing a scheduler from scratch. For a battery device with multiple interrupt sources, Zephyr's device driver model and power management hooks saved real time.
The firmware runs three main threads. The display thread owns the e-paper panel and refreshes the countdown once per minute. The sensor thread handles PIR and accelerometer events from a message queue. The BLE thread manages the connection to the companion app, including OTA firmware updates over BLE DFU.
The countdown logic is straightforward but has to survive resets. We store the timer start time in the nRF52's flash-backed settings partition, so a battery swap or watchdog reset doesn't lose the sample age. The user sets the timer duration through the app — 2, 4, or 8 hours — and the display shows remaining time in large digits, with a color-coded bar that shifts from green to amber to red.
The anti-theft logic runs on a state machine. Normal state ignores accelerometer events below threshold. Armed state triggers the buzzer and sends a BLE alert to the app if the accelerometer sees a lift signature or the reed switch opens. Disarming requires a BLE command from an authenticated app connection, so a random person can't just press a button and walk off with it.
One detail that mattered: BLE advertising had to be aggressive enough for fast pairing but not so aggressive it killed battery. We settled on a 500ms advertising interval when unpaired, backing off to 2 seconds after five minutes. Connection interval sits at 100ms during active use.
We wrote a small test harness in Python that talks to the device over a serial-to-BLE bridge, which let our QA team run automated regression on the timer and alarm logic without manually poking at buttons.
Design for Manufacturing
The enclosure is a two-part ABS shell with a clear acrylic front for the e-paper. We did the 3D design in Fusion 360 and printed ten units on our in-house resin printer for field testing before committing to tooling. The reed switch needed a magnet in the mounting plate, which we designed as a separate part so stores could swap plates without replacing the display.
We shipped the first 50 production units to the brand's regional sales team for a three-month pilot. The units ran through trade shows and retail counters with a 4% return rate, mostly from battery connectors that needed a mechanical retention clip. We revised that in the second build.
What We Learned
The biggest lesson was about the accelerometer threshold. Early firmware triggered false alarms when staff set the unit down firmly. We added a 300ms debounce window and required two consecutive motion events above threshold before arming the alarm. That cut false positives to near zero in testing.
The other lesson was power. Our first estimate said two weeks standby, but the e-paper refresh and BLE advertising together pulled more than expected. We moved the display refresh to a timer-driven wake instead of a continuous loop, and the final build hit 16 days on a single charge.
Where This Fits
This kind of project sits right in our wheelhouse — a mix of low-power hardware design, BLE firmware, and a mechanical enclosure that all have to work together. If you're building a retail or industrial display that needs to sense its environment, run a timer, or protect itself, our embedded software services team can take it from concept to shipped prototype. We've done it with nRF52 and ESP32 platforms across consumer and industrial products, and we're comfortable owning the full stack from KiCad schematic to Zephyr application code.
Credits
chanchaldada
Chanchal Dada is an IoT developer at DigitalMonk, focused on building smart embedded systems using Arduino and ESP32. She specializes in IoT-based automation, smart monitoring solutions, and real-world hardware-software integration for practical applications.
Leave your feedback...