Skip to main content
Visitor II
August 31, 2021
Solved

‎LSM6DSLTR‎ Threshold event

  • August 31, 2021
  • 1 reply
  • 1359 views

Hi!

I’m using the ‎LSM6DSLTR‎, and really just need to trigger an interrupt whenever the device rotates at a speed greater or equal to a given threshold.

Do I need to set up any FIFO data, or is there a way to only generate an interrupt based on a rotation threshold?

I’ve set the gyro to a full scale selection of +/- 500 dps assuming this would be the threshold setting? (CTRL2_G register)

Curious if anyone else has used this chip to detect a threshold event in a rotation axis?

    This topic has been closed for replies.
    Best answer by TSand.1

    Hi, what if you use the significant motion feature in p53 of the lsm6dsl app note (https://www.st.com/resource/en/application_note/an5040-lsm6dsl-alwayson-3d-accelerometer-and-3d-gyroscope-stmicroelectronics.pdf)? You can configure the SM_THS register with the threshold you want (on 8 bit value from the FS).

    1 reply

    TSand.1Answer
    Visitor II
    September 3, 2021

    Hi, what if you use the significant motion feature in p53 of the lsm6dsl app note (https://www.st.com/resource/en/application_note/an5040-lsm6dsl-alwayson-3d-accelerometer-and-3d-gyroscope-stmicroelectronics.pdf)? You can configure the SM_THS register with the threshold you want (on 8 bit value from the FS).

    BMitchenAuthor
    Visitor II
    September 16, 2021

    Ahh! Thanks for the heads up! It looks like the SM_THS register is used on the accelerometer only. I will comb the app note for a similar function in the gyro end. The app note itself is something I missed when downloading docs for this sensor! So thanks for sharing! :)