I was going to use the 74LS138 demux following the diagram posted by Badmouth (I think).
The problem with that version (shown below) is that there is no "neutral" option with that setup. One output is always low (button pressed)
unless you add a "neutral" rocker/toggle/slide switch for the 5v going to pin 6.
- When the switch is open, there is no 5v on pin 6 (Input E3 = low) ==> line 3 of the truth table, all outputs are high. (buttons not pressed)
Is there a different wiring diagram using only switches 1 and 3? Also, would the wiring in the shifter need to be changed?
If you're asking if there is a wiring-only (no 74LS138) version that uses only switches 1 and 3, then the answer is no.
If you're asking if there is a wiring diagram for baritonomarchetto's 74LS138 truth table (above) like this one Badmouth posted, neither baritonomarchetto nor I made one.
- You would use the same connections for pins 4, 5, 6, 8, and 16.
- The difference is the inputs on pins 1, 2, and 3
and the outputs on pins 7, 9, 10, and 11 (instead of 9, 10, 13, and 14) going to the encoder.
- The truth table above tells you which switch goes to which input and which output goes to which encoder input.
I was going to use some spare ports on an A-Pac instead of the I-Pac on the drawing. I was going to pull the 5v from a PacDrive.
Sounds good.
Scott