I'm making a circuit that uses more inputs and outputs that is available on any picaxe, so to reduce the number of inputs I thought I'd connect a number of switch's in parallel, each with a different resistance and connect them all to one readadc10 input. (see attached pic). While trying to work out the corresponding value for the switch being used I noticed that the readadc10 values did not increase or decrease in relation to the increase of resistance used but seemed to jump around, although this is not a problem now I know what readadc value a particular resister gives, I am interested to know why this is ?
findings are as follows....
resistor readadc10 value
1k 150-160
2.2k 65-75
4.7k 180-185
10k 250-255
22k 60-70
27k 10-20
47k 250-255
56k 150-160
findings are as follows....
resistor readadc10 value
1k 150-160
2.2k 65-75
4.7k 180-185
10k 250-255
22k 60-70
27k 10-20
47k 250-255
56k 150-160
Attachments
-
10.7 KB Views: 30