2024-08-23 12:33 AM
Hello ST Community,
Test Environment
HW:
SW:
Unico-GUI or MEMS-Studio
Phenomenon
The pitch/roll angle generated by LSM6DSV16X SFLP is heavily influenced by longitudinal / lateral acceleration. E.g., if I mount the MEMS board in a car, the pitch angle can varied more than ±15° while the car is accelerating or decelerating. The problem is quite similar with this post: Solved: Re: Seeking Assistance: Overcoming Linear Accelera... - STMicroelectronics Community I tried adjusting the ODR and FS parameters but it didn't help. Disabling the gyro will make the situation even worse (pitch angle varied more than ±30°).
Analysis
My goal is to measure the pitch / roll angle on a moving vehicle. However, the sensor fusion output of LSM6DSV16X SFLP does not seem to be able to support this kind of dynamic inclinometer application. And I do not know whether and how can I adjust SFLP configurations to make the algorithm rely more on the gyro instead of acc.
Questions
Thanks in advance!
2024-08-29 05:49 AM
Hi @Shuai ,
Using MEMS_Studio in default mode (in the quick setup page), only allows the inclinometer to use accelerometer data only, that in dynamic situations can leads to inaccurate angle estimation.
Instead by selecting the sensor fusion mode, when using the inclinometer application, gyroscope data are also used, in order to obtain a more accurate pitch and roll angle estimation.
2024-08-29 05:56 AM
Hi Federica,
Thanks for your reply.
I understand that I should apply sensor fusion mode in this inclinometer application (especially in dynamic scenarios). The problem is the error is still too large in sensor fusion mode. I suppose the SFLP can be somehow configured for this scenario but I've no idea how to do it.
Shuai
2024-08-30 02:11 AM
Hi @Shuai ,
Are you using the latest version of MEMS Studio? If not, can you please try again with it?
2024-08-30 02:31 AM
Hi Federica,
We are using V1.3.0, which is already the latest version.
Thanks!
Shuai
2024-08-30 02:38 AM
Hi @Shuai ,
That's strange, we did the same test, and no issue found.
Can you send me some pictures of your setup and some logs? Thanks
2024-08-30 04:36 AM
Hi Federica,
We mounted the IMU device on the car front console and drove the car to perform linear acceleration and deceleration movements on a flat road surface (the acceleration is <0.4g according to the accelerator, and the acceleration/deceleration lasts for several seconds).
Tests were conducted separately in default mode and fusion mode. Data logs obtained by MEMS studio and the screen recording with Inclinometer GUI can be found in the attached file.
In fusion mode, the Inclinometer reading shows pitch angle is -5°~-6° (which is because the front console is not horizontal) and roll angle is 0°~-0.5 ° in static state. As can be seen from the video, acceleration begins at approximately 7s and lasts for several seconds, followed by deceleration between 12s~13s. The pitch angle changes a lot (>10°) during acceleration, which is obviously not the fact since the road is flat and the car pitch angle caused by car movement should be quite small.
In default mode, the phenomenon is similar, except that the error is much larger, since gyro is not used and the result is more sensitive to acceleration movements.
I suppose you may need to perform a high enough and long enough acceleration movement (similar with the car acceleration) to reproduce the issue.
Thanks!
Shuai
2024-09-04 02:12 AM
Hi @Shuai ,
Unfortunately, we cannot replicate the problem, everything seems to work correctly but we have no way of testing it in the car under the same conditions as you. If you want such support you can contact our online support system at this link.
2024-09-05 08:03 PM
Hi Federica,
OK. I'll submit a ticket in the system.
Thanks!
Shuai