Associate III
February 6, 2024
Solved
LIS2DH12 Acceleration values
- February 6, 2024
- 1 reply
- 2793 views
Hi
The Numbers need to be read as:
0 --> 0x0000 --> 0
350mg --> 0x15e0 --> 5600
1g --> 0x4000 --> 16384
-350mg --> 0xea20 --> 59936 = 2^16 - 5600
-1g --> 0xc000 --> 49152 = 2^16 - 16384
Two complement means that to find the magnitude of a negative number, you need to do two's complement once more, or do 2^16 - number as shown above.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.