Aarit Gupta
All projects

Proximity-Sensing Heart Keychains

A pair of heart-shaped keychains that find each other over Bluetooth and light up as they get closer, with no phone or internet.

Scroll to take one apart

What they do

Each keychain works on its own. Apart, each one glows in its own colour. When the pair come near each other they recognize one another over Bluetooth Low Energy, and their colours blend together more the closer they get. No phone, app, or internet connection is involved.

Scroll or tap the model and it lights up.

The hardware

Inside the case is a custom circuit board I designed in KiCad around an nRF52832 module, a chip that is both the microcontroller and the Bluetooth radio. Around it are a BMI270 motion sensor, six chained WS2812B-2020 LEDs, a 3.3 V regulator, a load switch that cuts power to the LEDs, and a USB-C charger for a 200 mAh LiPo battery.

The 3D-printed heart case and its acrylic window were modelled in CAD around the board. The whole thing is 63 × 64 × 13.5 mm.

The firmware

The firmware filters the radio’s signal strength (RSSI) to judge distance smoothly, wakes the keychain when it moves, warns when the battery is low, and accepts wireless firmware updates.

Making the battery last

The radio only wakes periodically, the chip sleeps in between, and power to the LEDs is switched off when they aren’t lit. Together that gives an estimated six to eight weeks on one charge.

From schematic to keyring

KiCad schematic of the keychain: nRF52832 module, BMI270 sensor, LED chain, regulator, load switch and battery charger
The schematic: radio module, motion sensor, LED chain, and the power path from USB-C to the battery.
Heart-shaped PCB layout in KiCad with routed traces
The board layout, cut to the heart outline so it fills the case.
3D render of the assembled heart-shaped circuit board
KiCad’s 3D render, used to check part heights against the case.
CAD model of the heart case seen from above
The case from above.
Section view of the case CAD showing the board, battery and acrylic layers
A section through the case: acrylic window, board, and battery stacked inside.
Side view of the case CAD
Side view. The case is 13.5 mm thick.
A bare white heart-shaped circuit board with empty pads, labelled VBAT, GND and a DEBUG header
A bare board back from the fab, before any parts are soldered on.
The two finished heart keychains side by side, six pink-purple LEDs glowing through each frosted window
The finished pair side by side, glowing through their frosted windows.
When
October 2026
Built with
KiCad, nRF52832, Bluetooth Low Energy, CAD
Main parts
nRF52832 (MDBT42Q), BMI270, 6 × WS2812B-2020, TPS7A0233, TPS22917, BQ21040
Size
63 × 64 × 13.5 mm, 200 mAh LiPo
Fields
Electronics, Software