MPU6000 Gyro Values Randomly high offset

By sammanna , 13 February 2014

I am writing driver code that is largely based off existing drivers for the MPU6000. Everything appears to be working correctly; however, every power-on, I get a somewhat random LARGE offset for some axis.

Some samples, format X Y Z

GYRO: 920.348267 -0.122070 0.427246
GYRO: 920.409302 -0.183105 0.488281
GYRO: 920.287231 -0.061035 0.488281
GYRO: 920.348267 -0.061035 0.427246
GYRO: 920.348267 -0.122070 0.427246
GYRO: 920.287231 -0.183105 0.427246

Rotating the device, it appears to still correctly measure each axis, it's as if I just have some bits stuck. These are the converted values using +/- 2000 DPS range. I tried printing the raw values, and they appear to have the same stuck offsets. Usually only 1-2 of the axis have an abnormal offset value. The offset values are discretely always these values: 1000, 920, 500, -1000, 422. This is of course after the conversion from raw to dps.

I can't figure this out. Power cycling the device is the only thing that changes the offset values.


UPDATE: I got it figured out. I searched the forum and found someone suggesting you need to wait 100ms after powering on the sensor before using it. I suspected this was the problem, and it was. Hopefully this helps someone else who has this problem.

Matt

phpbb Topic ID
15936