Hi
I'm working on a project to have a IMU controlled motor sound effect. Basically when a remote is moved, the sound effect changes. Similar to https://sonory.org/ but controlled by an IMU and generated on the Teensy. I've seen light saber projects that are kind of similar but the ones I've seen just use a full sample triggered by a change in movement rather than adapting the sound to the movement dynamically.
I've been playing with the MPU9250 with limited success. As I understand what I'm after on the input side is to integrate the raw data to get a velocity value. So far I have had pretty unreliable results using the raw accel data, with the velocity very spikey and difficult to use. Most of the development for these IMUs seems to be for UAV use and there is some great output for that but I can't transfer it across for my requirements. The MPU9250 has on board fusion (DMP) that outputs pretty useful data. I tried it using the Sparkfun library and got quaternion values that I converted into gravity values. Unfortunately when I subtracted these from the raw accel values to give real-world acceleration, it didn't give anywhere near 0 when laying on a table, so the velocity rapidly increases even though it's not moving. Not sure how to develop from there.
I'm guessing I'll have to learn more about Kalman filters (which I don't really know much about presently) as everyone seem to say they are the best way to filter out noise and remain responsive. If anyone knows of any examples of using them to get acceleration values, please let me know.
Also, from this input, I'm hoping to create a realistic sound effect. From reading about computer game sound effect I understand it's done using a granular synth, where a number of pre-recorded samples are split into very short sections then sequenced dynamically, depending on the input value. Again if anyone knows of any examples of things like this on the Teensy or similar, it would be great to see.
Thanks
I'm working on a project to have a IMU controlled motor sound effect. Basically when a remote is moved, the sound effect changes. Similar to https://sonory.org/ but controlled by an IMU and generated on the Teensy. I've seen light saber projects that are kind of similar but the ones I've seen just use a full sample triggered by a change in movement rather than adapting the sound to the movement dynamically.
I've been playing with the MPU9250 with limited success. As I understand what I'm after on the input side is to integrate the raw data to get a velocity value. So far I have had pretty unreliable results using the raw accel data, with the velocity very spikey and difficult to use. Most of the development for these IMUs seems to be for UAV use and there is some great output for that but I can't transfer it across for my requirements. The MPU9250 has on board fusion (DMP) that outputs pretty useful data. I tried it using the Sparkfun library and got quaternion values that I converted into gravity values. Unfortunately when I subtracted these from the raw accel values to give real-world acceleration, it didn't give anywhere near 0 when laying on a table, so the velocity rapidly increases even though it's not moving. Not sure how to develop from there.
I'm guessing I'll have to learn more about Kalman filters (which I don't really know much about presently) as everyone seem to say they are the best way to filter out noise and remain responsive. If anyone knows of any examples of using them to get acceleration values, please let me know.
Also, from this input, I'm hoping to create a realistic sound effect. From reading about computer game sound effect I understand it's done using a granular synth, where a number of pre-recorded samples are split into very short sections then sequenced dynamically, depending on the input value. Again if anyone knows of any examples of things like this on the Teensy or similar, it would be great to see.
Thanks