8000 High pass filter not working for LSM6DSOX · Issue #62 · adafruit/Adafruit_CircuitPython_LSM6DS · GitHub
[go: up one dir, main page]

Skip to content
High pass filter not working for LSM6DSOX #62
Open
@bobu01

Description

@bobu01

The __init__.py file does not support high-pass filter (HPF) settings for LSM6DSOX sensor. The LSM6DSOX has a different control register configuration compared to other IMU parts supported by this library. This is in register _LSM6DS_CTRL8_XL.

  • The HPF has 8 bandwidth options (ODR/4 to ODR/800)
  • Bit 2 of CTRL8_XL has to be set to 1 to enable HPF (default 0 is for LPF)

I've modified the __init__.py file as a test and it seems to work OK with LSM6DSOX. This is tested using Adafruit STM32F405 Feather and the LSM6DSOX board with a I2C connection. The HPF filters out steady-state (gravity) and passes motions. This file will break the library for other IMU parts. I don't know enough to make this work for all the parts.
init.py.zip

Thanks for this library
Regards,
Bob U.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0