I finally found the answer!!!
The designers didn't include the ADC documentation on the manual, and
that was the real problem. The deal is that in 0-5 V range you don't read from
0-4095 (like you would expect, or at least like I would).
The thing is that 0 = 2048 but it's not wrong!, because the scale it's
split, so 0 end's in the middle (next to 4095), like in 3.5V; add noise and
lack of experience in this kind of hardware and you get lot of pain...
I really hope that this help's someone else.
Kevin H.
--- In Matthew Harrell
<> wrote:
>
> > I think that maybe you're right,the only thing is that I keep reading weird
> > numbers, for example if I connect it to 0V I read a 2095. Do I need to wire
> > something in order to read 0 with 0V, or why am I getting this behavior?
>
> I do usually read noise on the line even when nothing is there. It's a
> relatively steady number but mine tends to be about 1000. You can experiment
> with the voltage range values and other settings to adjust that but I did
> always notice some noise. If you're not doing it already then maybe you
> should try using it in differential mode so you're measing the difference
> between the signal lines and not just the total signal
>
> --
> Matthew Harrell
> Bit Twiddlers, Inc.
>
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|