M
Mickel
Guest
I had a need to connect a double footswitch (2 momentary switchs) to a PC. I
came up with the idea of using the circuit board from a USB keyboard. This
was the perfect solution as it was cheap, small and didn't require any
drivers to be written. When I pulled apart the keyboard and hooked up the 2
switches to page up and page down keys it didn't work. So I measured the
resistance of the flexible circuit and concluded I needed to put a 50ohm
resister in series with the switches. When I bridged the resistor across the
pins (without using the footswitch) it fired the page up or page down key as
expected. I thought the problem was solved but when I hooked up the 2
switches it stopped working. The really interesting this was though, if I
hooked up only 1 of the switches then it worked ok. This was really odd
because by disconnecting a switch that was open anyway, all I was doing was
removing a 3 metre long wire that wasn't connected to anything. So I got the
idea of hooking up a diode to this wire and that worked. So my problem is
solved but can anyone explain to me why putting a diode on a piece of wire
connected to nothing solved the problem?
Also, one I had the diodes in place i worked fine without the resistor.
I'm not much good with ascii circuits but here it is:
------
| |
| |--~~------------------
| | | |
| KB | \ \
| | | |
| |-->-------------- |
| |-->-------------------
------
|
|
|
|
USB
~~ = 50 ohm resistor
-> = diode
Thanks heaps,
Michael
came up with the idea of using the circuit board from a USB keyboard. This
was the perfect solution as it was cheap, small and didn't require any
drivers to be written. When I pulled apart the keyboard and hooked up the 2
switches to page up and page down keys it didn't work. So I measured the
resistance of the flexible circuit and concluded I needed to put a 50ohm
resister in series with the switches. When I bridged the resistor across the
pins (without using the footswitch) it fired the page up or page down key as
expected. I thought the problem was solved but when I hooked up the 2
switches it stopped working. The really interesting this was though, if I
hooked up only 1 of the switches then it worked ok. This was really odd
because by disconnecting a switch that was open anyway, all I was doing was
removing a 3 metre long wire that wasn't connected to anything. So I got the
idea of hooking up a diode to this wire and that worked. So my problem is
solved but can anyone explain to me why putting a diode on a piece of wire
connected to nothing solved the problem?
Also, one I had the diodes in place i worked fine without the resistor.
I'm not much good with ascii circuits but here it is:
------
| |
| |--~~------------------
| | | |
| KB | \ \
| | | |
| |-->-------------- |
| |-->-------------------
------
|
|
|
|
USB
~~ = 50 ohm resistor
-> = diode
Thanks heaps,
Michael