Inspiration

The theme was composition, so we created a hardware device that allows the user to synthesise musical notes using their mouse in 3D-space. Instead of creating a redundant device that gets thrown in a corner for years between uses, we decided to combine it with a device utilised by most people daily.

What it does

A Mouse that connects to any Linux Machine as a Mouse HID, on opening of an application the devices IMU is utilised to map 3D orientation to different note pitches (like a theremin).

How we built it

RP2040 Pico microcontroller. potentiometer joystick for the scroll wheel , PAW3360 (attempted) optical sensor, MPU-3060 IMU , 2 buttons.

Initially the team designed the CAD early to ensure 3D print queue priority. Created basic interfaces with the MPU-3060, Joystick and painfully attempted the PAW3360, and validated all required output streams. Used Fable-5.2 with 3 sub-agents (firmware, host and common) to interface with the Linux Mouse HID and to publish IMU data to the desktop over a shared bus. Translated IMU data to initially Cartesian but later quaterion units, and used Opus 5.5 to create a UI that shows IMU position in 3D space and user-tunable Mahony and Madgwick filter parameters. The nose pitch of the mouse dictates the noise pitch (theremin) too. Utilised Opus 5.5 again to create a UI for a Mini Digital Audio Workstation that allows the user to configure the waveform of the output, utilises a mouse (joystick) scroll wheel to skew the waveform in real-time and buttons to switch between saved presets.

Challenges we ran into

The PAW3360 module was extremely difficult to interface, we only achieved one successful SPI read of the device's comparator in around 5-6 hours of trying, unfortunately we decided to focus on other aspects of the project but did still interface what would've been the optical sensor data into the HID so a retrofit-able sensor would be adaptable.

The IMU without the optical sensor to zero the sensor on the table proved a challenge to get working, so we had to develop some algorithms to predict user intent.

Accomplishments that we're proud of

Creating an algorithm to see when the mouse is likely on the table to actively recalibrate the IMU sensor when the user is utilising the mouse so the theremin doesn't drift between uses.

Creating a device that can interface with any Linux machine.

Makes really nice noises.

What we learned

HID Linux interfacing Industry standard IMU filtering techniques (Madgwick Mahony) Multi-agent ai firmware development.

What's next for There-Mouse

Install a working optical sensor to achieve full functionality, map custom gestures to the mouse if lifted off the table surface i.e. switching tabs or reload page.

Competing for Main Competition

Built With

Share this project:

Updates

Submission history