Hello Arduino forum people! I want to plug a rotary switch into my Arduino to change menu functions, and I have picked out a rotary switch with 8 positions. The circuit needs to work off a 5v supply voltage, so at my arduino pin end I'm going to have a voltage divider of 10k R1 and 20k R1, which should scale the signal down so that my Teensy 3.2 can read it correctly.
So the next question I have is what resistance to add on the rotary outputs to give me enough of a difference in voltage to be read by the arduino while being strong enough to actually be read.
Presently I'm thinking of the following to add to the input (R1), so R1 will become one of the values below +10k, with 20k R2.
Position | Resistance
1 | Not connected / no signal
2 | 3.33v (no additional resistance)
3 | 2.85v (5k additional resistance)
4 | 2.38v (12k additional resistance)
5 | 1.90v (22k additional resistance)
6 | 1.42v (40k additional resistance)
7 | 0.95v (75k additional resistance)
8 | 0.48v (180k additional resistance)
This gives me about 0.475v between read voltages which hopefully is enough of a difference for the arduino to read clearly, but is the signal voltage on position 7 & 8 too low? If so then perhaps I need to tighten up the gaps, but what would be a reasonable minimum voltage. Also, is position 1 ok not being connected or is this not the best way to approach things?
Thanks all!