cancel
Showing results for 
Search instead for 
Did you mean: 

LIS3MDL - Problem with readings after calibration.

TBart.1
Associate II

We embed lis3mdl on our board that we produce, most of them are perfect, unfortunately there are single pieces where the magnetic north is wrong, the heading is wrong by up to 60-100 degrees. What could be the reason ?

 

Regards.

 

8 REPLIES 8
Peter BENSCH
ST Employee

Presumably the MEMS had or have mechanical stress that leads to this deviation. Are you sure that you have taken sufficient account of the information in Technical Notes TN0018 and TN1507?

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
SMarie
Senior

Did you run some self-tests ?

We observed something similar a few months ago, and running the self-tests showed us that these components were damaged therefore needed to be replaced.

How to run such a self-test?

You can find the driver and example there:

https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lis3mdl_STdC

You'll also need to check the the datasheet (link in the readme).

 

Don't forget to check the units !

 

Hope that will help.

 

Sulian

TBart.1
Associate II

Ok, I'll do a self-test, but is it even possible that every 10-20th this magnetometer would be factory-damaged and not my fault? While following all recommendations from the manuals?

Factory-damaged, I don't know, but from transport or welding perhaps, not particularly your fault. Personally, we once had a batch of 10 with 9 defective, we change them and the new ones worked perfectly.

So that's not impossible.

I'd be interested in hearing your self-tests results.

Peter BENSCH
ST Employee

is it even possible that every 10-20th this magnetometer would be factory-damaged?

Of course, a faulty device ex factory is also possible, but the error rates are in the ppm range.

So, it is practically impossible to get that much faulty devices, as every single MEMS is thoroughly tested at the factory. If there are failures of this magnitude, it is always due to incorrect handling or insufficient care.

Regards
/Peter

 

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
SMarie
Senior

Hi @TBart.1 
Did you had time to try the self-tests ?