Skip to content
If this is your first visit, please click here to learn about shipping and delivery.
If this is your first visit, please touch here to learn about shipping and delivery.
Solderable DIY Micro-USB cable plugs from PMD Way

Identifying a DIY Micro-USB Plug Before Wiring It: A, B and the ID Contact

Five small solder contacts can make a Micro-USB plug look deceptively straightforward. The difficult part is often deciding exactly what those contacts represent in the particular connector on the bench. Micro-A, Micro-B and Micro-AB are related names with different meanings, and the drawing viewed from the mating face is not automatically the view seen while soldering.

For a successful custom lead, settle the connector identity and intended USB role before heating the soldering iron. That preparation is especially useful when repairing an instrument lead or making a short connection inside an enclosure.

Use the part details, not the collection heading

The USB Micro A connector collection includes DIY Micro USB plugs described as solderable cable plugs. The product description does not establish a detailed Micro-A versus Micro-B drawing or a complete termination specification. Do not infer those details solely from the collection name.

Obtain the supplier's exact connector identification and drawing for the parts supplied. Compare the shell, contact arrangement and keying with the receiving socket. Never force a plug into a socket that seems almost compatible. A photograph is useful evidence of shape, but a part drawing and continuity checks are stronger evidence for wiring.

Understand the A, B and AB distinction

In the legacy USB On-The-Go arrangement, a Micro-AB receptacle can accept Micro-A and Micro-B plugs. The inserted plug helps determine the initial role of a dual-role device. Microchip's USB On-The-Go application note explains the A-device and B-device terminology.

This is not a promise that any device with a small USB socket supports both roles. The controller, power circuitry, software and connector implementation must support the intended operation. Soldering a different plug onto a cable does not add a USB host controller to a peripheral.

Also distinguish the five-contact USB 2.0 Micro connector discussed here from larger SuperSpeed Micro connector arrangements. Counting only the familiar portion of a wider connector can produce an incomplete wiring plan.

The ID contact is not an extra power conductor

The usual five USB 2.0 Micro contact functions are shown below. Use the exact connector drawing to locate the numbered contacts; this table deliberately does not prescribe a left-to-right solder-side view.

USB 2.0 Micro connector contact functions
Contact number Function Assembly consideration
1 VBUS The USB power conductor; keep isolated from data contacts.
2 D− One member of the differential data pair.
3 D+ The other data-pair member; polarity matters.
4 ID Connector-role identification in the relevant legacy OTG arrangement.
5 GND Power and signal reference conductor.

Microchip publishes the same numbered functions in its Micro-AB interface documentation. That example board's circuitry should not be copied blindly into a different application.

For conventional Micro-A and Micro-B cable assemblies, ID treatment differs. The USB-IF connector compliance updates specify a grounded ID contact for Micro-A and a high resistance to ground for Micro-B. Do not bridge ID to ground as a general repair technique, and do not use it as a spare supply conductor.

Make a wiring worksheet before assembly

Draw both cable ends separately. Mark whether each sketch shows the mating face or the termination side, and place the drawing's contact numbers beside the actual solder positions. Turning a plug around can reverse the apparent order; repeatedly rotating a tiny part while mentally tracking five wires invites mistakes.

Record each conductor's function, its measured connection at the other end and its destination contact. Wire colours are convenient labels, but an unknown cable should be mapped with a meter while completely disconnected. A replacement lead may not follow the colours expected from another cable.

Include the shield and shell in the worksheet. Their treatment comes from the specified cable assembly and equipment design. Do not assume the metal shell is a substitute for the dedicated ground conductor, or add arbitrary shell-to-contact bridges.

Plan the mechanical joint as carefully as the solder joint

Check that the selected cable diameter fits the connector's exit and strain relief. The jacket should be restrained so an external pull is not carried by five delicate soldered conductors. If the housing cannot grip the jacket correctly, select a better-matched cable or connector rather than relying on a large lump of solder.

Slide any captive housing parts onto the cable before termination. Prepare only the conductor length needed for the documented construction. Excess exposed wire creates short-circuit opportunities, while unnecessarily long untwisted data conductors can degrade signal integrity.

Use an appropriate fine tip, magnification and a stable holder. Follow the connector's soldering limits rather than repeatedly reheating the insert until a joint looks acceptable. Stop if the contact support softens or a terminal moves. A mechanically damaged insert is not restored by a successful continuity reading.

Inspect and test in stages

  1. Check the unfinished wiring map. Confirm each conductor reaches its intended numbered contact with the cable isolated from all equipment.
  2. Inspect neighbouring terminals. Look for solder bridges, loose strands and insulation pulled back too far.
  3. Check unwanted connections. Compare resistance checks with the planned circuit, including ID treatment and shield connections.
  4. Close the housing and repeat. The shell or strain relief can disturb a joint that passed before assembly.
  5. Test the intended function. Use a suitable protected test arrangement and known-good equipment, starting with inspection and power checks before relying on data operation.

A continuity test proves only part of the job. A hand-assembled lead can pass DC checks yet fail USB communication because of cable construction, poor termination or an intermittent contact. Successful charging also does not verify data continuity or USB signal quality.

A useful example: replacing a damaged instrument lead

Suppose a USB peripheral's cable fails near the plug. First confirm that the socket and instrument still work with a known-good lead. Then identify the replacement plug and map the original cable while disconnected. Preserve the documented USB functions rather than copying the visual wire order from a different connector.

After rebuilding, test reconnection, normal data transfer and gentle movement near the strain relief. If reliable performance cannot be established, replace the complete cable. For high-volume use or demanding data links, a suitably specified manufactured cable is generally easier to qualify than a handmade assembly.

Can grounding ID make any device support OTG?

No. ID is a role-detection input in a supported design, not a universal upgrade switch. Use the device manufacturer's documentation to establish host capability, power sourcing and permitted cables before making an OTG connection. Correct connector identification prevents a wiring experiment from becoming an unintended power-path experiment.

Previous article Battery Power for Arduino Projects: Voltage Range, Runtime and Regulator Heat