Skip to main content
Visitor II
May 21, 2019
Solved

LSM6DSL filtering chain for static gravity measurement

  • May 21, 2019
  • 2 replies
  • 907 views

Hi,

I want to measure a static object and approximate tilt angle with accelerometer only data.

With 303AGR e-compass I can easily configure the filters so a low pass filter can be set up in no time.

With LSM6DSL I am a bit lost on where or what filter I have to setup in order to achieve the same (a extremely low-pass filter, below 1Hz).

Thanks!0690X000008wCxlQAE.jpg

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

    hi David, the first LP filter (not considering the anti-alias) is configurable in CTRL1_XL (10h) reg and CTRL8_XL (17h), especially in the CTRL8_XL (17h) reg:

    0690X000008wGYpQAM.png

    to have the lowest roll-off frequency you have to select the ODR/400 case, meaning value b1011000 (58h) in reg CTRL8_XL (17h). If you set ODR below 416Hz you'll have a LP cutoff frequency < 1Hz.

    Btw, if your application is a quasi-static measure such as an inclinometer application, I suggest you the use of IIS3DHHC that is designed exactly for this purpose. Regards

    2 replies

    ST Employee
    May 22, 2019

    hi David, the first LP filter (not considering the anti-alias) is configurable in CTRL1_XL (10h) reg and CTRL8_XL (17h), especially in the CTRL8_XL (17h) reg:

    0690X000008wGYpQAM.png

    to have the lowest roll-off frequency you have to select the ODR/400 case, meaning value b1011000 (58h) in reg CTRL8_XL (17h). If you set ODR below 416Hz you'll have a LP cutoff frequency < 1Hz.

    Btw, if your application is a quasi-static measure such as an inclinometer application, I suggest you the use of IIS3DHHC that is designed exactly for this purpose. Regards

    David LRAuthor
    Visitor II
    May 23, 2019

    Thanks a lot, testing it!

    Is just one of the operating modes, I wish I could use a inclinometer! :)