#0010: Device analysis of a USB resistive load

#0010: Device analysis of a USB resistive load

Preamble

This will (hopefully) be a start to a series where I take a look into various devices and analyse them. My intention is to begin with very simple devices and steadily ramp up to more complicated ones as time goes on. The idea is to give the reader enough information about the device (design, function, components, etc) to the point that they can conceivably create their own. As well as in some cases recommending certain modifications, tools, adapters, or companion devices for optimal practical use.

Device information

This is a resistive load with a male USB plug interface. It’s intended function is for testing the current output of USB power-supplies and power banks. It has 2 current draw settings, these include: a 1 ampere and a 2 ampere mode. This device is operated using a two state slide-toggle switch, which allows alternating between the two current draw modes. Additionally it uses a common anode bi-colour LED as an indicator for these modes. Green for the 1 amp and red for the 2 amp mode.

The general layout and configuration of the 5 ohm wire-wound power resistors is what makes this device function. One resistor (R1) is always in circuit, in both the 1A and 2A mode. Within the 2A mode, R2 is added (in parallel to R1) to the circuit. Adding R2 in parallel to R1 reduces the circuit resistance to 2.5 ohms, which in turn draws 2 amps from the power supply.

1A mode: R1 in circuit (5V/5R=1A)
2A mode: R1 and R2 in parallel (5V/2.5R=2A)

Schematic

made using https://www.digikey.com/schemeit/
common anode bi-colour LED

Key

R1: 5 ohm wire-wound power resistor
R2: 5 ohm wire-wound power resistor
R3: 560 ohm resistor
L1: light emitting diode (green)
L2: light emitting diode (red)
S1: toggle slide switch

Recommended modifications

  • 3-state switch or additional switch (for device OFF state)
  • Heatsink / fan (to efficiently dissipate generated heat)
  • PTC resistor (as a safety temperature cut off)
  • male USB to female USB extension cable (for allowing easier multimeter access)

Additional switch

Due to both states of the USB resistive load’s two-state slide-toggle switch being used during the operation of the device, the device has no plugged-in OFF state. This means that it should not be left unsupervised whilst plugged into a power-supply as it would be active at either switch state. Either adding an additional two-state switch or replacing the current one with a three state-switch, will allow the device to have an OFF state. Whether or not this is considered valuable, is largely subjective. However personally, I like the option of turning a load off without necessarily having to unplug it.

Heatsink and fan

The reason why leaving this resistive load active and unsupervised is a concern; is predominantly due to the functioning of the two large 5 ohm power resistors. These resistors dissipate around 5 watts each (5V*1A=5W) and generate considerable heat as a result. Because of this, I recommend the addition of an appropriate heatsink to be attached to these resistors in order to dissipate this resultant heat. As it is now, during continuous operation the resistors heat up to the point that they can not be handled with a naked hand. This level of heat could pose a possible burn risk, or fire hazard.

The addition of a heatsink will allow the device to run continuously without reaching these same high temperatures, it does this by dissipating the heat generated within the resistors in a more effective manner. I.e. moving it into the environment quicker, so that it doesn’t concentrate within the device. An addition of a mounted 5 volt mini fan will enable the cooler ambient air to run through the fins of the heatsink and further improve it’s ability to move heat out of the device. I specify a 5 volts fan because it can be powered from the device itself.

In addition to allowing the device to be handled after extended periods of operation, a good heatsink will in all likelihood also extend the lifespan of the two 5 ohm power resistors. It does this by dissipating any generated heat before it reaches levels that may damage either the components themselves or their neighbours. Generally speaking: devices that run cooler, live for longer.

PTC thermistor

As an alternative to the above two fairly common sense modifications; one could also choose to incorporate a Positive Temperature Coefficient (PTC) thermistor as some kind of safety shut off in the cases where the device reaches any critically high temperatures during operation; essentially as a reusable temperature fuse. The reason why I am dubious in recommending this is that: although it will make the device safer to use in a continuous application; attaching a PTC thermistor in series with the two power resistors may actually affect the resistive load’s performance if not it’s ability to function entirely. I am not sure as I am inexperienced with the application of thermistors in general, and have yet to try this particular use-case out.

