Quote:
|
Originally Posted by Adam Shapiro
The idea here isn't as much the actual resistance as the concept...
|
If the switch is going on the OI, the actual resistance
is rather important. The OI analog inputs want to see a variable resistance between ~2k and 100k to give the full range of values.
For a six-position rotary switch, I'd use six 15k resistors wired like this:
Code:
+5 <----/\/\/--*--/\/\/--*--/\/\/--*--/\/\/--*--/\/\/--*--/\/\/--*
^
OI |
analog input <-----------'
The
* characters represent the six positions of the rotary switch, and the
^ is the common connection.
What you'll get from this is the equivalent of a joystick with six discrete resistance values: 15k, 30k, 45k, 60k, 75k, and 90k. You should use a dashboard program to determine what the actual numbers end up being, and choose appropriate ranges in the software to decide which of the six positions is chosen.