i m looking for a circuit in which a usb can be connected to two cpu via a switch just like KVM switch but the only diffrence is that when one cpu disconnect the usb cable then the switch operated and connect the usb to 2nd cpu.

  • \$\begingroup\$ The 'only difference' part does not make sense (at least to me). Do you want the switch to detect a disconnected CPU and switch all my itself? \$\endgroup\$
    – Lord Loh.
    Oct 17 '12 at 5:38
  • \$\begingroup\$ Are you looking for a component/circuit or a product? Product questions are off-topic here. \$\endgroup\$ Oct 17 '12 at 9:18

I have designed a circuit that uses the Fairchild FSUSB30MUX device as just such a USB switch. Part of test tool that permits one USB thumb drive to be toggled between two separate computers.

enter image description here

(Select browser option to view image in new window to see full size)

The circuit above shows how you can monitor the USB Vcc line from one computer to change the status. In this example the Vcc detect signal was fed into a microcontroller which in turn had control of the switch select signal of the USB switch component. Using the microcontroller like this permitted there to be additional methods to flip the switch such as a touch switch. USB port switching between computers also takes some carefully managed time delays so that switching back and forth does not go too fast otherwise the host computer connections will get confused.

Related information in this other answer.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.