Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Weird values on ADC channel 4

2007-09-12 by Andreas Stemmer

Gustavo Goretkin wrote:
> I do have access to the scope, and the signal looks clean to me. 
> Furthermore, when I switch the two channels and axes, the error is 
> pertinent to the input channel of the ADC, and not the output of the sensor

Did you measure directly at the pin of the atmel or do you have any
"preprocessing" ciruit like an amplifier, filter, buffer etc.?

If your input on the pin of the ADC is fine, only two possiblities
remain. You could have a faulty chip or some problem with your software.
I haven't read the datasheet of the atmega32, but I can't imagine any
misconfiguration that would produce random noise on the input. I once
had a problem with the ADC because I didn't wait long enough after
switching channels, so I got data from the wrong channel sometimes,
which produced strange results of course.

AS

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.