I would like to build a circuit that allows me to use a single printer with both of my PCs. It is exactly something like this:
Also, I would like to use this type of switch:
in order to select either PC0 or PC1.
What I currently have is:
Now I am stuck because I don't know how to wire up the rest of the circuit so that this single button switches the D+ and D- connections between the PC0 and PC1. Unfortunately, I don't have any MOSFETs at the moment. Maybe a DPDT switch is the only way to go then?

  • \$\begingroup\$ Usually you would either buy such a box or use a mux chip that can pass high speed USB signals. Why are you so sure that you can connect 5V supplies together, or that high speed USB signals can be switched with a DPDT switch? \$\endgroup\$
    – Justme
    May 10 '20 at 14:58
  • \$\begingroup\$ You can not do what you are trying to do with a switch like that .... Not without a bunch of digital hardware in the background ... You can not just flip wires quite so easy \$\endgroup\$
    – MadHatter
    May 10 '20 at 15:04
  • \$\begingroup\$ Agreed with @Justme. Using a mux is probably the best thing you want to use here. Advisable if you isolate your 5v lines however. I think using a mechanical switch will create some weird and unnecessary inductance noise. \$\endgroup\$
    – user103380
    May 10 '20 at 15:06
  • \$\begingroup\$ Oh, I am pretty new to electronics (as you can see by my rep) and I thought that using the diodes, the 5V lines could be connected together. I thought that a DPDT switch could be useful after watching this video: youtube.com/watch?v=j-ySUHcP6Tw&t=89s \$\endgroup\$
    – Sheim
    May 10 '20 at 15:11
  • \$\begingroup\$ Maybe I could accomplish what I want using Arduino? \$\endgroup\$
    – Sheim
    May 10 '20 at 15:13

The switch shown in the original post is made for a reason. It likely either has a special analog switch and digital electronics, or a special "sharing" hub made of millions of transistors. Mechanical switch of this kind is totally inadequate for transmitting USB signals. At most this kind of mechanical switch can handle LS mouse and keyboard, but not a modern printer, which typically uses 480 MBps HS mode.


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.