Jump to content
I2Cdevlib Forums
Sign in to follow this  
mrigendra

Data interpretation from BMA 220

Recommended Posts

I am trying to get the data from an accelerometer , i.e BMA220.  I am getting the data but the data is in 2's complement . So i have to change back the negative values and then there is one sensitivity thing i.e 16LSB/mg( i dunno the significance). 

the thing is i need data in g units but after conversion i am getting data as 125, 2 and like this. I am sure these can't be g values because i am not putting it in 125g situation.

do anybody have any idea how to convert it properly..?What i am doing is below.

 

       sensor sending 2 's complement data'

       check the sign bit

       if negative

         data = (data ^ 0xff)+1   // decomplementing

         (data*1000)/16.           //dividing because of 16LSB/mg.(  16LSB/mg?)

         final g value..               

 

 

still I am wondering data is should be in g values like x m/s2 . but data does not seems like that...

Am I doing things correctly, if not then what is the correct way?

 

 

this is datasheet link..


Share this post


Link to post
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...
Sign in to follow this  

×
×
  • Create New...