FXOS8700CQ Magnetometer Calibration on Z-axis

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FXOS8700CQ Magnetometer Calibration on Z-axis

952 Views
lukelynch
Contributor III

Hello,

I am using the magnetic threshold function to generate an interrupt when the threshold value is exceeded. My threshold is 1000 counts. At the moment with my magnetometer in its final position is 800-900 counts, Which is too close to my threshold value for my liking. Is there a way to calibrate the z-axis to subtract this 800-900 (new reference or offset)?

I am thinking a one off calibration, take 10 readings and get an average and subtract this from m_offset_z register?

Any help would be greatly appreciated?

Regards,

Luke.

0 Kudos
1 Reply

680 Views
Joshevelle
Senior Contributor I

Hello Luke,

Yes, we have an application note that contains all the detailed information regarding soft and hard iron calibration, it also includes C source code:

http://cache.freescale.com/files/sensors/doc/app_note/AN4246.pdf

We also have a complete library that you can download for free in the following url:

www.freescale.com/sensorfusion

Hope it helps!

Josh

0 Kudos