Smoothing/Filtering Data from Analog to Digital Converter

j777
Messages
148
Reaction score
0
Hi,

I am trying to filter noise out of data gathered from an analog to digital converter. I've looked at averaging techniques but I fear that they cause too much data loss. Can anybody recommend other smoothing/filtering techniques that might result in less data loss and can be done dynamically as the data is read?

See the attachment to get an idea of what the noise looks like (the sharp spikes throughout the graph).


Thanks
 

Attachments

  • graph.jpg
    graph.jpg
    12.8 KB · Views: 533
Mathematics news on Phys.org
Pass it through a digital low-pass filter.

- Warren
 
Ok. If that is the best way I'll post further questions about the low-pass filter in the EE forum. Thanks.
 
It's one way -- but it's not necessarily the easiest. Since your signal is very low-frequency (as compared to Nyquist) you could also just find all the samples which are very different from the immediately preceding sample. In other words, find the difference between sample k and sample k-1, and look for large values. These are places where the derivative of the signal is very high -- but since you know the desired signal is slow, you know these points are errors.

Finally, remove any such samples, and replace them with a linear or cubic spline interpolation of the nearby samples.

- Warren
 
That sounds like a better idea. I actually tried to implement something like what you have explained but failed to figure out an elegant way to determine if a point was in fact an error. Using the derivative of the signal seems like a good approach. I will give it a try...thank you.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top