Skip to content

DIY USB sharing hub

2009 January 28
by Peter Crouch

USB sharing hub

Local shops wanted close to $100 for a mechanical USB switch, to share a USB keyboard and mouse between two computers. I accomplished the same thing with a cheap compact USB hub, an old keyboard and a 3 pole switch for less than $10.

The keyboard is wired to one of the USB hubs ports, the 3PDT switches the hubs two data lines plus the 5v+ rail. In an ideal world, the ground and shield should be switched too, but I only had a 3 pole switch and limited room.

DIY usb hub sharing switch diagram

I decided to put the hub inside the keyboard to reduce clutter, fitting everything in was the hardest part of the project, and not something I’d do again.

It works beautifully but there is a 10 second lag when switching to a Vista machine while it searches for the drivers for the mouse and keyboard, but it’s still easier than swapping the keyboard plug between machines.

5 Responses leave one →
  1. Patrick Bishop permalink
    August 29, 2010

    thanks, you’ve been a big help, i placed all my components in a plastic electrics box from radioshack

  2. Vignesh permalink
    September 26, 2011

    I have a wireless keyboard that uses a dongle to connect to the keyboard. If i just have a female usb port slotted into where the hub is, i could achieve the same result?

  3. September 27, 2011

    sorry – I dont really understand what your question is

  4. Vignesh permalink
    September 27, 2011

    for example, if i have a Wireless mouse (the ones that have that dongle that plug into the pc…) Could i instead f having that hub there, have a female port(like the ones in your pc) and wire it up the same way you did?

Trackbacks and Pingbacks

  1. A “Soft” KVM « Armen138

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS