USB Switch
Posted: 24 Dec 2009 23:41
Hi
After some wekends trying, I could make a very simple USB 2.0 switch, and would like to share with you.
With it you can switch a USB device betwen 2 PC's. I just tried with penDrives of 1,2,4,16Gb, Vista, XP, USB1.0, USB 2.0
I see no reason to not work with any other device, but i didn't tried.
The main dificulty I had was to deal with USB2's 480Mbits/sec., and it's low voltage diferential D+/D-. Track lengths, unbalanced lengths, impedance mismatch where the main problems.
Here is the schematic
Here are the layout (silk and PCB). See that D-/D+ usb cable wires (white/green) are soldered under the relay and before it is soldered.
Also, the distance betwen them is the same of the USB-A pinout connector, in order to reduze any impedance mismatch.
R1,W1,G1,B1 and 2 are the red,white, green, black wires in the USB cable I soldered straigth in the board.
For the penDrive (USB device) I soldered a plain USB-A "female" connector (the ones found in PC's main board).
For D1 and D2, the best would be schoty diodes, but as I haven't them, I used 1n4148. Seems that even you use an external power supply, it's needed to "connect" the power suplies of both PCs as shown. But, you can try without them.
I hope it's of usage to someone. If you wish the 600 dpi board layout, let me know.
Here are the USB pinouts/cables: http://pinouts.ws/usb-pinout.html
Regards
Jose
*ps: if you want to see the history on how this hapens, take a look at: http://www.mikroe.com/forum/viewtopic.php?t=22529
After some wekends trying, I could make a very simple USB 2.0 switch, and would like to share with you.
With it you can switch a USB device betwen 2 PC's. I just tried with penDrives of 1,2,4,16Gb, Vista, XP, USB1.0, USB 2.0
I see no reason to not work with any other device, but i didn't tried.
The main dificulty I had was to deal with USB2's 480Mbits/sec., and it's low voltage diferential D+/D-. Track lengths, unbalanced lengths, impedance mismatch where the main problems.
Here is the schematic
Here are the layout (silk and PCB). See that D-/D+ usb cable wires (white/green) are soldered under the relay and before it is soldered.
Also, the distance betwen them is the same of the USB-A pinout connector, in order to reduze any impedance mismatch.
R1,W1,G1,B1 and 2 are the red,white, green, black wires in the USB cable I soldered straigth in the board.
For the penDrive (USB device) I soldered a plain USB-A "female" connector (the ones found in PC's main board).
For D1 and D2, the best would be schoty diodes, but as I haven't them, I used 1n4148. Seems that even you use an external power supply, it's needed to "connect" the power suplies of both PCs as shown. But, you can try without them.
I hope it's of usage to someone. If you wish the 600 dpi board layout, let me know.
Here are the USB pinouts/cables: http://pinouts.ws/usb-pinout.html
Regards
Jose
*ps: if you want to see the history on how this hapens, take a look at: http://www.mikroe.com/forum/viewtopic.php?t=22529