Actually there is NO problem....
> now loading a 5V unipolar build of the module:
>
> echo "2" > /proc/driver/adc/frequency
> :adc-0.0.2# cat /dev/adc4
> 1042
> 1041
> 1041
> 1041
> 1041
a reading of 1041 on the 5v unipolar range is the voltage 1.27v
what you get as output is the integer count (unscaled) of the
ADC chip. So you have to scale it. Check the source for adc-logger to see
how it scales the output.
>
> :adc-0.0.2# cat /dev/adc6
> 1004
> 1005
> 1004
> 1005
> 1005
1005 = 1.23
>
> :adc-0.0.2# cat /dev/adc3
> 0
> 0
> 0
> 0
> 0
= 0v :-)
>
> :adc_logger# ./adc_logger -T -f 3 -c 4 -p 500 -r 0 3 5 2
> 10:25:05 1.281 1.235 0.000
> 10:25:06 1.281 1.235 0.000
> 10:25:06 1.282 1.235 0.000
> 10:25:07 1.283 1.234 0.000
which sort of matches.
So all ok
Jim
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/
|