X-OSC IMU mapping
I am trying to work out how to get the most out of the IMU in my x-osc (http://www.x-io.co.uk/products/x-osc/). I have been searching around on the forums here and with some help, I came up with the attached patch. However, I am not sure if this is the most clever way of going about it and if I am missing some basic aspects of gesture detection. So far, I do not use the magnetometer data.
What I want to use the IMU for, is to measure angle and velocity of my right hand, bowing a double bass.
This is something i put together for an x-IMU (using the IMU2OSC app) which might help a bit, for visualizations if nothing else (visualizer code borrowed from Alex Harker's old wiimote helpfile).
As far as gesture detection, that gets more complicated, and you should look at sensor fusion algorithms. The x-IMU has the benefit of having onboard sensor fusion, where as the x-OSC does not.
There's also this bit of code, which I don't remember where I got it from (wasn't Max code, I was just digging through formulas from an Arduino sensor-fusion post on the Arduino forum) but it has the force vector calculation along with some other maths to generate degrees based on the x/y/z input.
Thanks so much Rodrigo, this is really helpful for demystifying it!