0
\$\begingroup\$

Possible Duplicate:
Powering a breadboard with USB

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.

\$\endgroup\$

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

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.

enter image description here

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.

\$\endgroup\$
  • \$\begingroup\$ how do i connect the power pins? \$\endgroup\$ – ibaguio Sep 14 '12 at 12:34
  • \$\begingroup\$ Saw the link post. Thanks for this answer. next time im going to use the socket instead of cutting the usb cable. \$\endgroup\$ – ibaguio Sep 14 '12 at 12:39
  • \$\begingroup\$ @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. \$\endgroup\$ – stevenvh Sep 14 '12 at 12:48
  • \$\begingroup\$ thanks for correcting. I had the usb3 number stuck in my head, I guess. \$\endgroup\$ – Scott Seidman Sep 14 '12 at 16:13
  • 1
    \$\begingroup\$ 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. \$\endgroup\$ – Chris Stratton Sep 15 '12 at 3:46
0
\$\begingroup\$

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!

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

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