cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2DH12 Z-axis value is reported with the opposite sign

LJimé.1
Associate II

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

 

2 REPLIES 2
LJimé.1
Associate II

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

Regards,

Luis

Andrew Neil
Evangelist III

@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