12

I have a camera that uses a USB cable to connect to my computer. I want to extend the cable from 3ft to about 6ft. Originally I just created my own cable, soldering 4 26AWG wires to a blank USB connector and connecting the other side to the correct leads on the camera (this cable shown on right in the photo). The original wire (shown on the left in the photo) has slightly smaller wires probably either 28AWG or 30AWG.

When I plugged the new cable in, the camera would not come up and my computer said it was drawing too much power. So I tried just extending the original cable by just splicing additional wire before the connector. Once again I used they 26AWG wire.

With the extended original cable, the camera still does not show up, and it also does not give the warning that it is drawing too much power.

I am not sure what is happening. Given that the original cable extended does not work I am guessing that either the increase in wire gauge or the added length is causing an issue, but I do not understand why. If anyone has context on this it would be greatly appreciated!

enter image description here

DiaperHands
  • 772
  • 1
  • 7
  • 22
Jack Campbell
  • 151
  • 1
  • 6

4 Answers4

23

The most prosaic reason why your cable doesn't work and is drawing too much current is that you connected he wrong pairs of pins and/or some of the the wires are shorted together.

If that is not the case, there are two obvious problems:

A USB cable that meets the specifications has two twisted pairs of connectors enclosed in an outer shield, not four wires flopping about anywhere.

The left hand cable has also an RFI suppressor (the "bulge" in the cable). Yours does not. Since RFI suppressors cost money, there is presumably a good reason why it is there.

USB cables are pretty cheap. Trying to make your own isn't a good idea unless you have a very good reason for doing it.

FWIW USB 2 specifies the maximum length of a cable as 5 meters. USB 3 has a functional specification for the signal propagation along the cable rather than just giving a maximum length, but in practice the maximum length is about 3 meters.

alephzero
  • 12,578
  • 1
  • 16
  • 28
23

Even aside from the fact that no outer sheath and no shielding makes me cringe, there are a couple of big issues with your custom cable:

  • The data lines (pins 2 and 3) need to be a twisted pair. Period. USB uses differential signaling, and at the frequencies involved, the signaling lines need to be a twisted pair so that they actually behave correctly.
  • The cable might be too long. 6 feet is within spec for a properly made cable, but with what you’ve got there you can only realistically expect maybe 6 inches to work.
  • The cable absolutely should not be coiled like you have it. Any coil of wire with current going through it is an inductor, and that will cause serious havoc with your power draws (and possibly heat itself up to the point of melting the insulation or starting a fire if you’re not careful, this is a serious hazard actually with extension cables).

All in all, you are almost certainly better off just buying a USB 2.0 cable long enough for what you need, and then cutting off the far end and putting in the correct connector type for your application. Alternatively, you can get a 6.5 foot USB 2.0 extender cable (type A plug on one end, type A port on the other) for less than 10 USD on Amazon, and then you don’t even have to mutilate a cable, you can just use the extender with the cable that came with the device and be done with it.

5

For the USB signal, you have to make a 90 Ohm characteristic impedance twisted pair. The characteristic impedance depends on the insulator and on the outer/core diameter ratio of the wires. Search online calculators on the net.

A simple way to twist wires:

  • connect the two wires making a long wire
  • twist the wire using an electrical drill
  • put the wires parallel keeping the wires taut
  • let them twist together

It is also possible to twist the two wires independently in the same direction, before letting them twist together.

Also, the max. length of USB signal twisted pair is around 5 m.

3

The device is likely not getting the power it needs.

Use a thicker wire to ensure the resistance is the same as the original.

Don't make an induction coil with your cable. It also helps to use twisted pair - see some of the faster ethernet cables for reference. You twist the two ends of a corresponding signal to preserve integrity. Since an approximately same magnetic field passes through in the opposite direction at the next twist, it helps cancel out the field's noise.

Abel
  • 1,524
  • 6
  • 12