LIS3MDL - Problem with readings after calibration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-02 8:20 AM - edited ‎2024-07-02 8:21 AM
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.
- Labels:
-
E-Compasses
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-03 12:24 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-03 1:53 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-03 2:29 AM
How to run such a self-test?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-03 2:54 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-03 3:17 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-04 12:26 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-04 12:52 AM - edited ‎2024-07-04 12:52 AM
> 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-12 5:55 AM
Hi @TBart.1
Did you had time to try the self-tests ?
