Skip to main content
Explorer
August 21, 2024
Question

LIS2DH threshold calculation problem

  • August 21, 2024
  • 1 reply
  • 980 views

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

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 21, 2024

    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

    jokerloveAuthor
    Explorer
    August 22, 2024

    Sorry, my website plugin automatically translated and edited the text