My working theory is that since a PTC thermistor increases resistance as it heats up, and with this device’s current draws; it will quickly lead to a positive feedback loop where it’s resistance generates heat, which will generate more resistance, and so on until no current can pass through it – essentially becoming open circuit. I believe that the heat generated from the low resistance power resistors will kick start that sequence; and that the increasing circuit resistance from the PTC thermistor will quickly negate the the power resistors’ ability to draw current. Even if the thermistor’s resistance doesn’t increase to the point of open circuit. It only needs to be consistently higher than the power resistors’ 5 ohms in order to hamper device functionality.

Still, perhaps there is a configuration where the PTC resistor will not negatively affect the power resistors, while still being functional as a thermal fuse. Perhaps if the trip temperature of the thermistor was high enough, or it had a position on the device where it only heated up in cases of catastrophic environmental temperatures. Basically a setup that allowed for the added safety of having a thermistor in circuit without it negatively affecting the functionality of the device.

USB extension cable

I decided to create my own USB extension cable rather than use a prebuilt one. The main reason for this is that I fear that a random off the shelf unit my not be designed to handle current draws of 2 amperes (even if it’s vendor says that it is). This would mean that the cable itself would provide a level of resistance that would become a limiter to the amount of current that the resistive load can draw.

Generally if a USB cable is offering resistance, it will be in it’s cable and not in it’s plug and socket. Either the cable itself is too thin of a gauge, made of inferior materials (aluminium instead of copper), or is long enough to cause voltage drops at higher currents. With this in mind, I used thick gauge copper power cables (taken from an extension cord), and a salvaged USB plug and socket. I also made sure to keep the total length of the cable short; just being long enough to allow comfortable use of a clamp style multimeter.

Which actually brings me to the purpose of this little extension. The pictured USB extension cable is designed to allow the use of a clamp multimeter (one that can measure DC current). Alternatively, if I didn’t have a clamp multimeter, I would cut the 5 volt line in half and terminate it’s two ends with banana plugs. That way I can insert a regular multimeter in series within the circuit; and measure the actual current draws.

As an alternative to using a DIY USB extension and a multimeter, one could just buy a USB voltmeter/ammeter. Such as the one pictured. Although these things, in my opinion can skew the results: due to them (in my experience) imparting some level of resistance on the circuit; they are certainly more convenient to use. Which one a person prioritises: accuracy, or speed (neatness, etc.) will largely depend on their preferences and use-cases.

Closing statements

Although the build quality of this device is more than acceptable (i.e. it doesn’t feel like a shoddy product), it is clearly built to a price point. Only having near enough the absolute necessary components to function. I believe this to be the case, not just because of the miniscule bill of materials (BOM), or the use of inexpensive components in that list. But rather because of the in my opinion necessary things that were left out; namely a basic heatsink.

Although it actually functions fine as is; at least for short operations. If you wish to use this device safely continuously for longer periods of time than a couple of minutes, modifications will need to be made.

Sources, references, further reading

https://en.wikipedia.org/wiki/Thermistor#PTC

https://sciencing.com/difference-between-resistive-inductive-loads-12181159.html

#0009: Brief guide to creating a USB OTG cable

#0009: Brief guide to creating a USB OTG cable

What is a USB OTG cable?

USB “OTG” stands for USB “On The Go”. USB On-The-Go is a specification of the USB protocol that allows traditionally slave devices such as smart phones, to act as master devices or host systems (e.g. personal computers) when connected to either other slave devices such as digital cameras and printers; or peripherals such: USB storage disks or human interface devices (e.g. keyboard and mouse).

USB plug classifications.

There are a myriad different types and generations of USB cables available on the market today. However most obey the convention of having two different plug-socket configuration in each class specification. A type-A plug and socket for connecting with the host system (a.k.a. “A” device), and a type-B plug and socket for connecting with the slave (or “B”) device. A standard USB cable will have one male type-A plug and one male type-B plug. A USB OTG cable differs from a standard USB cable in only one significant way. The standard USB type-A plug is replaced with either a USB Mini type-A or USB Micro type-A variant. That’s it.

