Norlin
New Member
I have a problem where I want to have 6 switches controlling four lines. Each switch drives two lines high, each seperate switch drives a different combination of two lines. So if I have four lines labelled A through D, each switch would do the following:
1 AB
2 AC
3 AD
4 BC
5 BD
6 CD
The problem comes that if you wire the switches up like this, all four lines will be connected together. You could overcome this with a double pole double throw switch (or is there another switch that has one common line on one side and two on the other?) you'd tie the two poles on one side of the switch to your voltage source and each of the other two poles to one line each.
eg:
However, I haven't been able to find tiny DPDT switches, so I have a bunch of SPST switches which are of perfect size. The only way I know how to solve this problem is to use a bunch of diodes, so I'd have
This solution would work for me, but I'd end up with 12 diodes and I'm trying to keep the size (and complexity) of the circuit to a minimum as it's to be a keyfob sized transmitter...can anyone think of another way to implement this with SPST switches? If I were to have to use a 12pin or larger IC, I might as well use the diodes as they'd be around the same size.
1 AB
2 AC
3 AD
4 BC
5 BD
6 CD
The problem comes that if you wire the switches up like this, all four lines will be connected together. You could overcome this with a double pole double throw switch (or is there another switch that has one common line on one side and two on the other?) you'd tie the two poles on one side of the switch to your voltage source and each of the other two poles to one line each.
eg:
Code:
Vcc --- SWITCH --- A
Vcc --- SWITCH --- B
However, I haven't been able to find tiny DPDT switches, so I have a bunch of SPST switches which are of perfect size. The only way I know how to solve this problem is to use a bunch of diodes, so I'd have
Code:
Vcc --- SWITCH --- diode to A
--- diode to B
This solution would work for me, but I'd end up with 12 diodes and I'm trying to keep the size (and complexity) of the circuit to a minimum as it's to be a keyfob sized transmitter...can anyone think of another way to implement this with SPST switches? If I were to have to use a 12pin or larger IC, I might as well use the diodes as they'd be around the same size.