# USB cable as +5v vcc source [duplicate]

Possible Duplicate:

I was wondering if it is possible to cut open a usb cable, and use its "sub" wires to get its 5v power and gnd.

I am currently doing a digital circuit school project, and would like to power my bread board (protoboard) using the vcc and gnd of the usb. Is this possible?

I have read that the usb cable has atleast 4 wires, red for +5v and brown for gnd.

## marked as duplicate by W5VO♦Sep 14 '12 at 13:47

• Should be black for GND. Also note that the USB specs set a maximum of 10 uF of capacitance on the device. – Mike DeSimone Sep 14 '12 at 13:01

Yes, you can do that, but wouldn't it be neater to leave the cable as is and use a USB socket or plug? Then you just connect the 2 power pins to your circuit.

This plug allows you to enter a common USB cable, and go on from there, connecting wires to just the +5V and ground. Then you're no longer constrained by the limited length of USB cables.

If you do want to cut the cable then usually red is +5 V and black (not brown) is ground, but measure the voltage on the wires to be sure. Make sure that the data wires D+ and D- (usually green and white) are left open.

Note that USB 2 only allows you 100 mA, and a 10 µF capacitance.

• how do i connect the power pins? – ibaguio Sep 14 '12 at 12:34
• Saw the link post. Thanks for this answer. next time im going to use the socket instead of cutting the usb cable. – ibaguio Sep 14 '12 at 12:39
• @ibaguio - "next time..." Does that mean you cut the cable already? Otherwise the cable plug on the bottom right of this document is a neat solution: You don't have to cut the cable, but use the cable plug to further with the power connections only. – stevenvh Sep 14 '12 at 12:48
• thanks for correcting. I had the usb3 number stuck in my head, I guess. – Scott Seidman Sep 14 '12 at 16:13
• It's unlikely that an amateur connector assembly job would be anywhere near the reliability/durability of a factory overmold. Just get a cheap cable and cut it. – Chris Stratton Sep 15 '12 at 3:46

Yes, but as stevenh says, using some sort of breakout board with a socket on it is a much better idea for many reasons. Lastly, you MUST use no more current than the USB standard allows-- that's 100mA without negotiation for more through USB protocols that you have no intention of using. If you draw more current, chances are the host computer will cut off the connection, and your power!

Also, development might be a little less risky if until you knew things were right you sucked power off of a USB hub. They're a bit less expensive to replace than motherboards following catastrophic failure!

• i dont think the current wont exceed 2mA. – ibaguio Sep 14 '12 at 12:36
• 100 mA without negotiations for USB 2.0 – m.Alin Sep 14 '12 at 12:48