Go Down

Topic: what type pot to use for digital input (Read 699 times) previous topic - next topic

tr909

Oct 02, 2008, 07:40 pm Last Edit: Oct 02, 2008, 07:41 pm by tr909 Reason: 1
Hi,

When using a pot for digital input, what value should I buy?

I have several random ones that I use now and just adjust my code to give a good range. I'm looking to standardize on a particular type.

Suggestions?

Thanks.

mem

Presumably you mean analog inputs, I would go for 10k, but 20k or 5k would also work ok.

If you have it connected as a voltage divider (one side on 5v with the slider connected to an analog pin and the other sided ground) you shouldn't need to change your code for any of those values.

tr909

Sorry, yes. I meant analog input - basically where i do not care about the electrical properties. I just want to use it to step through values.

mem

10k would be my first choice with 20k a close second

Go Up