2020-01-09 04:03 PM
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.
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
Solved! Go to Solution.
2020-01-09 08:02 PM
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
2020-01-09 08:02 PM
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
2020-01-10 12:03 PM
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
2020-08-26 01:59 AM
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!
2020-08-26 02:03 AM
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!