We Value Your Privacy

We and our partners use technology such as cookies on our site to personalise content and ads, provide social media features, and analyse our traffic. Click below to consent to the use of this technology across the web. You can change your mind and change your consent choices at anytime by returning to this site.

Update Consent
Loading ...

How to Wire USB Cables

Updated February 21, 2017

USB cables replaced the old-fashioned serial and parallel ports that used to connect peripherals to computers. This standardisation of technology allowed more manufacturers of computer peripherals to connect to a variety of other systems, giving the user more choice in peripherals. It also makes it possible to wire USB cables in the home workshop, saving money. The three types of USB connections--A, B, or mini--are all wired in similar ways. Master one, and any can be done.

Loading ...
  1. Pry open the cover on the jack and plug connector. Insert the tip of a mini flathead screwdriver in the breakline on the flat side of the case, and push upward. The breakline is the break in the case where the cover meets the body.

  2. Strip 1/4 inch of insulation off both ends of each wire you will be using. Every type of USB connector requires four wires to be installed. It is advisable to use a red wire for the power source, white for the data wire, green for the wire that will carry data input, and black for the ground wire. The colour only refers to the insulating coating around the wires. Standard use of colours will make future repairs easier.

  3. Lay the wires into the channels inside the case. Use one wire per channel, with the bare ends of the wire placed so they are touching the metal plates at the end of each channel.

  4. From left to right, the wires should be installed in the following order for USB A connectors: red, white, green and black. This order also applies to mini USB A and mini USB B jack connectors, except you can skip the fourth channel when placing the wires.

  5. USB B jack connectors have two rows of channels. The wires for this connector also should be placed in order. The top row, from left to right, should have the red wire and then the white wire. The second (or bottom) row, from left to right, should have the black wire and then the green wire.

  6. Repeat these steps to wire USB plug connectors. USB B plug connectors require that the wires are placed in the following sequence from left to right: for the top row, place the white wire and then the red wire; for the bottom row, place the black wire and then the green wire.

  7. Press the covers closed on the plug and jack cases to finish connecting the wires. The covers will snap into place.

  8. Tip

    Lay out the wires between the peripheral and the computer connection first to make sure they will be long enough to make the connection.


    Use the right gauge wire for the distance to be travelled, or heat could build up and damage both the wire and the USB connector. The maximum length for 20-, 22-, 24-, 26-, and 28-gauge wire is 16 feet, 11 feet, 7 feet, 4 feet and 2.5 feet, respectively.

Loading ...

Things You'll Need

  • Mini flathead screwdriver
  • (1) 4 pin USB A ,USB B, or mini-USB plug connector
  • (1) 4 pin USB A ,USB B, or mini-USB jack connector
  • Computer data wire (20, 22, 24, 26 or 28 guage)
  • Electrical pliers

About the Author

Cassandra Tribe has worked in the construction field for over 17 years and has experience in a variety of mechanical, scientific, automotive and mathematical forms. She has been writing and editing for over 10 years. Her areas of interest include culture and society, automotive, computers, business, the Internet, science and structural engineering and implementation.

Loading ...