AnsweredAssumed Answered

FXOS8700CQR1 calibration fails every second time

Question asked by Alain Fuchs on Jan 4, 2020
Latest reply on Jan 13, 2020 by Rubens Junior

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

Attachments

Outcomes