Skip to main content
Associate
December 10, 2025
Solved

XYZ values from AIS2IH are inconsistent with actual values

  • December 10, 2025
  • 2 replies
  • 1146 views

Hi,

 

Post-development testing of the acceleration sensor reveals that the collected XYZ axis values are inconsistent with the actual physical acceleration values, and one axis continuously outputs a value of 0.

What is the specific corresponding relationship between the sensor’s feedback value and the actual physical value?

I also hope you can provide relevant technical parameters (such as sensitivity, zero offset) and calculation formulas for reference, so as to help us troubleshoot the problem quickly.

thank you!!

Best answer by Andrew Neil

@snack wrote:

We suspect that there is a problem with our connection method.


In that case, you would see it in the raw data.

Have you compared against a known-good implementation - such as an ST evaluation/development board?

eg, STEVAL-MKI218V1

via: https://www.st.com/en/mems-and-sensors/ais2ih.html#tools-software

2 replies

Federica Bossi
Technical Moderator
December 11, 2025

Hi @snack ,

How are you acquiring data? You can use our official examples on Github to implement your code.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
snackAuthor
Associate
December 12, 2025

Thank you for your reply!

We have used the official code, but the measured values still do not match the actual situation. The most intuitive example is that when we apply acceleration on the X-axis, the X-value reads 0 while other axes show values. Could it be that our hardware connection method is incorrect? Could you please help evaluate it? Here is our schematic diagram.

Thank you very much!

snack_1-1765518259223.png

 

Andrew Neil
Super User
December 11, 2025

@snack wrote:
inconsistent with the actual physical acceleration values

How do you measure those actual physical acceleration values ?

 


@snack wrote:

technical parameters (such as sensitivity, zero offset) and calculation formulas for reference


That would all be in the datasheet ?

See also the supporting documentation - on the 'Documentation' tab of the Product Page.

Also MEMS-Studio and C-Driver-MEMS etc on the 'Tools & Software' tab of the Product Page.

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
snackAuthor
Associate
December 12, 2025

Thank you for you reply!

When we apply acceleration to the X-axis, the displayed acceleration value of the X-axis is 0, which is obviously incorrect. We have referred to the data sheet and official code, but still failed to find a solution. Here is our hardware schematic diagram. Could you please help evaluate whether it is reasonable? Thank you very much!

snack_2-1765518939913.png

 

Andrew Neil
Super User
December 12, 2025

Note that everyone can see all replies - there's no need to repeat stuff to each contributor.

You can mention multiple people in one post using '@'

 


@snack wrote:

when we apply acceleration on the X-axis, the X-value reads 0 while other axes show values


Do you see the same when you move in the other axes?

At rest, do you see ±1g in each axis, according to orientation?

 


@snack wrote:

 

We have used the official code


What code, exactly?

Post a minimum but complete example which illustrates the issue.

How to insert source code

 

PS:


@snack wrote:

the displayed acceleration value of the X-axis is 0


Maybe there's something wrong in how you display it, and/or how you process it?

Have you looked at the raw values received direct from the sensor?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.