I see things have changed quite a lot since I biult my boxes on the PIC platform and due to the number of analogue inputs needed (I@m using genuine hammond drawbars) I'm considering going the MIOS 32 route.
Anyway, my question is this, w.r.t organ rocker switches (i.e. they latch on and off) and position switches (6 position vibrato chorus selector and 3 position leslie switch).
Now I know from when I created my midiboxes before that DINs only work with momentary switches so my thought is that for latching switches I need to measure voltage and therefore use analogue inputs - now 1 switch on one AIN should be easy - 5v = on 0v = off.
My question is this, I think it should be do-able but maybe someone else could confirm it?
For a 6 position switch (or a 3 position switch...or 4 x rocker tabs with a resistor matrix for percussion) could I link between the terminals with resistors so that each position ouputs a different voltage then read the switch (or group of switches) with 1 x AIN input? Coding along the following lines would be required for a 3 position switch:
If input = aa then output = zz
If input = bb then output = yy
If input = cc then output = xx
Cheers fellas
Edited by eufex, 28 April 2012 - 10:29.




