Skip to content
Josh Wade
All projects

Bose AR volume control

Bose glasses that turn your music down when you turn your head.

  1. The glasses know which way they face

    Bose Frames have motion sensors in their arms, and the glasses send their orientation to the phone over Bluetooth. Each reading comes in as a quaternion, four numbers that together describe which way the glasses are pointing in 3D, and everything our app does starts from those readings.

  2. Remembering forward

    When the app starts, it stores the first reading it gets as forward, and every reading after that is compared against it. I multiply the new quaternion by the conjugate of the stored one and convert the result to angles, which gives how far the head has turned and tilted away from forward. A double tap on the glasses sets forward again to wherever you’re facing.

  3. Turn to look, and the music drops

    If you turn your head more than 40 degrees to either side, the way you would to look at someone talking to you, the app turns the music down so you can hear them. The phone shows Aware while you’re turned away. Face forward again and the volume goes back to where it was, with the phone back on Focused.

  4. Tilt for volume

    The app also reads how far your head leans toward a shoulder. Lean one way and the music gets louder, and lean the other way to bring it back down.

  5. Nod to pause

    A nod pauses the music, and nodding again starts it back up. Along with the turn and the tilt, that lets you run your music hands-free, without touching the phone or saying a word.

At BostonHacks 2019, three of us built an Android app for Bose Frames, the sunglasses with speakers and motion sensors in the arms. It won the Bose Challenge.

My part was the sensor side. The glasses report which way they’re facing as a quaternion, and I wrote the logic that remembers where forward is, compares each new reading against it, and works out how far the head has turned and tilted. It’s the same kind of maths I was using on the satellite team that year.

We kept building on it for a few months after the hackathon.

NextFastform