cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DS3 + LIS3MDL calibration

pierre63
Associate II

Hello, 

Our teams is making a proof of concept about dead reckoning using a STM WESU board. 

The goal is to get pedestrian position onyl using ACC/GYR/MAG for a short period of time and small moves.

First results in certains conditions are pretty good. Without any calibration/correction, we manage to get approx 3m absolute error on a 20m walk (30seconds). We expect same error on a 100m walk with good AHRS algorithm parameters and sensor calibration.

We are ready to put more effort on the IMU. 

Do you have calibration source code/protocol for WESU sensor ? 

* LSM6DS3 = acc value + gyro drift

* LIS3MDL = soft and hard iron calibration

We also have other more advanced IMU, but we want to keep it simple and low cost for now and WESU allow us to be pretty fast on POC steps.

Thanks a lot for your future help.

 

Best regards.

 

4 REPLIES 4
Federica Bossi
ST Employee

Hi @pierre63 ,

 

The WeSU board is not a recent board and therefore integrates the sensors that were available when it was designed, being an integrated solution obviously there is no way to update the sensors with more current ones.


The fw package integrates a calibration routine for the magnetometer only, built into the MotionFX package. In the firmware, the reference is the MotionFX_manager_MagCal_run function.

 

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.
pierre63
Associate II

Hello Federica, 

Thanks a lot for your reply.

Yes, this demo board is a bit old, but pretty well integrated and pretty good to make demo.

I checked this function, but there is no the source code available.

Also, for gyroscope or accelerometer, do I only need to apply offset or there is another correction to apply ?

Thanks,

Hi @pierre63 ,

For gyroscope and accelerometer we don't have any example code but yes, you can use the offset when the sensor is in a steady state position.

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.
pierre63
Associate II

Hello Federica, 

Before closing the topic, I have few questions :

* Since our last discussion, we want now to focus on activity detection (walking, carrying, steady, driving) instead of raw data measurement. Could you please recommand which eval board can I use for the project ?

* We need to finish the POC and I need to add memory on the board, but I can identify test point on the PCB (Gerber file don't mention it). Could you send me the Test point location if possible ?

 

Thanks a lot,

 

Regards,