micro usb cable wiring diagram

Micro USB Cable Wiring Diagram: The Ultimate Pinout Guide for DIY Repairs

By Daniel Martin
AD

Whether you are repairing a frayed charging cable, building a custom adapter, or troubleshooting a device that refuses to sync, a micro USB cable wiring diagram is one of the most practical references you can keep on your workbench. Micro USB connectors still appear on budget phones, development boards, game controllers, power banks, Bluetooth speakers, and countless older gadgets. The plug looks simple, but its five pins carry power, data, and identification signals that decide whether a cable only charges or also transfers files.

A reliable micro USB cable wiring diagram maps every pin inside the connector to its function and, when possible, its wire color. Once you understand the USB 2.0 micro USB pinout, you can test dead cables, make OTG adapters, replace broken connectors, and avoid sending dangerous voltage into sensitive electronics. This guide explains the standard pinout, common color codes, and hands-on ways to use the diagram during repair or custom cable projects.

Understanding the Standard Micro USB Pinout

The standard micro USB connector for USB 2.0 uses five pins. These are labeled VBUS, D-, D+, ID, and GND. The connector is smaller than mini USB and was once required for charging many mobile devices. Its pin spacing and shape are designed for repeated insertions, though the tiny contacts can wear out or break away from the PCB after years of use.

AD
two different types of wires connected to each other and labeled in red, green, and blue
two different types of wires connected to each other and labeled in red, green, and blue
Usb Outlet Wiring Diagram
Usb Outlet Wiring Diagram
Usb Outlet Wiring Diagram
Usb Outlet Wiring Diagram

Pin numbering depends on how you view the connector. Looking into the plug or receptacle, the contacts are numbered from one side to the other. In the common micro USB pinout, pin 1 is VBUS, pin 2 is Data Minus, pin 3 is Data Plus, pin 4 is ID, and pin 5 is Ground. Some cables also include a shield connection, which is not one of the five signal pins but helps reduce electromagnetic interference.

Pin Functions Explained

VBUS is the positive power pin. It normally carries 5 volts from a host or charger to the device. Ground is the return path for that power and must never be confused with VBUS. The D- and D+ pins form a differential pair for USB 2.0 data. If either data line is broken, the cable may still charge but will fail to transfer files or establish a proper USB connection.

an info sheet describing how to use the usb charger cable for wiring and installation
an info sheet describing how to use the usb charger cable for wiring and installation
the usb type - c male to micro usb female cable is shown in this diagram
the usb type - c male to micro usb female cable is shown in this diagram
Usb micro
Usb micro

The ID pin is the special pin that enables USB On-The-Go, often shortened to OTG. In a standard USB-A to micro USB cable, the ID pin is usually not connected inside the plug. In an OTG adapter, the ID pin is connected to ground, which tells the attached device to act as a host rather than a peripheral. That small difference is why a charging cable and an OTG cable can look identical but behave very differently.

  • Pin 1, VBUS: +5V power supply.
  • Pin 2, D-: USB data minus.
  • Pin 3, D+: USB data plus.
  • Pin 4, ID: OTG identification, often not connected in standard cables.
  • Pin 5, GND: Ground return.

Wire Colors and Cable Variations

Many micro USB cables follow a familiar color code: red for VBUS, black for ground, white for D-, and green for D+. The ID pin may be absent, left unconnected, or use a color such as blue, yellow, or bare wire. Because there is no single enforceable color standard for every manufacturer, you should verify continuity with a multimeter instead of trusting wire color alone.

AD

Some cables are charging-only and omit the D- and D+ conductors entirely. Others use thinner wires for power and data, which increases resistance and can slow charging. There are also proprietary cables that re-purpose the ID pin or add resistors for specific devices. If you are replacing a connector or splicing a cable, confirm the pinout of the original device before you solder anything.

