Focus Coin – wireless orientation sensor
Phones and computers are the biggest distractions at work. Focus Coin is a physical focus switch: flip the coin to its work side and your computer and phone block the apps and websites you chose; flip it back and they are unblocked.
How it works
- Prototype: an nRF52840 microcontroller (ProMicro) and a BMI160 IMU in a 3D-printed case with colour-coded sides.
- Low power: the nRF52840 spends almost all its time in its deepest sleep (System OFF). The IMU detects motion and stillness on its own in low-power mode and wakes the microcontroller with an interrupt; it reads the orientation, sends it over BLE and goes back to sleep. The last mode is kept in a register that survives sleep.
- Software: Linux and Android apps listen for the coin's BLE advertisements and block the selected apps and websites. The firmware and apps were developed with AI tools; I did the system design, component choice and testing on hardware.
Custom PCB (second revision)
- Design: a 30 mm round board designed in KiCad: a Bluetooth module with an EFR32BG22, a LIS2DW12 accelerometer with built-in orientation detection, a CR2032 cell on the back, and SWD pads for programming.
- Protection and power: a P-MOSFET protects against a reversed battery. The chip sleeps in its deepest mode (EM4) and the accelerometer wakes it when the coin is flipped; estimated sleep current is about 1.2 µA, which means several years on one cell.
- Status: manufactured, assembled and working. I soldered the parts myself with a resin-printed paste stencil and hot air and flashed the firmware over SWD.
- Bring-up: on the first board the accelerometer never answered on I2C, even though it looked fine from outside. A test firmware and an I2C scan showed the pull-ups and the module were fine, so the fault was under the chip: open solder joints under the LGA package. Reworking it with fresh solder and hot air fixed it.







