2024-09-09 02:47 AM
we are using LIS2MDL magnetometer calculate yaw (Angle) data. we have integrated the LIS2MDL 3-axis magnetometer along with the ISM330DHCX. However, the resulting yaw data fluctuates, even when the sensors are stationary (without motion).
From our understanding, the output should remain stable when the sensors are at rest, but this is not reflected in the results. We have also tried implementing Kalman and complementary filters, but have yet to achieve the expected outcome.
Our setup is as follows:
- The controller used to communicate with the ISM330DHCX and LIS2MDL is an Arduino UNO.
- The communication protocol used for both sensors is I2C.
We are not sure what might be going wrong while trying to get angle data from the sensors. any inputs would be greatly helpful..