Jump to content
I2Cdevlib Forums

How to calculate angles from the data obtained from MPU6050


Recommended Posts

Hello Friends,

 

                       i'm writing my own code for extracting data from MPU6050.

i got the accelerometer values(16 bit High and Low)(XH XL, YH YL,ZH ZL)(Decimal equalents of binary) as shown below

 

MPU6050 X,Y,Z values 

 
Accelero XH values=64
Accelero XL values=24
 
Accelero YH values=255
Accelero YL values=180
 
Accelero ZH values=0
Accelero ZL values=64
 
How can i find the x,y,z angle from these values ??
in the data sheet i saw that these are 2's complement value? why they are 2's complement values but not the exact binary?
 
Thanks in advance. 
 
 
 
 
 
 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...