Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am looking for a device that connects to two USB ports on a computer: a "Control" port, and a "Data" port. Both cords go to the same device, which also has one USB "out" port (3 ports total). If a certain signal (from whatever driver is loaded for it) is sent to the device from the "Control" port, it should, depending on the signal, physically connect or disconnect the "Data" port on the device to the "out" port. Basically, an automated circuit breaker, like so:

                ___________
<PC USB1>-------|  <relay> |
<PC USB2>-------|----/-----|<USB OUT> 
                |__________|

Does such a thing exist? Or should I start learning Arduino and make one?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Using the V-USB Software Stack for an AVR microcontroller, you can build one fairly easily with the included PowerSwitch project (schematics and program included).

Alternatively, you can create your own with an Arduino by using your PC's serial connection and a custom application to send the appropriate signals. I believe you can also use the PowerSwitch code with an Arduino, as they use Atmel microcontrollers. However, note that building your own circuit with the included schematic in PowerSwitch will likely be cheaper than an Arduino.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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