cancel
Showing results for 
Search instead for 
Did you mean: 

LIS2MDL 3-axis magnetometer to calculate Yaw

ssk2024
Associate

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..

1 REPLY 1
Federica Bossi
ST Employee

Hi @ssk2024 ,

Can you share a plot to see the values you got?

Thanks!

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.