AnsweredAssumed Answered

LIS3MDL axis swap and inversion

Question asked by sauvagnac.guilhem on Jul 23, 2015
Hi,

I'm using LIS3MDL for a while now and I recently encountered a problem on the sensors detected via the self test option.

Some of the sensors I'm using began to give me some strange data. As far as I understand the problem I think that the X and Y axis are swapped and in some occasions, they can be inverted too.

I tried different initializations as well as a memory REBOOT (from CTRL_REG2) of the sensor with the same result.

Can someone tell me how I can reset the sensor to have them work properly again? Can the calibration settings be affected during the sensor lifespan? Can they be reset?
Is there a specific command to swap the axis that I did unintentionally?

Outcomes