I have an optical shutter controller which drives a shutter using either a TTL-level pulse or a footswitch. Unfortunately, there is only one input on the controller. I'd like to construct a circuit with a junction box that will allow me to use both inputs without having to manually disconnect/reconnect each time. I plan to build a logic Or- gate to handle the two inputs. The TTL line is already compatible. I need to build a little circuit which will convert the pressing of the footswitch into a TTL-level signal. The leads of the inactivated footswitch are grounded (that is, when I measure the resistance between the two leads it shows 0 ohms). When the footswitch is activated (pressed) the resistance between the leads is infinite (that is, open). So, there are no active elements in the footswitch, it looks like 0 or infinite resistance depending on whether or not its pressed. Can anyone help me with a circuit that will generate TTL-low (0 Volts) when the switch is inactivated (leads grounded), and TTL- high (5 V) when the switch is activated (leads open)?
Thanks very much!