2025-12-09 6:04 PM - last edited on 2025-12-11 6:55 AM by Andrew Neil
Hi,
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!!
Solved! Go to Solution.
2025-12-16 2:52 AM
@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
2025-12-11 6:22 AM
2025-12-11 7:01 AM
@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.
2025-12-11 9:45 PM
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!
2025-12-11 9:58 PM - edited 2025-12-11 9:58 PM
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!
2025-12-12 1:52 AM - edited 2025-12-12 1:56 AM
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.
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?
2025-12-14 6:14 PM - edited 2025-12-14 6:23 PM
Do you see the same when you move in the other axes?
At rest, do you see ±1g in each axis, according to orientation?
Hi,
The previous examples were all given by me to help you understand quickly. The actual situation is that the X, Y, and Z axes all have acceleration values, and they are all changing. In a stationary state, the Z-axis has an acceleration of 1g, and the X and Y axes have an acceleration of about 0.3g. When the chip is shaken, the acceleration values do not change much.
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?
This is the original value:
2025-12-15 2:34 AM
@snack wrote:This is the original value:
In the original post you said, "one axis continuously outputs a value of 0" - so is that now fixed?
@snack wrote:In a stationary state, the Z-axis has an acceleration of 1g, and the X and Y axes have an acceleration of about 0.3g.
So what happens if you change the orientation of the device?
Can you get the X axis to show 1g, in the appropriate orientation?
Can you get the Y axis to show 1g, in the appropriate orientation?
2025-12-15 2:41 AM
@Andrew Neil wrote:
@snack wrote:inconsistent with the actual physical acceleration valuesHow do you measure those actual physical acceleration values ?
Note that you can get mobile phone apps which will log the phone's internal accelerometer values.
You could try such an app, with your unit strapped to a phone, to see the actual physical acceleration values...
2025-12-16 1:16 AM
So what happens if you change the orientation of the device?
Can you get the X axis to show 1g, in the appropriate orientation?
Can you get the Y axis to show 1g, in the appropriate orientation?
When the chip is shaken, the acceleration values do not change much.