FXOS8700CQR1 calibration fails every second time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FXOS8700CQR1 calibration fails every second time

1,192 Views
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

Labels (2)
2 Replies

954 Views
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!

954 Views
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 Kudos