cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Iron Calibration

Anil3
Associate III

Hello Everyone!!!

I am using ISM303DAC in my project E-Compass, I am facing an issue regarding hard iron calibration. in datasheet it is mentioned that we have do hard iron calibration using external processor  and has to store those values in the internal registers of sensor.  here i don't know how to do the hard iron compensation can anyone please let me know the procedure/steps to do the hard iron calibration if any example is available with you please provide me.

Thank you,

regards,

ANIL.

ISM303DAC.PNG

2 REPLIES 2
Federica Bossi
ST Employee

Hi @Anil3 ,

You can use MotionMC library to implement the hard iron compensation.

Here you can find the user manual, let me know if you have any other doubt.

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.

Hi @Federica Bossi,

Thanks for your reply!!!

I have used MotionMC library and got calibrated the compass and also received calibration quality as 3 which is good.

Even though it calibrated, compass value are not constant please have a look to the attached excel sheet.

how can i get some constant values?

 One more thing is that...for every power cycle i need to re-calibrate the sensor which is not possible as this compass is going to be fixed to a particular position. If i stored the previous values and send it to sensor it might be ok but the magnetic effect will change from place to place. any suggestion that how can i overcome to this issue.

Awaiting for your valuable reply.

regards,

ANIL.