For example to connect a generic modern printer to a smart phone with a USB Micro type-AB socket. One would need a male USB Micro type-A to male USB type-B cable. The replacement of the USB type-A with a USB Micro type-A is what makes it an “On The Go” configuration. This means you don’t need a traditional PC to use the printer. You can connect directly with and use the mobile device to send the files to the printer in it’s stead.

Diagram of USB 2.0 connectors. Depicting USB, USB Mini, and USB Micro type-A and type-B plugs
image taken from wikipedia.org

Limitations of the USB OTG specification.

A device with OTG enabled capabilities unfortunately can not act as a general purposes host system with the same peripheral compatibilities as a personal computer. Instead they are given a Targeted Peripheral List (TPL) from their manufacturers. This is a rather limited list of general peripherals designed to work with the particular device for it’s expected use cases. This is because these devices will have limitations on them such as power output or limited supported protocols.

Unfortunately, as I see it; with the innumerable amounts of devices (smart phones, tablets, etcetera) and peripherals (with various protocols and power draws) on the market today: the best way to find out whether or not a peripheral is compatible with your particular device – is to just plug it in and see. This is also true for finding out whether or not your device supports the USB OTG functionality in general. Some might not.

I tested a couple of smart phones I had on hand, and of the four I had, only one actually supported OTG functionality. The other three simply didn’t register the peripherals (including a basic USB thumb stick) plugged into them. These were: (2011) Samsung GT-I5500, (2012) HTC Chacha, (2015) Huawei GRA-L09, and (2018) Blackview A30. Of them only the Huawei GRA-L09 worked with my OTG cable. It performed perfectly with the wireless USB keyboard-mouse combo, and the thumb drive I tested with. The Huawei even allowed connections to the other smartphones (using a Micro type-A to Micro type-B cable). It could charge the other devices, register on their end as connected to a host, but not allow access to their filesystem like a PC would allow. This last thing could be a software limitation, that will require some further tinkering to work; or possibly using some kind of third-party file browser or peripheral manager. Long story short, when it comes to compatibility: your mileage may vary.

Creating a USB Micro OTG cable.

The USB OTG specification was originally created for use with mobile devices that utilised the USB Mini standard, and later updated to include the USB Micro standard. We will create an OTG cable by modifying a Micro type-B plug to a Micro type-A plug. Then using it to create a male USB Micro type-A to USB (full size) type-A socket. This is to connect basic low power USB peripherals such as storage drives or a wireless mouse and keyboard combo. Which is my particular use case. However it should be stated that the same modifications can be made to a USB Mini type-B plug to turn it into an OTG enabled Mini type-A plug.

To create a basic USB Micro OTG cable is actually rather simple. All you essentially need to do is short the ID pin (pin 4) on the USB Micro type-B plug to ground (pin 5). This procedure effectively (i.e. electrically) turns the Micro type-B plug into a Micro type-A plug.

Unfortunately in my case, my kit USB Micro plugs only came with 4 soldering pads (for the power and data lines). It was missing a solder pad for the ID pin. This meant I couldn’t just run a small jumper from the ID pad to the ground pad. I instead had to access the ID pin directly. On one hand this makes creating the OTG cables that require some resistance value between the ID and the ground pin significantly harder. Due to no room for the resistor. However if you intend to just create a basic cable, then this method of just bridging the ID and ground pin can be useful for salvaged USB Micro plugs who in all likelihood won’t have an ID solder pad.

With this in mind, I disassembled a kit USB Micro type-B plug. Next I scraped the covering plastic on pin 4 and 5, then soldered a bridge across them. I removed the plastic to create space and headroom for the solder bridge. Otherwise, I may be unable to slide the plug head (with it’s plastic inner lining) back on. Space constraints need to be paid attention to. Reassembled the plug. Then tested for continuity using a multimeter and a USB Micro type-B socket breakout board. Id est making sure that pin 4 is grounded, and that the solder bridge wasn’t coming off.

Please note, there are other methods for creating OTG cables that involve running a specific resistor across the ID and ground pins for certain devices to work, or to enable the host and/or peripheral device to draw power from an external power source. However I am omitting them, for brevity. This is a quick guide to build a basic DIY OTG cable.