the wiring diagram for an electronic device that is connected to a usb type - c male
the wiring diagram for an electronic device that is connected to a usb type - c male
the usb outlet wiring diagram shows how to connect and unplugged wires with each other
the usb outlet wiring diagram shows how to connect and unplugged wires with each other
Power Supply Cable 2 Pin USB 2.0 A Female Male 4 Pin Wire Charger Charging Cord Type C Mini MicroUSB
Power Supply Cable 2 Pin USB 2.0 A Female Male 4 Pin Wire Charger Charging Cord Type C Mini MicroUSB
the diagram shows how to wire up an electronic device with multiple wires and connectors
the diagram shows how to wire up an electronic device with multiple wires and connectors
an image of a wiring diagram for a mini usb pinouts and plugs
an image of a wiring diagram for a mini usb pinouts and plugs
the usb micro - b connectors are labeled in this diagram
the usb micro - b connectors are labeled in this diagram

How to Read and Apply a Micro USB Wiring Diagram

Reading a micro USB cable wiring diagram starts with orientation. Identify the connector type, the viewing angle, and the pin numbering. A diagram may show the plug, the receptacle, or both. If the orientation is wrong, VBUS and GND can be reversed, which can instantly damage a device. Always match the diagram to the exact connector you are holding.

Next, trace each pin to its destination. In a USB-A to micro USB cable, the USB-A end has four main pins: VBUS, D-, D+, and GND. The micro USB end adds the ID pin. A complete diagram shows how those lines cross or connect, including whether the shield is tied to ground at one end or both ends. For repair work, this trace is more useful than a simple color chart.

AD

Diagnosing and Repairing a Faulty Cable

To diagnose a micro USB cable, set a multimeter to continuity mode. Check VBUS from one end to the other, then check GND. If either fails, the cable has a broken power or ground conductor. After that, test D- and D+ for continuity. A cable that charges but does not sync usually has a broken data line or a damaged data pin inside one of the connectors.

MOBILE DATA CABLE
MOBILE DATA CABLE
the wiring diagram for micro usb pinouts is shown in three different colors and sizes
the wiring diagram for micro usb pinouts is shown in three different colors and sizes
Inderjit - #technology #CircuitDiagram | Facebook
Inderjit - #technology #CircuitDiagram | Facebook
247K views · 1.6K reactions | USB Pinout Diagram 🔌 | Micro USB vs Type-C vs USB-A Explained ⚡️😱 Learn the USB pinout diagram for Micro USB, USB Type-C, and USB Standard-A connectors. This simple visual guide | Engineering School
247K views · 1.6K reactions | USB Pinout Diagram 🔌 | Micro USB vs Type-C vs USB-A Explained ⚡️😱 Learn the USB pinout diagram for Micro USB, USB Type-C, and USB Standard-A connectors. This simple visual guide | Engineering School

When repairing, cut the damaged section away and strip the outer jacket carefully. Micro USB wires are thin, so use a fine-tip soldering iron and avoid overheating the insulation. Solder each conductor to its matching pin, insulate the joints with heat shrink, and test continuity again before plugging the cable into anything valuable. A strain relief layer of heat shrink or electrical tape will help the repair survive daily use.

Building OTG Adapters and Custom Cables

An OTG adapter is one of the most common custom projects that requires a micro USB cable wiring diagram. To make a basic adapter, connect the ID pin, usually pin 4, to ground, usually pin 5. The VBUS, D-, and D+ lines still need to pass through correctly. When the ID pin is grounded, compatible phones and tablets can read USB flash drives, keyboards, mice, and other low-power peripherals.

AD

Custom cables for development boards also rely on the same pinout. For example, a Raspberry Pi Zero or Arduino board may need a micro USB cable with only power and ground, or it may require full data lines for programming. Always check the board's documentation because some boards use the micro USB connector for power only, while others use it for both power and serial communication. Label your custom cables clearly so you do not confuse a charging-only cable with a data cable later.

A good micro USB cable wiring diagram turns a mystery into a checklist. Keep one printed near your soldering station, verify every pin with a multimeter, and label the cables you modify. That small habit can save a phone, a microcontroller, or an entire afternoon of frustration, and it makes future repairs faster and far less intimidating.

AD