cancel
Showing results for 
Search instead for 
Did you mean: 

‎LSM6DSLTR‎ Threshold event

BMitchen
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
TSand.1
Associate III

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).

View solution in original post

2 REPLIES 2
TSand.1
Associate III

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).

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! :)