I decided to make the pictured OTG cable modular using breadboard jumper cables. The reason for this is because I intend to mix and match various plug and socket ends to create different types of cables. However, I would recommend making a more fixed and permanent cable for actual real-world use.

Modular OTG cable example

Tooling and material example

Disassembly and modification of a USB Micro type-B plug

Modular male Micro type-A to female USB type-A OTG cable in use

Modular male Micro type-A to male Micro type-B OTG cable in use

References / Sources / Further Reading:

  • https://en.wikibooks.org/wiki/Serial_Programming/USB#What_is_USB?
  • https://en.wikipedia.org/wiki/USBhttps://en.wikipedia.org/wiki/USB_hardware
  • https://en.wikipedia.org/wiki/USB_On-The-Go
  • https://en.wikipedia.org/wiki/USB_(Communications)#Signaling_state

#0008: Repair and Analysis of USB Micro type-B cables

#0008: Repair and Analysis of USB Micro type-B cables

picture of a dissected USB Micro B plug

If you are anything like me you probably have a sizeable collection of broken Micro USB cables neatly spooled onto a hook, or into a bag. Alternatively, you may even have them tangled into a rat king in a box or drawer somewhere … that is if you are a barbarian. You know who you are. So in an effort to lighten my ‘Spares & Repairs’ bin short of throwing things away (perish the thought!). I though it’d be good to repair a few. I know crazy right?

How and where do Micro USB cables typically break?

In order to repair something, we must first asses the damage. Where is it and how much is there? Well, with regards to the generic male USB 2.0 type-A plug to male USB Micro type-B plug cable: the damage is predominantly focused in the male Micro USB plug. Please note I will be using the term ‘Micro USB plug’ as shorthand for ‘male USB Micro type-B plug’ throughout this article.

picture of a bent USB Micro B plug

Initially, I used to get annoyed whenever a cable broke and rebuke the relatively delicate Micro USB plug as poorly designed. However, on reflection it is actually rather good that the weakest point in the pairing of the plug and socket: is in the plug and not the socket. Especially since after such incidents, the device socket tends to end up with little if no damage at all.

This is assuming that the majority of accidental breakages happen under certain conditions. These include: firstly, that the Micro USB plug is inserted into it’s respective socket on the device at the time. Whereupon it comes into acute mechanical stress by something akin a sudden impact (e.g. from a fall); or by a particularly vicious cable snag. This stress consequentially puts a lot of pressure on the connection between cable and device. Which in most cases causes the cable’s plug to give in before the device’s socket. Sometimes both are damaged if the impact is strong enough. However in a more typical scenario the plug breaks first, and in such a way as to leave the socket relatively unharmed.

Although my knee-jerk reaction is irritation whenever I perceive something as genuinely designed to break; I think in hindsight it is better that the cable’s plug is designed to break before the device’s socket. Since the cable is far easier (and consequently cheaper) to either replace or repair than the device would be. After doing some research, it seems that this is a conscious design decision (citation needed) and not one based on anti-consumer avarice, which (as a long time purchaser of consumer grade electronics) is the assumption that I have been conditioned to have in these types of scenarios. “Think Different”, Think Planned Obsolescence.

In this case, it is actually an iterative improvement on it’s predecessor: the Mini USB standard. Which suffered from port damage due to the shape and structural strength of the male plug, coupled with the fact that the retention and locking mechanism is located within the socket in the Mini USB standard. Whereas within the Micro USB standard, all such fragile and consequently breakable parts are located cable side. Having said that though, it still sucks when useful tools break so let’s try fixing them.

picture of a USB Mini socket. It shows the retention clips within the socket.
USB Mini socket

Structure of a male USB Micro type-B to male USB 2.0 type-A cable.

The male USB Micro type-B (or Micro USB) plug on average has typically four or five pads at it’s cable side and five interface pins that mate with it’s counterpart female socket. Please refer to the pin out diagram.

diagram depicting the wiring and pinout of a male USB 2.0 type-A to male USB Micro type B cable.

USB type-A:
Pin | Name | Wire Colour | Function
1 | VBUS | red | +5 volts supply
2 | D- | white | Data-
3 | D+ | green | Data+
4 | GND | black | Ground

