FXOS8700CQ Magnetometer Calibration on Z-axis

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FXOS8700CQ Magnetometer Calibration on Z-axis

989 次查看
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 项奖励
1 回复

717 次查看
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 项奖励