Why I built it
The Meta Neural Band reads electrical signals from forearm muscles (sEMG) and turns them into a few gestures for Meta’s glasses. I wanted to see how much more the raw signal could do on a Mac: first a full mouse, then live tracking of every finger.
Neural Mouse
A macOS menu bar app that turns the band into a mouse:
- Pointing: forearm motion moves the cursor, using the band’s gyro and orientation, with tremor deadzone, One Euro smoothing, and a freeze-and-rewind on pinch so clicks land where you aimed
- Clicks and scrolling: index tap to click and drag, middle tap to right click, wrist circling to scroll
- Gesture controls: thumb swipes for Mission Control, Escape, and switching desktops; a middle-finger hold for volume and back/forward
- Sticky targets slow the pointer over buttons on slow approaches, and typing pauses the mouse automatically
- Haptic feedback on the band for mode changes and toggles
Rust core for the band link, gesture routing, and mouse output, with a SwiftUI menu bar UI.
band2pose
Live 3D hand pose from the band’s 8 sEMG channels and motion sensors:
- Band link: Bluetooth L2CAP transport on CoreBluetooth, encrypted sessions, and a safety guard that refuses any command outside a known-safe list (no firmware or config writes)
- Recording: a browser page records the band alongside a webcam, with MediaPipe hand landmarks as labels, guided pose prompts, and clock sync between the band, camera, and server
- Labeling: inverse kinematics turns 2D camera landmarks into 20 finger joint angles
- Training: pretrained on Meta’s emg2pose dataset (431 GB) on a home server GPU, then fine-tuned per session on the Mac
- Live: streaming ONNX inference in Rust, served over WebSocket to a three.js hand viewer
Tech stack
- Rust (CoreBluetooth, ONNX Runtime, axum), Swift and SwiftUI
- Python and PyTorch for training, with the same Rust signal processing exposed to Python so training and live use match
- Built on band-core, an open-source reverse engineering of the band’s protocol
