Skip to main content
Visitor II
February 3, 2017
Question

6D orientation detection with LIS3DH

  • February 3, 2017
  • 1 reply
  • 2663 views
Posted on February 03, 2017 at 16:40

Hi all,

I'm using a LIS3DH accelerometer and I would like to detect the device orientation in the space. According to the specifications I could do this by means of the 6D orientation detection function, but I'm not getting any result. Can anyone tell me which is the correct setting of the registers of the LIS3DH in order to use the 6D orientation detection function?

Thanks to everybody who can help.

#lis3dh
    This topic has been closed for replies.

    1 reply

    ST Employee
    February 6, 2017
    Posted on February 06, 2017 at 11:32

    Please read Chapter 6 - 6D/4D orientation detection in application note

    https://my.st.com/resource/en/application_note/cd00290365.pdf

    .

    You can see example of 6D orientation settings in following picture:

    0690X00000606FkQAI.png
    Visitor II
    February 7, 2017
    Posted on February 07, 2017 at 08:49

    Thank you for your answer, Miroslav.

    Actually, what I'm trying to do is to detect the movement of a sliding door along a linear path.

    Is this possible by using the LIS3DH or is this beyond the scope of the accelerometer?

    I'm afraid that, dealing with gravitational acceleration, a linear move doesn't generate any change on the three axes, so I can't detect anything. Am I wrong?

    ST Employee
    February 7, 2017
    Posted on February 07, 2017 at 11:14

    Hello,

    in principle it is possible to detect movement of sliding doors. The gravitation acceleration will be in perpendicular axis to the door movement, so it is not a problem.

    I did quick test with automatic doors in our office (stick accelerometer on sliding door record the acceleration), here you can see the results:

    0690X000006067IQAQ.png

    I also did an analysis in excel and added moving average:

    0690X00000605vSQAQ.png

    I can imagine that this could be used for example to make counter of door opening.

    I don't know what exactly is your target, in any case you will have measure acceleration of your doors, because each door can generate different pattern.