# Something wrong with accleration biases (offsets) mpu6050

**URL:** <https://forum.arduino.cc/t/something-wrong-with-accleration-biases-offsets-mpu6050/1041780>\
**Category:** Sensors\
**Created:** [October 14, 2022, 8:21am UTC](https://forum.arduino.cc/t/something-wrong-with-accleration-biases-offsets-mpu6050/1041780 "2022-10-14T08:21:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vipnoob](https://avatars.discourse-cdn.com/v4/letter/v/5daacb/32.png) [@vipnoob](https://forum.arduino.cc/u/vipnoob)\
**Post date:** [October 14, 2022, 8:21am UTC](https://forum.arduino.cc/t/something-wrong-with-accleration-biases-offsets-mpu6050/1041780/1 "2022-10-14T08:21:16Z")

</div>

![image](https://europe1.discourse-cdn.com/arduino/original/4X/4/c/7/4c709fd5a49e3ca3a2e7d322f131b2c4d919d6dd.png)  
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](https://dropmefiles.com/yntaw)

---

<div class="post-metadata">

**Author:** ![J-M-L](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/j-m-l/32/766245_2.png) [@J-M-L](https://forum.arduino.cc/u/J-M-L)\
**Post date:** [October 14, 2022, 10:00am UTC](https://forum.arduino.cc/t/something-wrong-with-accleration-biases-offsets-mpu6050/1041780/2 "2022-10-14T10:00:30Z")

</div>

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](https://github.com/blinkmaker/Improved-MPU6050-calibration)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [April 12, 2023, 10:00am UTC](https://forum.arduino.cc/t/something-wrong-with-accleration-biases-offsets-mpu6050/1041780/3 "2023-04-12T10:00:48Z")

</div>

Closed on April 12, 2023, 10:00am UTC

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