Provide Power With an Old USB Cord

77K17721

Intro: Provide Power With an Old USB Cord

Difficulty:easy..Wire cutting and splicing

If you have any old USB cords lying around, why not do something useful with them? I needed a way to provide power to my Arduino board without using the provided USB cable because it was too long, so I created this Instructable to show you how I solved my problem.

STEP 1: Supplies and Tools

Things you will need:

  • Wire cutters (or scissors)
  • USB cord you are willing to sacrifice
  • Jumper cables for a breadboard (or just normal wire if you do not need to use with a breadboard)
  • *Not pictured* Electrical tape

STEP 2: Prepare the Cord

  1. Cut the USB cord about 6" from the base
  2. Strip the outer casing, taking care not to harm the wires inside (if you do that's okay, just cut off your mistake and try again closer to the base)
  3. Carefully sort the inside wires and you should see 4 colored wires, some string, and insulating wire.
  4. Keep the red and black wires and cut everything else away

STEP 3: Splice Wires Together

  1. Strip the outer coating of the red and black wires from the USB cable and the two wires you will be attaching.
  2. Twist the red wires together along with both blacks.
  3. Fold down one of the wires along the USB cable and tape it down.
  4. Repeat step 3 with the other wire.
  5. Reinforce the entire thing with tape to ensure it does not come apart.

STEP 4: Plug and Test

Plug your creation into a power bank and test it out! I plugged mine into a power bank and the Vin and GND pins of my Arduino. A quick look at the indicator light showed that it powered on and my creation worked!

14 Comments

Depending on your intended use and desired level of durability or duration of use it will make a huge difference to use some form of connector opposed to taping to the side of the cable.
Should the USB cable be used for powering any type of device you will risk doing damage should the splice points become loose and voltage is not steady.
There are several kinds of connectors that do not require stripping, they are self tapping and typically have ratings to withstand water and other elements. All you need to be wary of is the wire gauge, typically 16 or 18.
3M makes a little red "button " style one that you simply insert the unstripped wire and squeeze the button down and it butes into it and connects.
4 wires total
2 for data
2 for power
Ok so i have a cord with white, green, and red. Now i know i connect the white with white and green with green, but the other cord had white green and pink. So do i connect the pink and red together?
two of the wires are for data transmission. what are the other two for?
I'd guess those "other" 2 would be the electrical wires (ya know...the ones this ENTIRE Instructable is about!?)
Thank u for this post...
With a usb charger cord with 2 reds 1 black and 1 white what r the live wires
Would be nice of u if u actually made a note about positive and neutral.
Otherwise u can burn either usb port or your arduino.

and messed up four as for

I mean usb not sub my tab has an auto correct thing...

what is the sub from because I have an old Samsung charger (it works) I don't need it and I'm not sure if the Samsung charger (of witch can power up most now days phones and potable batteries) has for cords as thus shown on the picture

I would suggest a solder connection for a patch leads to the USB cable the slightly different patch lead lengths is a great idea, also some heat shrink tubing would be a good idea or some Meld Tape that forms into a nice bond, you can also use electrical glue for the wires that acts as a cold solder method.
If you are testing this cable don't connect directly to a USB port on a Laptop or PC, Connect via a USB powered hub. If you damage the USB Port on your new PC or Laptop you would have a bad day, Damage a much cheaper USB Hub, still a bad day but much cheaper to fix.

Cut your sacrifice USB cable in half that way both ends are usable for diffrent projects.

You have a good point about damaging the power supply, so what if you connect this to a voltage regulator such as this one: https://www.sparkfun.com/products/107

I believe this would prevent the project from drawing too much power, and if you also used a diode you could keep it from doing any harm to your computer.

just a tip. make one of the leads, either the red one or the black one just 2 cm shorter than the other so that the chance of an accidental short is mitigated

Thanks for the feedback! I'll keep that in mind.