Skip to main content
Visitor II
September 16, 2018
Solved

LSM9DS0 eliminate LA_TyOff

  • September 16, 2018
  • 6 replies
  • 1386 views

In the datasheet, it says that LA_TyOff can be eliminated by enabling built-in high pass filter, but for accelerometer, the high pass filter can't be disabled (I assume that the normal mode means high pass filter is enabled, in CTRL_REG7_XM). I had also enabled AFDS, which I think is to use high pass filter mode data, but there are still about 40mg LA_TyOff error in it. So what does it mean that it can be eliminated?

    This topic has been closed for replies.
    Best answer by PTsen

    OK, the problem has been resolved.

    First of all, sorry for such a late response, I've been bogged down with other things recently so I need to put aside this problem until now.

    In the beginning, I though that this was the first time I open high pass filter. However, since LSM9DS0 will not reset to default value every time it is turned on, i.e. the high pass filter option is opened all the time. Instead of rewriting the register to bypass high pass filter, I just comment that line of code, which results in no obvious change since it is opened all the time.

    I can clearly see the difference between before and after high pass filter is enabled, the high pass filter literally filters out every thing. Problem resolved.

    Last but no least, thanks for your help!

    6 replies

    ST Employee
    September 17, 2018

    High pass filter can be enabled by the AFDS bit in the CTRL_REG7_XM register.

    The high pass filter will remove any DC component in the output values.

    Can you share your X, Y,Z value with and without high pass filter?

    PTsenAuthor
    Visitor II
    September 18, 2018

    Hi, thanks for your quick response, but sadly I was busy with other things yesterday.

    The attached file is the data w/ and w/out high pass filter, and it looks identically the same IMO.

    Thank you very much

    ST Employee
    September 19, 2018

    Yes, obviously the high pass filter is not activated.

    Can you please share with me your complete sensor configuration?

    PTsenAuthor
    Visitor II
    September 21, 2018

    Hi, basically, the configuration regarding CTRL_REG7_XM register is:

    AHPM1 AHPM0 AFDS 0(1) 0(1) MLP MD1 MD0

    0 0 1 0 0 0 1 0

    Which is literally default value except AFDS bit

    ST Employee
    September 24, 2018

    Could you please try co configure the CTRL_REG7_XM to 0x20?

    Are you able to read back the configuration?

    PTsenAuthorAnswer
    Visitor II
    November 3, 2018

    OK, the problem has been resolved.

    First of all, sorry for such a late response, I've been bogged down with other things recently so I need to put aside this problem until now.

    In the beginning, I though that this was the first time I open high pass filter. However, since LSM9DS0 will not reset to default value every time it is turned on, i.e. the high pass filter option is opened all the time. Instead of rewriting the register to bypass high pass filter, I just comment that line of code, which results in no obvious change since it is opened all the time.

    I can clearly see the difference between before and after high pass filter is enabled, the high pass filter literally filters out every thing. Problem resolved.

    Last but no least, thanks for your help!