USB Micro type-B:
Pin | Name | Wire Colour | Function
1 | VBUS | red | +5 volts supply
2 | D- | white | Data-
3 | D+ | green | Data+
4 | ID | no wire | ID pin for OTG functionality
5 | GND | black | Ground

Its simple really, pins 1 and 5 are used for power. Pin 1 supplies the +5 volts and pin 5 is it’s ground. Pins 2 and 3 are used for transmitting the data signals for communication. And finally, pin 4 is an identification pin, which is used for USB ‘On The Go’ functionality. It essentially tells the device that it is connected to, whether or not it is to act as a host system or a slave device when communicating with the device on the other end of the cable.

hyperlink: post_#0009:_Brief_guide_to_creating_a_USB_OTG_cable

Its a very similar setup with the male USB 2.0 type-A plug on the other side of this cable, except that it lacks an ID pin. Pin 1 is the V bus carrying +5 volts, pin 4 is the signal ground, and pins 2 and 3 are the negative and positive data pins respectively.

The reason the USB type-A plug lacks an ID pin is because any device that has a full sized female USB type-A port is already assumed to be the host system. Finding a peripheral device such as a keyboard (with the exception of USB pass-through), or mouse, or even a smart phone with a full sized female USB type-A socket is non-standard; as are the male USB type-A to male USB type-A cables needed for them.

The wikipedia.org article (“USB hardware”) mentioning this cable labels it as ‘proprietary, hazardous’. If I were to guess as to why that is, I’d say its because it allows the connection of two host systems (e.g. 2 personal computers), with no protocol to decide the role either system has to play. Additionally the input of power into a host system via it’s USB ports may cause damage (e.g. to it’s USB controller) because it may lack short circuit or input protection.

The Repair

Now that we have a basic understanding of the structure of the Micro USB plug and where the damage typically is. We can proceed to repair one.

Recommended tooling:

  • soldering iron
  • hot air station / heat-gun / lighter
  • hot-glue gun
  • precision knife
  • third hand clamps (handy grips, etc.)
  • testing adapters
  • female USB type-A socket breakout board
  • female micro USB type-B socket breakout board
  • multimeter
  • pliers

Consumables:

  • hot-glue
  • heat-shrink
  • Micro USB male plug kit
  • (lead-free or leaded) solder
  • rosin flux
  • electrical tape

P.P.E.:

  • safety glasses
  • light heat resistant gloves

The list above is just as a guide the the types of tools and consumables that you may need. Most of them are optional and are subject to personal preferences and circumstance.

Methods of repairing items

Most real world cable repairs I think broadly fall into one of the three categories or ‘methods’ I outline below. They all have advantages and disadvantages. Some allow for saving more time than money and other’s vice versa. Which ones are most appropriate to use will predominantly be based on the repair technician’s personal preference, available materials, and circumstances.

