A USB connector uses 4 pins.
It may have 5 pins in it, (Depends on the style of USB connector), but only 4 are used.
http://pinouts.ru/Slots/USB_pinout.shtmlThe number 1 pin is used for 5 Volts. 5 volts is transferred from the computer through the USB cable on Pin 1.
The number 2 pin is used for Data transference.
The number 3 pin is also used for Data (Information) transference.
This is DC electricity so there is a Positive connection, and a Negative connection.
Pin 2 is the Negative connection.
Pin 3 is the Positive connection.
Pin 4 is used for Ground.
Suggest you match up the style of connector you have with the illustrations on the link.
Find Pin 1.
Look at your existing USB cable, and note what color wire goes to what pin.
Write it down.
Use the above to replace the USB cable.
For additional questions or clarification to what has been stated, please post in a Comment.
Regards,
joecoolvette