cancel
Showing results for 
Search instead for 
Did you mean: 

LSM303AGR self test always fails

Christophe MARIN
Associate II
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
1 ACCEPTED SOLUTION

Accepted Solutions
David Gillot
Associate
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.

View solution in original post

4 REPLIES 4
David Gillot
Associate
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.

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

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

Which values did you get?

Posted on April 05, 2018 at 13:29

You were right, thanks a lot for your hint.

Posted on April 05, 2018 at 13:31

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