USB Switch Improvement
At home I use two computers connected together to one monitor, one keyboard and one mouse through KVM switch. On the desk I have also a printer, which I share between both computers. Unfortunately the KVM switch does not support USB multiplexing and each time when I print, I have to reconnect the printer playing with the USB cables. To make my life easier I decided to buy some cheap USB switch. I found this one in Aliexpress. I was interested to check what is inside and I found that it is fully mechanical. That means also that it is bidirectional - can be used for different purposes :
- The one for which I needed - to connect one printer to two computers
- To switch between two USB devices connected to one computer. In this case also special USB cables would be required - both sides male to male connector type. This use can allow for example two Arduinos to be connected to the computer and multiplexed fast or two external USB audio cards....etc.
It can be seen on the picture that the commutation between two USB B-type ports is performed by the use simple two positions switch. There is a picture showing which port is active when the switch is pressed and not.
To make the switch a little more convenient to use I decided to mount two LED's showing (for the first use, which of both computers is ON in the moment and which USB device is connected to the computer in the second way of use)
This instructable describes briefly how this can be done.
Dissembling and Inspection of the USB Switch
On the bottom of the box can be found two screws. When removed the case can be open. Inspecting the board I saw that the supply and ground wires are also multiplexed - that was what I needed.
Parts Needed
- two LED's - I chose 5mm with different colors - to be able to distinguish them in the dark
- one 330 Ohm to 1.5 kOhm resistor
- some insulated wires
- a piece of thermo-shrinking tube.
- two LED holders (optional)
Mounting of the LED's
I drilled two holes for the diodes on the top of the case. The holes were done in such positions that the mounted LED's are located in the free place between the USB sockets and the switch. I mounted the LED holders and inserted the LED;s there. To fix then strongly I used a hot glue gun.
Electrical Connections - Soldering
I connected the LED;s cathodes together.At that joint I soldered the resistor with soldered wire (blue one) on the other terminal. I put the thetmo-shrinking tube over the resistor and heated it. At the LED's anode pins I soldered two red wires. These red wires I have soldered directly to the supply pins of the corresponding USB socket (see the picture where). I inserted the blue (negative) wire through an existing hole of the PCB, layed the board on its right position and soldered the blue wire to the GND pin of the female A-type USB socket. After that I closed the case and fixed it again with the screws.
Ready!
I connected the switch to my printer and computers by the use of short USB B type cable. I printed a test page without problems. Everything works fine and I do not need to dig in the cable mix to check which cable where comes from.
And the look is nicer - I like color lights in the twilight, when I sit on my desk usually.
Thank you for reading.