Skip to main content
Visitor II
June 1, 2019
Question

Are there any sample codes for Acceleration detection for Acclerometer + Gyroscope?

  • June 1, 2019
  • 2 replies
  • 553 views

I am using lsm6ds3 Acc+ Gyro. We are trying to detect the acceleration irrespective of Direction of Accelerometer. But we are not getting the results as expected.

    This topic has been closed for replies.

    2 replies

    ST Employee
    June 3, 2019

    Hi, do you mean you are trying to detect the orientation of your device in the space? If so, you can use the 6D device orientation embedded feature as described in the app note p.51. You can evaluate the orientation of the device in space and then measure the acceleration along that direction. Regards.

    0690X000008i7sVQAQ.png

    Explorer
    June 3, 2019

    > But we are not getting the results as expected.

    You neglected to tell us what do you expect.

    > We are trying to detect the acceleration irrespective of Direction of Accelerometer.

    Vector algebra ?