cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DSL anti-aliasing filters do not appear to be implemented despite setting appropriate registers according to the datasheet.

ATzav.1
Associate II

I am using the LSM6DSL for a high frequency vibration measurement involving the accelerometer sensor only (gyroscope is turned off). Output data rates are variable between 400-3.3kHz. A recent frequency sweep experiment (0-6kHz applied on external speaker) with the 3.3kHz ODR in high performance mode, analog anti-aliasing filter bandwidth set at 1.5kHz and digital filter at ODR/2 as per the datasheet. In the resultant spectrogram, the frequency sweep signal aliases after crossing ODR/2, ODR, and 1.5*ODR multiple times over, with no obvious roll-off as would be expected with analog filter cutoff at 1.5kHz and digital filter at 1.66kHz. Forcing the analog filter to 400Hz and digital filter to ODR/4 does not seem to change anything.

These anti-aliasing filters at minimum ODR/2 should be active at all times, but this seems not to be the case. Is it possible that switching off the gyroscope might be causing issues with the enabling of these necessary filters? Similar aliasing has been noted in experiments with human voice harmonics.0693W00000GWNgSQAX.png

1 ACCEPTED SOLUTION

Accepted Solutions
Eleon BORLINI
ST Employee

Hi @HAAA1​ ,

Happy New Year to you too!

The LSM6DSL is actually quite an "old" product, and current state-of-the art devices such as the LSM6DSO(X) embeds an improved analog anti-alias filter in the acquisition chain (see p.28 of LSM6DSO datasheet, not so explicit it has been improved with respect to the elder one, actually).

0693W00000Hr7VAQAZ.png 

-Eleon

View solution in original post

8 REPLIES 8
Eleon BORLINI
ST Employee

HI @ATzav.1​ ,

We are analyzing your results.

Could you share the raw data of this spectrogram?

And are you getting the same results on other samples?

-Eleon

ATzav.1
Associate II

Hello Eleon,

Thanks for looking into this. The short answer is yes, we've noticed this across different devices as well as using firmware/drivers developed separately. I have attached three data sets (not letting me upload all at once so will try separate responses):

  1. data_aliasing.csv corresponds to the spectrogram in the initial post. Sampling rate is 3.3kHz with analog lowpass filter set at 1.5kHz and digital LPF1 set at ODR/2. Frequency sweep is a sine wave from 0-6kHz over 120s. Output is from a mobile speaker for this example.

ATzav.1
Associate II

2 - data_constant_sweeps.csv corresponds to a different device and firmware which uses the LSM6DSL, sampling at 1.6kHz. The device was placed on a speaker and 4 linear frequency sweeps were performed. First a sine wave 0-1.5kHz. Then a triangle wave 0-1.5kHz, then a square wave 0-1.5kHz. A fourth sine sweep was performed 0-3kHz. this is followed by a period of various constant tones either satisfying nyquist criterion or not. Spectrogram here:

0693W00000GWpObQAL.png

ATzav.1
Associate II

3 - data_1-001.csv corresponds to a data set taken on a pediatric subject. You can see in the attached spectrogram that the harmonics of the voice are reflecting off of the nyquist frequency and aliasing down to interfere with the fundamental frequency of speech.0693W00000GWpaSQAT.png 

We have noticed these concerning aliasing signals across several device configurations and separately developed firmware. Hopefully there is a simple reason for this, but we have not been able to sort it out based on documentation alone.

ATzav.1
Associate II

Hello Eleon,

Do you have any updates for this? We have since tried simultaneously sampling two LSM6DSL accelerometers at 6.6kHz and inputting a 10-15kHz sweep. As far as the documentation shows, the highest analog anti-aliasing filter possible should be attenuating frequencies >1.5kHz, however there is clear signal aliasing all the way up to 15kHz as if there is no anti-aliasing filter at all.

0693W00000GYGjYQAX.png 

File attached for upper spectrogram. We would appreciate a response soon as this sensor is deployed in several studies.

Eleon BORLINI
ST Employee

Hi @ATzav.1​ ,

I've submitted the spectrograms and the data to our expert, and they are currently evaluating them.

I'll get back to you as soon as I'll get a feedback from them.

-Eleon

HAAA1
Associate

Hi,

Are there any updates with regards to this @Eleon BORLINI​? If not, are there alternative IMUs we can use which don't have this issue? Thanks in advance and Happy New Year!

Best,

HA

Eleon BORLINI
ST Employee

Hi @HAAA1​ ,

Happy New Year to you too!

The LSM6DSL is actually quite an "old" product, and current state-of-the art devices such as the LSM6DSO(X) embeds an improved analog anti-alias filter in the acquisition chain (see p.28 of LSM6DSO datasheet, not so explicit it has been improved with respect to the elder one, actually).

0693W00000Hr7VAQAZ.png 

-Eleon