bcaramiaux / Gestural-Sound-Toolkit

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

Normalised output on Arduino-MPU9150 and different bits #4

Open 12deadpixels opened 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?

12deadpixels commented 8 years ago

Actually I didn't do it on the master, so now the question is a pull request.