Inspiration

The Star wars movies

What it does

It takes gyroscopic input from a MPU6050 sensor and then send the data, via an arduino into a c++ application using OpenAL

How I built it

The Angles are taken in from a serial device /dev/USBtty0 using the asio library approximately 50 times per second. The position of the chip is projected onto the surface of a sphere and position and velocity are worked out accordingly

Challenges I ran into

I ran into myriad audio based issues, when i was trying to also involve 3D positions in the model, for example, any issues in the 3D audio vector running away with itself, and causing the output to sound more like an aeroplane or motorcycle

Accomplishments that I'm proud of

It works, use is fun

What I learned

small errors in sensor data can be massively magnified over time

What's next for Lightsaber OpenAL Project

Trying to integrate it with a raspberry pi zero into a small form factor to make a light saber (with LED illuminated blade)

Built With

Share this project:

Updates