FXOS8700CQR1 calibration fails every second time

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

FXOS8700CQR1 calibration fails every second time

2,156 次查看
shop
Contributor I

Dear Community,

I am using the FXOS8700CQR1 sucessfully on Atmel controller.

But every second time, the calibration fails:

First time I can calibrate it.

xmag average= -474

ymag average=-569

zmag average=-626

when I start the second time, calibration fails with

xmag average= -82

ymag average=-88

zmag average=-374

I have reviewed and compared code with examples here:

FXOS8700CQ - Bare metal example project 

Accelerometer and magnetometer FXOS8700CQ example code for MQX4.1.1 

Problem I still cannot get it. The problem is reproducible every second time.

I call both calibration from the attached library.

      FXO.SetAccelOffset();

and

FXO.CalibrateMagn();

thank you and best regads,

Alain

标签 (2)
2 回复数

1,918 次查看
shop
Contributor I

After deeply investigation, I found out, that prior to a new calibration the offset values must be reset to 0 for all axes. Includes Magnetometer and Accelerometer.

Now it is working very good!

1,918 次查看
rubensjunior
Contributor IV

FXOS8700CQR1 calibration fails every second time‌,

Dear Alain Fuchs,

It is correct, and can viewed in https://www.nxp.com/docs/en/data-sheet/FXOS8700CQ.pdf .

Best Regards.

0 项奖励
回复