2024-02-09 06:59 AM - edited 2024-02-09 07:27 AM
Dear community,
I am trying to detect metalic objects (train axles) that are passing above two LIS3MDL sensors.
For this purpose I am using LIS3MDL breakout boards from Pololu
What I notice is that often, what seems randomly, the signal becomes noisy during the data gathering process.
To provide an example, I have plotted the sensor's X-axis output in a graph.
In the left half of the graph you can see that the signal is normal, and in the right half you can see the signal become noisy.
Nothing really seems to change in the external environment at the moment that this transition occurs.
We see this in multiple datasets.
Has such behavior been seen before with this sensor? If so, what could be the cause of this and can it be fixed?
I will give a few details about my setup below:
Here are some environmental details:
I have tried to replicate this issue in the lab tests. But soo far without success.
Any assistance in this matter is highly appreciated.
Best regards,
Dirk
2024-02-14 07:25 AM
Anyone has any idea ?
2024-03-01 05:08 AM
Hi @dburgt98 ,
Welcome to ST Community!
It seems that that type of noise is given by variable current near the sensor, also in external objects, this causes a magnetic vibration that is read by the sensor, or metallic or magnetic parts that vibrate. You can try to apply to the data a low pass filter function in the firmware to have a better signal data of sensor.
2024-03-03 09:51 AM
Dear @Federica Bossi
Thank you very much for the feedback. I highly appreciate it.
Your observation makes sense as there might indeed be some magnetic vibrations caused by the train. I will look into the low pass filter.
Do you know if there is a logical explanation why this variable current only occurs after a handful of axles that pass the sensor, and not already for the first axles? I imagine that these could also cause the same magnetic vibrations.
For example, in one dataset there is no noise for the first 9 axles, but then it starts and remains for the remaining 100+ axles. The noise does not really stop once it has started. This observation is consistent for most datasets that I gathered with the sensor, except for the exact start moment of the noise, which is sometimes a bit earlier or later.
I also tried rebooting the sensor every 10s using the REBOOT bit in the CTRL2 register, and then re-write the appropriate configuration to registers, but this does not seem to prevent or resolve the noise.
Best regards,
Dirk