GetAdc question

Started by Francisco Lobo January 14, 2004
I need to reed a pot from basicx to determin its postion, and i need to
do this as fast as possible, would you recommend attaching a pot to it
and reading its ADC? and if yes, what pot value would you recommend
from 0 kohm to --???? Thanks



Use a pot not less than 1K and preferably not more than 10k. Connect
one end to 0v. Connect the other end to +5 ( NOT more). Connect the
wiper ( the middle connection) to the ADC THROUGH a 470 OHM or 1K
resistor. The series resistor is most important. It will protect yopu
BX24 if you by mistake set the BX24 to an output, but will not have any
effect on the accuracy of meaurements.
The getADC value will vary from 0 to 1023 for 0 to 100% of the pot
position.
neil Francisco Lobo wrote:

> I need to reed a pot from basicx to determin its postion, and i need to
> do this as fast as possible, would you recommend attaching a pot to it
> and reading its ADC? and if yes, what pot value would you recommend
> from 0 kohm to --???? > Thanks >
> >.