FXOS8700CQR1 calibration fails every second time

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

FXOS8700CQR1 calibration fails every second time

2,132件の閲覧回数
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,894件の閲覧回数
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,894件の閲覧回数
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 件の賞賛
返信