Skip to main content
added 24 characters in body
Source Link

So I use accelerometer to get acceleration data. However, I have trouble understanding data. I have been reading manual, but it does not help me:

The measured acceleration data are sent to the OUTX_HOUTL_X, OUTX_LOUTH_X .....

The complete acceleration data for the X channel is given by the concatenation OUTX_HOUTL_X & OUTX_LOUTH_X
and is expressed as a 2’s complement number.

Acceleration data are represented as 12-bit numbers (left justified).

I understand the concept of 2s complement and left justified number spread in this case, however, I am unable to understand how to arrive at appropriate acceleration values.

The table with couple examples is also provided:

acc value               OUTL_X           OUTH_X
0 g                      0x00             0x00
343 mg                   0xE0             0x15
1004 mg                  0x00             0x40
-343 mg                  0x20             0xEA
-1004 mg                 0x00             0xC0

It would be really helpful if someone helped to figure out how do manufacturers of accelerometer arrive at these values. This is little endian.

So I use accelerometer to get acceleration data. However, I have trouble understanding data. I have been reading manual, but it does not help me:

The measured acceleration data are sent to the OUTX_H, OUTX_L .....

The complete acceleration data for the X channel is given by the concatenation OUTX_H & OUTX_L
and is expressed as a 2’s complement number.

Acceleration data are represented as 12-bit numbers (left justified).

I understand the concept of 2s complement and left justified number spread in this case, however, I am unable to understand how to arrive at appropriate acceleration values.

The table with couple examples is also provided:

acc value               OUTL_X           OUTH_X
0 g                      0x00             0x00
343 mg                   0xE0             0x15
1004 mg                  0x00             0x40
-343 mg                  0x20             0xEA
-1004 mg                 0x00             0xC0

It would be really helpful if someone helped to figure out how do manufacturers of accelerometer arrive at these values

So I use accelerometer to get acceleration data. However, I have trouble understanding data. I have been reading manual, but it does not help me:

The measured acceleration data are sent to the OUTL_X, OUTH_X .....

The complete acceleration data for the X channel is given by the concatenation OUTL_X & OUTH_X
and is expressed as a 2’s complement number.

Acceleration data are represented as 12-bit numbers (left justified).

I understand the concept of 2s complement and left justified number spread in this case, however, I am unable to understand how to arrive at appropriate acceleration values.

The table with couple examples is also provided:

acc value               OUTL_X           OUTH_X
0 g                      0x00             0x00
343 mg                   0xE0             0x15
1004 mg                  0x00             0x40
-343 mg                  0x20             0xEA
-1004 mg                 0x00             0xC0

It would be really helpful if someone helped to figure out how do manufacturers of accelerometer arrive at these values. This is little endian.

Source Link

Understanding data received from sensor (Twos complement)

So I use accelerometer to get acceleration data. However, I have trouble understanding data. I have been reading manual, but it does not help me:

The measured acceleration data are sent to the OUTX_H, OUTX_L .....

The complete acceleration data for the X channel is given by the concatenation OUTX_H & OUTX_L
and is expressed as a 2’s complement number.

Acceleration data are represented as 12-bit numbers (left justified).

I understand the concept of 2s complement and left justified number spread in this case, however, I am unable to understand how to arrive at appropriate acceleration values.

The table with couple examples is also provided:

acc value               OUTL_X           OUTH_X
0 g                      0x00             0x00
343 mg                   0xE0             0x15
1004 mg                  0x00             0x40
-343 mg                  0x20             0xEA
-1004 mg                 0x00             0xC0

It would be really helpful if someone helped to figure out how do manufacturers of accelerometer arrive at these values