2024-04-11 04:57 AM - edited 2024-04-22 01:55 AM
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.
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
2024-04-29 04:49 AM
Does anyone have the same issue? Is it solved in current versions @stmicro ?
Help please!
Regards,
Luis
2024-04-29 05:59 AM - edited 2024-04-29 06:45 AM
@LJimé.1 wrote:I am expecting the following axis reference.
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" ?