AnsweredAssumed Answered

FXOS8700CQ: Is there any solution for calibrating hard iron offset when the device cannot be rotated very much?

Question asked by Ted Huntington on Feb 5, 2016
Latest reply on Feb 15, 2016 by Ted Huntington

I want to determine the direction of the north pole by using an FXOS8700CQ in an object that cannot easily be rotated in 360 degrees (pitch or roll- but can in yaw). Is there a way to calibrate the device without rotating it in 360 (pitch and roll)? I am thinking that the only solution is to just determine the hard iron offset by rotating the PCB the sensor is on, and just using that as a hard coded offset. I see that the magnetic min and max registers are not writeable, so presumably enabling autocalibration would just instantly overwrite my initial M_OFF offset values. It's frustrating that a simple magnetic compass doesn't have as much of a problem finding north as an electronic device does.