Skip to main content
Visitor II
April 11, 2024
Question

LIS2DH12 Z-axis value is reported with the opposite sign

  • April 11, 2024
  • 2 replies
  • 1346 views

Hi,

I've been working with the LIS2DH12 sensor for quite some time, primarily utilizing the X and Y axes without any issues. However, for a new project, I also need to incorporate the Z-axis. I've noticed that while the acceleration values reported are accurate, in terms of absolute value, the sign is the opposite than expected.

Is this a bug already known? I haven't found any ticket or post talking about it, and it seems strange to me.

I am expecting the following axis reference.

LJim1_0-1712836405290.png

Every time I put the sensor oriented with the X or Y axis pointing down (totally vertical), I get +1g acceleration, but if do the same with the Z-Axis, I get -1g acceleration.

Could any one help me?

Thank you in advance.

Regards,

Luis

 

    This topic has been closed for replies.

    2 replies

    LJimé.1Author
    Visitor II
    April 29, 2024

    Does anyone have the same issue? Is it solved in current versions @stmicro ? 
    Help please!

    Regards,

    Luis

    Super User
    April 29, 2024

    @LJimé.1 wrote:

    I am expecting the following axis reference.

    LJim1_0-1712836405290.png

     


    What does the datasheet say about this? It will show you how the axes relate to the physical chip.

    You haven't shown how your application relates to that diagram.

    Maybe post a good, clear picture - and show the orientation and the sign you get.

    Maybe you have the chip mounted "upside down" ?

    AndrewNeil_0-1714398286215.png