rpicopter / ArduinoMotionSensorExample

MPU6050/MPU6500/MPU9150/MPU9250 over I2c for Arduino
117 stars 40 forks source link

Wrong version read? #15

Open EinSoldiatGott opened 8 years ago

EinSoldiatGott commented 8 years ago

Hi, are you sure you're reading the version in this line?

/* Check product revision. */ if (i2c_read(st->hw->addr, st->reg->accel_offs, 6, data))

How can you get the version from the offset?? Also, the accel_offs is = 0x06, but this register doesn't exists in the MPU6050

image

In the Mpu6500 the address is correct 0x77 but why do you read the version from the offset? image

Thanks

gregd72002 commented 8 years ago

Well, having looked into it this is nothing to do with revision but to do with configuration of the accelerometer. The code is partially based on an early version of the official library. Not sure why it is called 'rev'. It might be something that is known to the internal development team only.