Replacing a mechnical switch with a digital one

switches

I have a circuit which allows me to manually (physically) switch between two VGA inputs (PCB push switches) to feed one VGA output (a standard commercial KVM). I want to be able to switch between the two inputs digitally – ie. from an output of my arduino.

I'm happy with everything I need to do from the arduino side of things, but I don't know how I should go about replacing the mechanical switch with a transistor (or even if that's the right thing to use!)

How should I go about making this swap? Thanks!

EDIT: Some photos of the KVM for your viewing pleasure!

From above
The switches
From beneath

Best Answer

It would be really helpful if you knew how the switch was wired within the KVM relative to the rest of the circuit to understand the best application of a transistor or IC.

For instance, if the switch is just bringing an input to ground through a resistor, you may be able to sink the current directly through an I/O line

In the absence of specific information on what the switch is doing, you can't go wrong with replacing a switch with a relay. The relay contacts would replace the switch, and you would drive the coil from the Arduino through a transistor (since the I/O line can't drive the relay directly). Of course, you would have to deal with the clicking and the relatively shorter operational life of a relay over a transistor.