MATLAB Answers

How to remove noise from accelerometer data?

13 views (last 30 days)
KT Jiang
KT Jiang on 2 Aug 2021
Commented: Walter Roberson on 4 Aug 2021
Here is my question, how can I remove data's noise from external environment?
Sorry I'm new with the signal anaysis, after using MPU6050 to get those vibration data, and then using FFT to get the plot, I receive the graph look like the example down below, can anyone please tell me how to explain it? I can't see any significant peaks on this plot, maybe the problem is the sampling frequency is too small? or do I need to provide some filter to remove the noise from the signal?
(By the way, I'm doing FFT with the sampling frequency 0.1703 Hz, and the data length is 30500.)
Preetham Manjunatha
Preetham Manjunatha on 3 Aug 2021
Please see if this can help to filter the acceleration data acceleration to displacement. What is your X and Y values on the plots above?

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 2 Aug 2021
That's not enough information. There are many kinds of noise. If you're going to use Fourier filtering, do you know that the noise is all high frequency? Or in some limited frequency band? Or else do you have some kind of impulsive noise, like shot noise or something, in the time domain (which would not respond to Fourier filtering)?
Do you have a plot of what you think the plot should look like it it were completely noise free?
How about time domain filters like movmean(), sgolayfilt(), medfilt1(), etc.?
Is there anyway youi can collect your data using a Lock-in Amplifier? A lock-in amplifier is a type of amplifier that can extract a signal with a known carrier wave from an extremely noisy environment. Depending on the dynamic reserve of the instrument, signals up to 1 million times smaller than noise components, potentially fairly close by in frequency, can still be reliably detected.
Walter Roberson
Walter Roberson on 4 Aug 2021
The only way to avoid aliasing is to sample at a frequency at least twice as high as the highest frequency vibration.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by