Something wrong with accleration biases (offsets) mpu6050


I did everything like in a datasheet, but I faced with a problem after setting the bias, I got wrong values:
REG_Ax: 62902 (register value before setting Xoffset)
Ax: -78 (LSB values before setting Xoffset)
Setting (3000) Xoffset
REG_Ax: 366 (register value after setting Xoffset)
Ax: 3390 (LSB values after setting Xoffset)
I made calculations:
2^16 = 65536
62902 + 3000 = 65902 (overflow)
65902 - 65536 = 366 (it's correct)
the problem in the acceleration_values
I should get -78 + 3000 (offset) = 2922
But I got 3390 -> offsetX = 3468
-78 + 3468 (wrong offset) = 3390 (wrong LSB)
What should I change ?

datasheet: DropMeFiles – free one-click file sharing service

have a look at code examples doing the math or any of the MPU6050 library

an example here: GitHub - blinkmaker/Improved-MPU6050-calibration: Improved MPU6050 calibration

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.