2021-08-12 11:57 PM
My register configuration are
(0x10, 0x60)
( 0x16,0x70)
(0x11, 0x60)
(0x12,0x40)
I am getting values like (0, 5, 7, 65534, 65535, 567) for the all the axis , while my sensor are in rest.
Solved! Go to Solution.
2021-08-18 01:13 AM
Hi, do 0, 5, 7, 65534, 65535, 567 values refer to (roll, pitch, yaw; roll, pitch, yaw)?
If you convert them in two's complement, they should all be close to 0 (65534, 65535 are FFFE and FFFF), except the 567 that is a bit high, but since the ZRL ±3 dps and sensitivity is 4.375 mdps/LSB, 567 means 2.48dps, in line with the declared 3dps typ in the datasheet.
You can find the conversion formula on Github drivers:
float_t lsm6dsl_from_fs125dps_to_mdps(int16_t lsb)
{
return ((float_t)lsb * 4.375f);
}
https://www.st.com/resource/en/datasheet/lsm6dsl.pdf
Tom
2021-08-18 01:13 AM
Hi, do 0, 5, 7, 65534, 65535, 567 values refer to (roll, pitch, yaw; roll, pitch, yaw)?
If you convert them in two's complement, they should all be close to 0 (65534, 65535 are FFFE and FFFF), except the 567 that is a bit high, but since the ZRL ±3 dps and sensitivity is 4.375 mdps/LSB, 567 means 2.48dps, in line with the declared 3dps typ in the datasheet.
You can find the conversion formula on Github drivers:
float_t lsm6dsl_from_fs125dps_to_mdps(int16_t lsb)
{
return ((float_t)lsb * 4.375f);
}
https://www.st.com/resource/en/datasheet/lsm6dsl.pdf
Tom