For example one could if one had two good candidate cables, splice them together into a working unit (i.e. method #1) using minimal tooling: just a knife to strip the wires, several unsoldered pig tail splices for the connections, and some electrical tape to isolate the USB wires from each other. And it would work fine. How long for? Who knows – but it will work for the moment and that may actually be enough. I give the example just to illustrate that things can be repaired a number of ways depending on either the person’s (in this case low) resources, and preferences; which can the run the gambit from the “just get it working for now” repair (shown above), to the perfectionist who wants a permanent repair that will outlast the product.

Method #1: splice two cables together

Probably the quickest method of repair involves simply splicing together two cables. This involves cutting the damaged parts off, then joining and soldering the four pairs of wires together according to their colouring. Red and red, green and green, white and white, black and black; and even sometimes the foil metal shielding if present. Simple. However, be mindful to first electrically isolate each of the four individual pairs, then cover over with a larger gauge heat shrink (for neatness) or electrical tape (for cheapness) to group everything together. I recommend a soldered Western Union splice as a method of joining the wires in the pairings. This is due to it’s relatively low profile and due to the mechanical strength of the resulting connection. Which means that in the case of any future tension on the cable such a sudden hard snag; chances are good that the new connection will not break. Nothing hurts my pride quite like having to repair one of my prior repairs. Consequently, I tend to do it properly the first time round.

hyperlink: post_#0003_Basic_techniques_for_connecting_wires

Now, there are obvious limitations to this method. The most pressing is that cables tend to get damaged in the same spot as each other. Especially when used in the same environment (or by the same people!), and in the same applications. So this method is not applicable in these cases. However in cases where it is applicable it is the shortest and easiest route to creating a reliable and viable cable. Primarily because it effectively bypasses the often finicky business of repairing the actual Micro USB plug.

Method #2: mend and make do (with salvaged spares)

So, like I mentioned above: most of these cables break at the same point. Namely, the male Micro USB plug. So unless you want to end up with a bunch of double ended (full size) male USB type-A cables. Splicing together the good ends of your broken cables isn’t going to do you much good.

So what now? Well first things first. We need to understand the extent of the damage itself. When you examine a broken Micro USB plug. If the metal outer shielding of the plug is present, then chances are that the metal plug itself is bent out of alignment by a fair few degrees across it’s broader sides. In this configuration, the state of the plug’s internal pins is unknown; or more to the point: it is unknown as to whether there is continuity across the pins (i.e. are they snapped or broken). By using a pair of pliers you can carefully correct the angle of the plug. I recommend doing this slowly before trying any other fixes. It needs to be slow, in order to give the delicate internal pins time to bend back into alignment. If the cable works after this, then that means that the internal pins were merely bent and not broken; and it also means that the repair is effectively done.

Alternatively, if after angle correction there is no continuity across the cable. Either by buzzing it out using various adapters and a multimeter — or just by plugging it into (hopefully inexpensive) devices and seeing if the devices recognise each other. Then it is time for a more invasive solution. I stipulate ‘inexpensive’ because many devices with USB ports don’t have adequate protection in cases of hard shorts to ground. It’d be pretty disheartening if a person, for example killed that USB 3.0 port on a their wiz bang gaming rig, because the wires were accidentally soldered incorrectly or shorted on that cheap shit cable they were trying to mend. I doubt that would actually happen, but better safe than sorry.

With a sharp knife, slice into the rubber or plastic sides of the plug. Create a broad slice from where the metal Micro USB plug’s base is (or was), all the way across the plug housing and up close to the strain relief. Peel back the rubber or carefully pry open the plastic to reveal the base of the Micro USB plug. Here you should be able to see where the four wires (for a data cable) or two wires (for a power cable) connect to the Micro USB plug’s base internal section.

This area of the cable: where cable meets Micro USB plug; tends to be either injection moulded with plastic or rubber, or filled with a type of hot glue. It is very easy to do more damage to the plug trying to get to it, then the damage that caused the cable to become inoperable in the first place. So if you intend to repair the Micro USB plug (rather than replace it), I advise proceeding with caution here.

Once you have made it to the base of the Micro USB plug. You many notice that the metal outer shield of the Micro USB is sometimes removable. If yours is, then it should be held in by a clip of some sort. Unclip it. Continue carefully dissembling the plug until you find the fault. In my case the internal pins broke as the plug was bent. I could try to re-solder them together or I could replace the Micro USB base with one from either another plug or a spares kit. Since this is the ‘mend and make do’ method, let’s say I went through the tedium of realigning the tiny pins and soldering them – and without melting their plastic housing or shorting them together no less … What I actually did was just replace the plug base with a known good one, for time and reliability.

Reassemble the plug. Then fill in any cavities you may have carved out on your way in, with hot glue. Close the cable head up, then wrap it in electrical tape. Done.

The strength of this method is that you can repair the cable without necessarily having to purchase additional parts. However the disadvantages are that it is very time consuming and finicky work. Work that could ultimately leave you with a plug that is structurally even weaker than the one you started with. So it may soon break again if not handled with care going forwards.

Make sure to do a through continuity test before pressing this cable back into service. Especially when it comes to testing for shorts across the pins. This includes pin 4, which depending on the testing adapter socket you are using, might be inaccessible. In this case I used to use crocodile-clip leads and needles as probes to test the pins on the exposed male plug without a female adapter. Although, I actually recommend just purchasing (or creating) a female Micro USB socket breakout board. It makes life so much easier than faffing about with a bunch of random low quality adapters or needles … which is what I used to do, and don’t really recommend. But sometimes you have to just use the tools in front of you.

  • picture of a dissected USB Micro B plug

Method #3: use a spares kit

This is probably the simplest actual repair after splicing two appropriate cables together. This method involves using a kit to replace the entire Micro USB plug assembly, including the strain relief. After cutting off and discarding the Micro USB head, remove the outer insulation of the cable, strip the the USB wires within and tin them. If the outer insulation is a fabric braid type, then melt the tip of the insulation with heat to stop it from unravelling.

  • picture of a bag of USB Micro B plug heads
  • picture of a USB Micro B plug in parts

Next up, slide on heat shrink (for cable bend relief), and then the Micro USB plug housing. This stage is probably easiest to forget. I can’t count the number of times, I have made a really nice soldered connection, only to undo it because I didn’t remember to slide on heat shrink beforehand. It’s funny, it only really happens on the more permanent joints, like the Western Union splice. I think its because I tend to be too preoccupied with making a good strong connection, that consequently: these types of things tend to slip my mind at the time. So take your time and do things methodically.

Just as an aside: heat shrink, in my opinion makes a good form of bend relief for a cable because it makes the cable a little stiffer along the length leading into the plug. This gives it resistance to bending to extreme angles, or allowing repetitive bend or flex damage to concentrate on a singular point on the cable. As for strain relief for the solder joints on the plug base: adding heat shrink to the cable does little. Id est it doesn’t prevent tugging force on the cable from exerting strain on the soldered connections between the cable’s wires and the Micro USB base’s pads. I’d carefully tie the cable end into a loose overhand knot (if it is of a thin enough gauge to do this), making sure not to cause any acute stress points in the wires as a result. This knot will act as a stopper against the insides of the Micro USB plug’s plastic housing. I am not sure whether or not this is generally advisable protocol, I am just stating what I tend to do. The loose knot offers some resistance to a tugging force as it tightens against the hole in the plastic housing. This in turn relieves the solder joints of some of the strain. Alternatively, filling the Micro USB plug’s housing with hot glue will also act as a decent form of (tugging) strain relief for the solder joints. These two methods do this by redirecting the pulling force away from the solder joints and into the housing and general superstructure of the plug.

Moving on. Now with everything in place, solder the USB wires to their respective pads on the Micro USB plug base. This includes the cable’s outer conductive shielding if present. In order to know which pads correspond to which pins: refer to any user guides or datasheets that may have been shipped with your spares kit. Alternatively test the continuity of the pads to the pins using a multimeter and a female Micro USB breakout board.

To connect the cable’s shielding: roll the loose strands into a cord. You may need to wrap this cord with another wire to extend it enough to reach the Micro USB plug’s outer metal housing. Which is a little further away than the USB solder pads on the example kit I have. I needed this extension to the shielding cord because when I cut the cable, it made all the internal wires and strands equal in length, so an extension was necessary in my case. After scratching off the finish on the part of the Micro USB plug’s metal housing that you intend to solder onto. Apply a small patch of electrical tape to insulate the USB wires from the shielding connection. Next, solder the shielding cord to the metal housing. You may need to apply solder to the twisted shielding cord to harden it and fuse the extension if necessary.

Now. Isolate the internal USB wires from each other, by injecting hot glue over and between the four wires. I use the electrical tape from before as a backing for this. I chose to have the adhesive side facing the USB wires, because I intended to wrap it around them at this stage. After this, pull the heat shrink into position then apply heat. Pull the plastic housing over the plug base and align the plug so that it is straight. I used the plastic cap to set the plug’s position. Once satisfied with the plug’s position within it’s plastic enclosure; remove the plastic alignment cap again and inject hot glue to fill any cavities between the plug base and the enclosure. Reapply the alignment cap. Then carefully apply some heat to the now closed plastic housing to make the hot glue within the enclosure melt into all the crevices and hold the alignment cap on. Be careful here because using too much heat can easily damage the plastic enclosure and alignment cap. Once that is done you are effectively finished.

  • picture of a USB 2.0 type A to USB Micro type B cable. The USB Micro B cable has been replaced with a plug kit.

Testing Phase

Although I tend to test at each discrete stage of a repair, for things such as bridged connections between pins or for consistent continuity across connections. I also recommend a final testing phase where we test the resistance of each wire using a USB 2.0 type-A female breakout board and a USB Micro type-B breakout board; or whatever the appropriate boards for the cable you are testing are.

The reason why I do this is to make sure that all the lines are of appropriate conductivity. In other words there aren’t any spikes in resistance in any of the lines that may cause problems when in use. This is especially true for data lines, where resistance will damage signal integrity. Although it is also important for power lines in use-cases involving higher current draws (around 2-3 Amps), such as those used in ‘fast chargers’. If there is sufficient resistance on the VBUS here it will retard the device’s ability to draw power across the cable.

Examples of improvised testing adapters

It’s generally good protocol to have a control test for comparison when testing your repaired cable(s). In this case I used a Samsung brand, model: U2 APCBU10BBE data cable that came new with a smart phone purchase. Please note: the control cable used here is not designed for higher current draws, it’s device needed a maximum of around 700mA to 1 amp when charging.

(Control) Samsung (U2 APCBU10BBE) data cable:
VBUS: 0.2 ohms
D-: 0.3 ohms
D+: 0.3 ohms
GND: 0.4 ohms
Shielding: none
Cable length (approx.): 1 meter

(Testing) Repaired w/kit yellow cable:
VBUS: 0.2 ohms
D-: 0.3 ohms
D+: 0.5 ohms
GND: 0.6 ohms
Shielding: 0.1 ohms
Cable length (approx.): 1 meter

(Testing) Repaired w/spares red braid (‘fast charge’) cable:
VBUS: 0.2 ohms
D-: 0.3 ohms
D+: 0.2 ohms
GND: 0.1 ohms
Shielding: none
Cable length (approx.): 2 meters

As you can see, they tested close enough that I feel that the cables that we repaired are of an appropriate quality, at least for me to have enough confidence to press them into service. Alternatively instead of using a control test for comparison, if you manage to find a datasheet for a particular cable you wish to replicate. The data from the datasheet can be used as a target instead. I just found it easier to see how my everyday cable fairs, then try to ape it’s stats. Consequently I do not have a concrete idea of what the resistance tolerances and acceptable margins are for these cables to maintain signal integrity while in use. But I am confident from the comparisons with the control cable that we are within them.

However, if say a cable tested (pulling numbers from my … hat) 15 ohms on a data line. I would inspect the repair, if it seems fine: then the problem could be with the cable itself. For example: such as in a wire where many of it’s hidden internal strands have broken due to repeated localised flex damage. So all the current is having to pass through just a few strands at that point, causing an invisible bottleneck. This should have been tested for at the initial stages of a repair when the cable was first cut and the wires exposed. But still, finding this fault at this stage, allows you to make the informed decision on how to go forwards, either demote it to a power only cable (and mark it as such), scrap it for parts, or find and fix the newly discovered fault.

Eventually, once you reach a stage where you are confident in a cable’s performance, the repair is truly complete and it is now ready to use. Done. This time for real. Thank you for reading.

References / Sources / Further Reading:

https://en.wikibooks.org/wiki/Serial_Programming/USB#What_is_USB?
https://en.wikipedia.org/wiki/USB
https://en.wikipedia.org/wiki/USB_hardware
https://en.wikipedia.org/wiki/USB_On-The-Go
https://en.wikipedia.org/wiki/USB_(Communications)#Signaling_state
https://www.ifixit.com/Guide/Micro-USB+Port+Replacement/73401
https://www.portplugs.com/how-to-repair-a-loose-micro-usb-port/
https://www.youtube.com/watch?v=36CKsP9YQ1E [why does USB keep changing – NostalgiaNerd]
https://goughlui.com/2014/10/01/usb-cable-resistance-why-your-phonetablet-might-be-charging-slow/
https://www.mschoeffler.de/2017/10/29/tutorial-how-to-repair-broken-usb-cables-micro-usb-including-data-transfer/
https://www.mouser.com/pdfdocs/HiroseZX62Datasheet24200011.pdf
https://www.howtogeek.com/670644/what-is-fast-charging-and-how-does-it-work/