I need to connect two USB cables but upon peeling them i have come across wires of totally different color schemes. One USB cable has RED, WHITE, GREEN and BLACK wires. While the other cable has four wires of YELLOW, BLUE, GRAYISH WHITE and GREENISH colors. How to connect them? PLEASE help. Both the cables are of different joysticks.

  • Open up the joystick and look how things are connected inside it. The VCC/GND lines should be easy to figure out, the D+/D- will be trickier. – Zoredache Jul 22 '14 at 19:55

Go to the electronics store and get a continuity tester. It is the simplest of test equipment. It has two probes, if the two probes are connected or connected via a wire then it beeps.

You use it to find which wire is connected to pin 1, then pin 2 etc. Connect 1 to 1, 2 to 2, etc.

Make sure you hold the connector the same way when assigning pin numbers, it is not uncommon for newbies to connect in mirror image.

You can get one for $5 (maybe less) or you can make one with an led, resistor and battery (this type does not beep). Or a light bulb and battery.

  • 1
    Why the downvote? This answer is perfectly valid, and probably the best, if you want do this safely. Randomly guessing about a poor color scheme will get you fried equipment. – Zoredache Jul 22 '14 at 19:50
  • Thanks. This answer helped. Though I did it without the tester. I just peeled of the connector, saw the connections and after some struggle with the scheme it started working. – Zeeshan Naeem Jul 23 '14 at 10:10

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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