Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: Noisy ADC lines

2004-05-11 by David VanHorn

At 12:20 PM 5/11/2004 -0600, Craig Limber wrote:


>David VanHorn wrote:
>
>>>supply of bypass and filter capacitors. A 'scope on the power and ADC
>>>lines doesn't show any noise that it can detect.
>>
>>AC couple, at about 1mV/Div. Your ADC is 10 bit, so that's 1mV per volt on AREF,
>>per ADC count.
>
>Sorry, I am something of a newb when it comes to analog signals and the
>ADC.  Does your statement mean that my scope might not show up
>something that could affect the accuracy of the ADC?

Yes.  The ADC is sampled rather than integrating, so any noise that's on the input during the sample is directly coupled to the ADC.  Also there are internal noise sources in the chip. 
Try putting a pair of 1k resistors as a VCC/2 divider into an input, and see how much noise you see.


>I have one "ground" in my circuit.  The other terminal of the cap
>attached to AREF is electrically connected to pins 11 and 31 on the
>mega32 (both labled as GND), the negative terminal of the voltage
>regulator and the negative connection on my battery. 

Could be better. You're meant to use separated grounds for your analog and digital electronics, and couple them at one point, a point where almost no current is flowing. 


>So, it sounds like it might be a good idea to set the mux, wait a 
>period of time, start the conversion, toss the result, do another right
>after and use that as my actual value.

That's the first order solution. As I said, I remember being able to do it rapidfire, but there was something special about the exact order that everything happened in.. I can dig it up if need be.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.