# Mpu 6050 180 degrees angle inclination

**URL:** <https://forum.arduino.cc/t/mpu-6050-180-degrees-angle-inclination/1269162>\
**Category:** Programming\
**Created:** [June 7, 2024, 1:29pm UTC](https://forum.arduino.cc/t/mpu-6050-180-degrees-angle-inclination/1269162 "2024-06-07T13:29:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gary02](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@gary02](https://forum.arduino.cc/u/gary02)\
**Post date:** [June 7, 2024, 1:29pm UTC](https://forum.arduino.cc/t/mpu-6050-180-degrees-angle-inclination/1269162/1 "2024-06-07T13:29:08Z")

</div>

Hello all.  
The mpu6050 reads values from -90 to 90 degres. But when it reaches positively the 90 degrees it starts decreseaing positively to 0. I need it to measure from 0 to 150 degrees. Does anyone know a way to do it?  
Thanks u all.

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [June 7, 2024, 3:32pm UTC](https://forum.arduino.cc/t/mpu-6050-180-degrees-angle-inclination/1269162/2 "2024-06-07T15:32:08Z")

</div>

Does the raw value increase or decrease between 90 and 150?

---

<div class="post-metadata">

**Author:** ![gary02](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@gary02](https://forum.arduino.cc/u/gary02)\
**Post date:** [June 7, 2024, 4:19pm UTC](https://forum.arduino.cc/t/mpu-6050-180-degrees-angle-inclination/1269162/3 "2024-06-07T16:19:58Z")

</div>

Between 90 and 150 the angle decreases. It goes like:  
Measured:0, 20,40,60,90,80,60,40,...  
Real angle:0, 20,40,60,90,100,120,140,....  
Both, increasing and decreasing are positive angles

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [June 7, 2024, 4:45pm UTC](https://forum.arduino.cc/t/mpu-6050-180-degrees-angle-inclination/1269162/4 "2024-06-07T16:45:09Z")

</div>

Can you change the MPU orientation so it registers -150 to 90, or does "-91" register as "-89"?

If the orientation can be made to register 0 to 180, does "181" become "179"?

---

<div class="post-metadata">

**Author:** ![gary02](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@gary02](https://forum.arduino.cc/u/gary02)\
**Post date:** [June 10, 2024, 8:56am UTC](https://forum.arduino.cc/t/mpu-6050-180-degrees-angle-inclination/1269162/6 "2024-06-10T08:56:01Z")

</div>

-91 is registed as -89 and i can't make the mpu regist to 180 bc when it gets to 90 starts decresing. I finally decided to redesign the proyect and put the mpu horizontal to meassure from -90 to 90 and add an offset of +90. Thanks for the interest and the responses.

---

<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:** [December 7, 2024, 8:56am UTC](https://forum.arduino.cc/t/mpu-6050-180-degrees-angle-inclination/1269162/7 "2024-12-07T08:56:09Z")

</div>

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