cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert 14-bit acceleration data from AIS1120SX and AIS2120SX to units of G

JScot.1
Associate

Hello all!

I'm attempting to convert the 14-bit acceleration data from the AIS1120SX/AIS2120SX. I'm successfully retrieving the data from the part with an acceleration command, and I'm able to view the value returned, but I don't understand how to convert the value to G.

There is a table (Table 39 - Acceleration data example from section 5.1.1) in the documentation which contains examples of conversions, but the examples aren't helping me.

0690X00000BvosLQAR.png

Are some number of the bits fractional? If so, which bits? How is it that a value of 120.4 Gs is represented by b'01111111111111? The 0.015 G value almost makes sense if D0 (the least significant bit) represents 2^-6, but that is the only case in which that makes sense; it doesn't make sense for the other values.

Thanks for any help you can provide!

JD Scott

1 ACCEPTED SOLUTION

Accepted Solutions
AK A.1
Associate II

Hi,

Full range of the accelerometer is -120g to +120g. Hence, sensitivity is calculated as

240 / (2^14) = 0.0146 g/LSB

So, to compute the acceleration value in g, multiply the decimal value read from the register by the above computed sensitivity.

Ex: In the 1st case in the table above, the decimal value is 8191.

Acceleration in g = 8191 * 0.0146 = 119.6 g which is almost near to the value computed in the table.

Hope this helps.

Akshay

View solution in original post

4 REPLIES 4
AK A.1
Associate II

Hi,

Full range of the accelerometer is -120g to +120g. Hence, sensitivity is calculated as

240 / (2^14) = 0.0146 g/LSB

So, to compute the acceleration value in g, multiply the decimal value read from the register by the above computed sensitivity.

Ex: In the 1st case in the table above, the decimal value is 8191.

Acceleration in g = 8191 * 0.0146 = 119.6 g which is almost near to the value computed in the table.

Hope this helps.

Akshay

Akshay,

Thanks for your help, I very much appreciate it. I was able to convert the values using the info you gave me.

JD Scott

DDale.1
Associate II

Hi,

About AIS2120SX chip, can you tell me how to initialize it?

That is, the acceleration from being charged up to being able to read the X and Y axes.

What is the entire SPI operation?

It's very difficult to use this chip.

I tried to initialize the chip, but failed.

Thanks for any help you can provide!

DDale.1
Associate II

Hi,

About AIS2120SX chip, can you tell me how to initialize it?

That is, the acceleration from being charged up to being able to read the X and Y axes.

What is the entire SPI operation?

It's very difficult to use this chip.

I tried to initialize the chip, but failed.

Thanks for any help you can provide!