Mpu 6050 180 degrees angle inclination

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.

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

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

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"?

1 Like

-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.

1 Like

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