2026-04-17 3:08 AM - edited 2026-04-24 5:59 AM
Hello,
I have two technical questions regarding the lis3dh accelerometer behavior and interrupt configuration.
1) Are the values I read from the LIS3dh in m/s²????
Exemple :::
Accel [LIS3dh] 28807220458ns (-7.300384, -1.942303, -5.712095)
2) Interrupt logic (INT1_CFG :: XLIE / YLIE / ZLIE)
When I configure an interrupt threshold, for example 5 m/s², and enable the axis event bits in INT1_CFG
XLIE / YLIE / ZLIE
Do the Low events correspond to the following type of comparison?
X < threshold, Y < threshold, Z < threshold
Or do they correspond to:
|X| < threshold, |Y| < threshold, |Z| < threshold
For instance, if I have the following measured values and the interrupt threshold is set to 5 m/s²:
Accel [LIS3DH] 29380340576ns (-18.442175, -19.566559, -19.461311)
Thanks for your response
Solved! Go to Solution.
2026-04-22 6:54 AM
Hi @ASREB ,
1) The LIS3DH outputs acceleration data in units of "g" (gravitational acceleration), not directly in m/s². To convert the raw output to m/s², you must:
The conversion formula is:
Acceleration (m/s²) = Raw_Value * Sensitivity * 9.80665
Where Sensitivity is in g/LSB, as specified in the LIS3DH datasheet for the selected range.
2) The LIS3DH interrupt logic for the XLIE, YLIE, ZLIE bits in the INT1_CFG register is as follows:
This means:
For your example: if the measured value is (-18.442175, -19.566559, -19.461311) and the threshold is set to 5 m/s², the interrupt will NOT be triggered by the LIE bits, because the values are much less than the threshold (in the negative direction), but the logic is for the value being less than the threshold, not the absolute value.
Given your configuration (AOI = 1, XLIE/YLIE/ZLIE = 1, threshold = 5 m/s²), and the measured values (-18.442175, -19.566559, -19.461311):
2026-04-22 6:54 AM
Hi @ASREB ,
1) The LIS3DH outputs acceleration data in units of "g" (gravitational acceleration), not directly in m/s². To convert the raw output to m/s², you must:
The conversion formula is:
Acceleration (m/s²) = Raw_Value * Sensitivity * 9.80665
Where Sensitivity is in g/LSB, as specified in the LIS3DH datasheet for the selected range.
2) The LIS3DH interrupt logic for the XLIE, YLIE, ZLIE bits in the INT1_CFG register is as follows:
This means:
For your example: if the measured value is (-18.442175, -19.566559, -19.461311) and the threshold is set to 5 m/s², the interrupt will NOT be triggered by the LIE bits, because the values are much less than the threshold (in the negative direction), but the logic is for the value being less than the threshold, not the absolute value.
Given your configuration (AOI = 1, XLIE/YLIE/ZLIE = 1, threshold = 5 m/s²), and the measured values (-18.442175, -19.566559, -19.461311):