Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[General] ADC value, filter out noise

Status
Not open for further replies.

Veketti

Full Member level 3
Full Member level 3
Joined
Sep 14, 2014
Messages
164
Helped
0
Reputation
0
Reaction score
0
Trophy points
16
Activity points
1,700
Dear All,

What might be the professional way of filtering out noise from ADC readout in code? I was thinking of taking say, two samples then averaging them. Then when having two averaged values substract them and see if the remainder is less than measured noise, do not update the value to for example display or wherever you might be using it.

How do you professionals do it?
 

Attached a collection of ap notes on this issue.

Regards, Dana.
 

Attachments

  • AtoD averaging.rar
    1.7 MB · Views: 162

    Veketti

    Points: 2
    Helpful Answer Positive Rating
Hi,

What might be the professional way of filtering out noise from ADC readout in code?
The professional way - in my eyes - is to
* use a proper analog filtering (anti alias filter). Without anti alias filter it´s impossible to filter away the (random) alias frequencies at software side.
* then to anylyze where the residual noise comes from.
Best is to remove the cause not the symptom.

Klaus

added:
Often when I want reliable readings from an ADC: I run an ISR in background to sample ADC continously, filter them and put them in a variable.
When I need the value I just read the variable contents (this is fast: no need for ADConversion to finish) and are very stable.
Once programmed (maybe 10 lines of code) you may forget about the ISR.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top