For the DIY'ers out there, this is how I made my own.
My switch is 3 wire, (5v, AN ground, switch input)
1P12T switch
110ohm resistors
5v to pin 12, AN ground to pin 1 and 11 resistors soldered in between pins
1-2-3-4-5-6-7-8-9-10-11-12
Graphically (pins 1-12 Left to Right >) NOTE: Read the (---) as a physical pin on the rotary switch
1 2 3 4 5 6 7 8 9 10 11 12
Ground(---)110(---)110(---)110(---)110(---)110(---)110(---)110(---)110(---)110(---)110(---)110(---)5V+ (between each --- is a position IE:1,2,3,4 and so on)
R2---------------------------------------------------------------------------------------------------R1 (resistance nomenclature)
what is looks like
Formula to work this out is simply.
NOTE: R1 is always on the side of the 5v+ in
NOTE 2: total resistance is simply the sum of either side depending on pin position
R2/(R1+R2)xVin=Vout
Vin for mine us is 5v
When switch is all the way clock wise to PIN 1 thus the switch input voltage will be
(0x110)/((11x110)+0)x5
(0/12100)x5
0x5
=0 VOLTS YES! for position 1 on the rotary switch.
For position 2
(110/((10x110))+110)x5
(110/(1100+110)x5
(110/1210)x5
0.0909x5
=0.4545 VOLTS
***You can work out the rest!!!*
And so on it goes!
For pick below this was done with a battery at ~11.0volts so the value should be ~1.0volts, which you will see it is near enough.
This is my completed switch, cost around $10 in materials (all inclusive), so for any DIY'er out there, give it a crack, its not that hard to do, and you can say you made it yourself
