FreeIMU Measurement Units
@jrowberg
It seems like you have some experience with the FreeIMU from Fabio. I recently purchased one, and I have been working on python scripts to translate and handle the different measurements that it's capable of. The trouble I'm having is knowing what the actual units of the outputs are. The MPU-6050 register map datasheet (link) only says that they are 16-bit 2's complement values, and (because of my lack of experience) I don't inherently know what the units are. Any ideas?
Thank you ahead of time!
It's a way to express negative integers. http://en.wikipedia.org/wiki/Two%27s_complement :wink:
According to your link, the range by default is +/-2g (but it goes to 16). So for example, I think that if you read -2^15 (0x8000) it means your sensor is upside down and it measures its maximum acceleration (you would have half of it if it's measuring the earth gravity).
Hi,
If I understand your problem...
The accelerometer data depends on the full-scale range you set (AFS_SEL). The default full-scale range is 2g. The maximum acceleration that the IMU can read is about 2*g or ~20m/s^2. The IMU data could be 16384 for the maximum acceleration read. In other words, each bit corresponds to ~0,00122 m/s^2.
You need to divide per 16384 the acceleration data from the IMU to get the m/s^2 values!
Sorry if I said something wrong...
Luiz Bitencourt
Em 08/05/2014 19:56, morrcahn escreveu:
@jrowberg https://github.com/jrowberg
It seems like you have some experience with the FreeIMU from Fabio. I recently purchased one, and I have been working on python scripts to translate and handle the different measurements that it's capable of. The trouble I'm having is knowing what the actual units of the outputs are. The MPU-6050 register map datasheet (link http://invensense.com/mems/gyro/documents/RM-MPU-6000A.pdf) only says that they are 16-bit 2's complement values, and (because of my lack of experience) I don't inherently know what the units are. Any ideas?
Thank you ahead of time!
— Reply to this email directly or view it on GitHub https://github.com/jrowberg/i2cdevlib/issues/75.