cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DH threshold calculation problem

jokerlove
Associate II

Hi everyone, I want to ask about the LIS12DH threshold calculation (attached with what I think the calculation is), it is clear that when I use 4g as the scale, my calculation results are 2.5g, when I move the sensor can go above this threshold and trigger an interrupt, I only configured the Z-axis, so I am just simulating a falling motion, but when I use 16g as the threshold, I can only configure the Z-axis. I need to adjust to 6, according to the same calculation method, 6*16/255=0.376g, this time I move in the same way, only barely trigger the motion, why? Is it related to the frequency I set? Because when adjusting the threshold, I also adjusted the frequency (100hz->4g, 25hz->16g), thank you very much for someone to answer for me! Oh, I almost forgot. I've turned on the high-pass filter

jokerlove_0-1724235066350.png

image.png

2 REPLIES 2
SofLit
ST Employee

Hello,

Please write in English as it's an international community.

Translation:

Hi everyone, I want to ask about the LIS12DH threshold calculation (attached with what I think the calculation is), obviously when I use 4g as the scale, my calculation result is 2.5g, when I move the sensor can be above this threshold and trigger the interrupt, I only configured the Z axis, so I am just simulating a falling motion, but when I use 16g as the threshold, I need to adjust it to 6, according to the same calculation method, 6*16/255=0.376g, this time I move in the same way, just barely triggering the movement, why? Does this have something to do with the frequency I set? Because when adjusting the threshold, I also adjusted the frequency (100hz->4g, 25hz->16g), thank you very much if someone can answer it for me! Oh, I almost forgot. I have turned on the high pass filter

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Sorry, my website plugin automatically translated and edited the text