bcaramiaux / Gestural-Sound-Toolkit

Gestural Sound Toolkit in Max/MSP for easy and fast Gesture-to-Sound scenario prototyping
49 stars 11 forks source link

Normalised output with multi-bit streams (MPU-9150) and adding Wax9 #5

Closed 12deadpixels closed 8 years ago

12deadpixels commented 8 years ago

The datasheet of the Sparkfun here https://cdn.sparkfun.com/datasheets/Sensors/IMU/MPU-9150-Datasheet.pdf MPU9150 reports that the accelerometer and gyroscope data output is 16 bits while the magnetometer outputs at 13 bits.

I have updated the arduino-mpu9150.maxpat (by mistake directly in the master branch) for normalising the output between -1 and 1. I have split the stream in two: 16bits for ACC&GYRO and 13bits for the MAG and unified the lists with zl.union.

I am not sure the energy is computed correctly after my procedure as the little variation in the magnetometers will generate lower values of energy. Perhaps is better to use only ACC+GYRO, 6 dimensions rather than 9.

Is this view correct?

I have also added src, bin, and max object for the Wax9. The ranges for each sensor is different (accelerometer, gyroscope, magnetometer). Can you have a look at the wax9 maxpat if you have time? I am not sure I am going to use it for this project, the data looks completely different and I don't understand it.

Thanks

12deadpixels commented 8 years ago

hey, why did you delete the branch? I was working on it rather than on my fork...