stumbled on an instagram reel showing a project called triki control and immediately wanted to know how it worked. turns out a polish convenience store chain called zabka gave out these little bottle cap shaped bluetooth remotes as promotional items for a mobile app. someone reverse engineered the bluetooth le protocol, built a c sharp dotnet windows tray app, and turned it into a gesture based desktop controller. shake to control volume, tilt to switch tracks, rotate to launch apps. it sits in the system tray with battery monitoring and auto reconnect. genuinely clever repurposing of what was basically e-waste.
the hardware is dead simple. an esp32 with an mpu6050 six axis accelerometer and gyroscope broadcasting orientation and acceleration data over ble characteristics. battery powered in a small form factor that could be 3d printed. i already have esp32s running for other projects so the hardware side is basically free. the interesting part is the software. a python app that scans for the ble device, subscribes to the imu data stream, runs threshold based gesture detection to classify shakes tilts and rotations, then maps them to system actions using pyautogui or direct win32 api calls.
the gesture detection doesn't need any machine learning. rapid acceleration spikes across multiple axes means shake. sustained gyro reading in one direction means tilt. gyro z axis above threshold means rotation. double spike in z acceleration means double tap. all simple threshold logic that you can tune by tweaking a few numbers. the whole thing from hardware to gesture mapper is maybe a weekend project if you have the parts lying around. i didn't end up building it right then because i had other things to deal with but the concept is filed away for when i need a fun hardware project. there's something deeply satisfying about taking free promotional junk and turning it into genuinely useful desktop hardware.