FXOS8700CQ Magnetometer Calibration on Z-axis

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FXOS8700CQ Magnetometer Calibration on Z-axis

1,037件の閲覧回数
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 返信

765件の閲覧回数
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 件の賞賛
返信