explanation of failed self-test with MPU-6150 and emd v5.1

By pranavab , 8 February 2013

I ran the self-test from emd v5.1 on my mpu-6150 and it fails.

First there seems to be a bug in the inv_mpu.c code, if AK89xx_SECONDARY is not defined then bit 0x04 will never be set in the result register. the self test code checks for return value 0x7 which cannot occur.

Second my accelerometer fails the self-test. I suspect this is due to the device not being level. Is this a reasonable explanation for a failed accelerometer self-test? Unfortunately in my current "test jig" (aka a piece of cardboard with numerous wires attached to the board) it is not possible to lay the device flat.

phpbb Topic ID
15051