what type pot to use for digital input

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.

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.

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.

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