Electronic – use USB data pins as a power source

interconnectledpower supplyusb

I'm trying to build a circuit as seen below, where a sequencer controls the flashing of some LED sections, and an SPDT switch controls power to either the left or the right section of LEDs.

However, I want the PCB with the switch and power source to be located a distance (~1 meter) from the LEDs and sequencer, and I was wondering if I could use USB to connect them.

To be clear, I am NOT connecting this to any sort of computer or microcontroller, I want to know if it is possible to have a USB cable provide VCC and GND from one circuit to another, and then use D+ and D- to provide/disconnect power to the LEDs via the switch. All voltages would be 5 V, and I can adjust the current draw of the LEDs as necessary.

If this is not possible, is there an existing type of cable that can achieve this (three power leads and a ground), or will I have to solder my own?

LED Selection Circuit using USB

Best Answer

If this is not possible, is there an existing type of cable that can achieve this (3 power leads and a ground), or will I have to solder my own?

Cables will do whatever you want them to do, they carry current from one point to another. The biggest concern would be if someone accidentally plugged the USB cable into a regular USB device which would probably blow out the data lines on that device.

Most USB cables use bigger conductors for the power lines, so the data lines would best be used for lower currents.

But you can use any cable you want as long as you can find ends for it and a way to solder your circuit to the ends. At that point it might be easier to just go down to your local hardware store and splice a 4 conductor cable and solder to that.