Skip to main content
Christophe MARIN
Associate III
March 29, 2018
Solved

LSM303AGR self test always fails

  • March 29, 2018
  • 2 replies
  • 1701 views
Posted on March 29, 2018 at 23:41

Hello, I'm using an LSM303AGR thru I2C, and after a little struggling, everythings looks fine. I can read any of the 6 axes with what seems to be the right values, and the read values react correctly when I tild my board.

So, why am I always getting a failure when executing the self-test procedure given in the datasheet ? I notice that the kind of failure depends on the tilt of the PCB: I sometimes gets a fail with the magnetometer, and other times I gets a fail with the accelerometer: the read values doesn't comply with the expected range...

Any idea, anyone ?

Thanks!

#fail #self-test #lsm303agr
This topic has been closed for replies.
Best answer by David Gillot
Posted on March 30, 2018 at 16:38

Hi Christophe,

Got the same issue and solved it.

The MIN - MAX referred in the specs are not the ones from the readings (this is misleading) but rather from the table [Table 3. Sensor characteristics].

It should ok applying this.

2 replies

David Gillot
David GillotBest answer
Visitor II
March 30, 2018
Posted on March 30, 2018 at 16:38

Hi Christophe,

Got the same issue and solved it.

The MIN - MAX referred in the specs are not the ones from the readings (this is misleading) but rather from the table [Table 3. Sensor characteristics].

It should ok applying this.

Christophe MARIN
Associate III
April 5, 2018
Posted on April 05, 2018 at 13:29

You were right, thanks a lot for your hint.

ST Employee
April 5, 2018
Posted on April 05, 2018 at 12:54

Do you really respect the self-test procedure (averaging, delays) ?

Which values did you get?

Christophe MARIN
Associate III
April 5, 2018
Posted on April 05, 2018 at 13:31

I did not understand properly the datasheet, now everything works fine, thanks!