Straighten up your workday | Posture Monitoring using AirPods Motion Sensors
Posture Monitoring Powered by AirPods Motion Sensors
Straighten up your workday - real-time feedback to build better work habits.
We spend hours working — often hunched, slouched, or craning our necks without realizing it. WorkWell is an iOS app that uses AirPods motion sensors to monitor your head posture in real-time. Get real-time feedback, detailed session reports, and gentle nudges to hold your head high and wear confidence daily.
WorkWell continuously tracks your head’s position by leveraging the motion sensors embedded in AirPods Pro. The app detects when your head is tilted too far down or back, signaling poor posture, and provides immediate visual feedback.
Tracking head orientation involves accurately determining the 3D rotation of the head relative to the world. This process uses data from multiple sensors and applies advanced mathematical techniques to produce stable, precise orientation measurements.
Your AirPods Pro are packed with:
Combining these sensors gives you a 9-axis Inertial Measurement Unit (IMU), which supplies rich, precise motion data.
Raw data from these sensors is noisy and prone to errors if used independently:
To resolve this, the data is combined using sensor fusion algorithms implemented by Apple’s CoreMotion framework, including:
Internally, the orientation is represented using quaternions — four-dimensional vectors that encode rotation without suffering from issues like gimbal lock that can affect Euler angles. Quaternions enable smooth interpolation and stable rotation tracking.
These quaternions are then converted to Euler angles for interpretation:
WorkWell primarily monitors the pitch angle to determine if the user’s head is tilted forward beyond a defined threshold (e.g., -22°), indicating poor posture.
CMHeadphoneMotionManager
for accessing AirPods Pro motion data.Clone the repo and open the Xcode project. Build and run on a compatible device paired with AirPods.
MIT License