It's for On-The-Go, to select which device is the host or slave:

The OTG cable has a micro-A plug on one side, and a micro-B plug on the other (it cannot have two plugs of the same type). OTG adds a fifth pin to the standard USB connector, called the ID-pin; the micro-A plug has the ID pin grounded, while the ID in the micro-B plug is floating. The device that has a micro-A plugged in becomes an OTG A-device, and the one that has micro-B plugged becomes a B-device. The type of the plug inserted is detected by the state of the pin ID .

Answer from Oli Glaser on Stack Exchange
๐ŸŒ
NextPCB
nextpcb.com โ€บ home โ€บ blog โ€บ usb connector types & pinout explained
USB Connector Types & Pinout Explained
April 26, 2023 - It retains the original 4 pins for backwards compatibility but adds 5 new pins: two dedicated differential pairs for receiving (RX+ / RX-) and transmitting (TX+ / TX-) data in full-duplex, plus an extra ground pin for signal shielding.
๐ŸŒ
Pinterest
pinterest.com โ€บ explore
Usb Pinout 5 Pin
Explore essential USB pinout diagrams for 5-pin connections.
Discussions

Pinout diagram for usb type-b out of 5 pin header
first hit on google https://www.aggsoft.com/usb-pinout-cable/usb2.htm More on reddit.com
๐ŸŒ r/AskElectronics
8
2
December 16, 2021
5 pin to USB-A... What is the fifth wire?
Thank you for this info in 2025 More on reddit.com
๐ŸŒ r/fightsticks
6
4
June 19, 2022
Does anyone know what the USB pinout for Virpil's 5-pin connectors are?
Should be very easy to measure the pinout on it. Otherwise, is imagine this is a very generic aviation style connector, measure the diameter and get the correct pin count. ... My stow mount failed for my throttle and the USB cable broke. I have no idea what kind of connection this is. Another Reddit thread said it's a XS9-5... More on reddit.com
๐ŸŒ r/hotas
20
2
December 9, 2022
Help with 5 wire USB color code.
Fwiw, I have a couple of USB cables that did not have data - I.e. they were power only cables and only had two wires in them. The colours were white and yellow. So I wouldn't necessarily trust the colour coding. Sine you have headers, you could use a multimeter to find out which wire connects to which pin on the USB connector and go from there. More on reddit.com
๐ŸŒ r/arduino
19
10
November 5, 2021
People also ask

What Is a USB Pinout?
A USB pinout is a visual guide or layout that shows where each pin is located in a USB connector and what each one does. Some pins are used for power, others for data, and some for grounding.
๐ŸŒ
a2zems.com
a2zems.com โ€บ home โ€บ parent page โ€บ current page
USB Pinout: Meaning, Types, Wiring, and Functions | A2Z EMS
How many pins are in a USB-C connector?
A standard full-featured USB-C connector has 24 pins (12 on the top row, 12 on the bottom row). This symmetric design allows for reversible plugging.
๐ŸŒ
nextpcb.com
nextpcb.com โ€บ home โ€บ blog โ€บ usb connector types & pinout explained
USB Connector Types & Pinout Explained
Are all USB pinouts the same?
No. USB pinouts vary significantly based on both the physical connector (Type-A, Micro, Type-C) and the generation (USB 2.0 vs USB 3.0). While core elements like VBUS and GND remain universal, high-speed protocols and modern forms like USB-C add many more pins.
๐ŸŒ
nextpcb.com
nextpcb.com โ€บ home โ€บ blog โ€บ usb connector types & pinout explained
USB Connector Types & Pinout Explained
๐ŸŒ
Ariat-Tech
ariat-tech.com โ€บ blog โ€บ usb-connector-types-mini-usb-connectors-pinouts.html
USB Connector Types: Mini USB Connectors & Pinouts
July 8, 2024 - These are Pin 1 (VCC) which provides power (+5V). Pin 2 (D-) for data transmission. Pin 3 (D+) for data transmission. Pin 4 (ID) used for identifying the cable or device (often not connected). Pin 5 (GND) for completing the circuit. The pinout of a standard USB connector varies slightly by type.
๐ŸŒ
Pinout Guide
pinoutguide.com โ€บ PortableDevices โ€บ micro_usb_pinout.shtml
Micro-USB 2.0 connector pinout signals @ PinoutGuide.com
5 pin Micro-USB Type A, Type B receptacle connector ... According to 63 reports in our database (61 positive and 1 negative) the Micro-USB 2.0 connector pinout should be correct.
๐ŸŒ
WireIt
electrical.design โ€บ tools โ€บ pinouts โ€บ mini-usb
Mini-USB (Mini-B) Connector Pinout - 5-Pin Diagram & Wiring Guide | WireIt
Complete Mini-USB pinout: Pin 1: VBUS (5V), Pin 2: D-, Pin 3: D+, Pin 4: ID. Free printable 5-pin diagram for Digital cameras & MP3 players.
Find elsewhere
๐ŸŒ
Pinout Guide
pinoutguide.com โ€บ PortableDevices โ€บ mini-USB_pinout.shtml
mini-USB 2.0 connector pinout signals @ PinoutGuide.com
Pinout of mini-USB connector and layout of 5 pin mini-USB plug connector and 5 pin mini-USB jack connectorUSB (Universal Serial Bus) designed to connect peripherals and exist in a wide variety of digital devices.
๐ŸŒ
PC Basic
pcbasic.com โ€บ blog โ€บ usb_pinout.html
USB Pinout: A Comprehensive Guide
USB pinout of Micro USB is different than Type A and Type B USB connectors. Micro USB consists of five pins which are Power supply pins (VBUS (+5V), GND), Data transfer pins (D+, D-), and identification pins (ID).
๐ŸŒ
A2Z EMS
a2zems.com โ€บ home โ€บ parent page โ€บ current page
USB Pinout: Meaning, Types, Wiring, and Functions | A2Z EMS
December 23, 2025 - They offer high-speed data, fast charging, and video output, thanks to a more advanced pin configuration. ... A USB pinout is a visual guide or layout that shows where each pin is located in a USB connector and what each one does.
๐ŸŒ
WellPCB
wellpcb.com โ€บ blog โ€บ components โ€บ usb-pinout
USB Pinout Guide | Pin Configuration & Connector Layout
5 days ago - Note: all generations of the Type-A USB connector have pins 1 to 4, while third-generation connectors have pins 5-9. The USB Type B is most notable for its use in printers and scanners. It has a vastly different pinout than the Type A USB connector.
๐ŸŒ
Reddit
reddit.com โ€บ r/askelectronics โ€บ pinout diagram for usb type-b out of 5 pin header
r/AskElectronics on Reddit: Pinout diagram for usb type-b out of 5 pin header
December 16, 2021 -

Does anybody have a pinout diagram for a 5 pin usb type-b header? I looked online and couldnโ€™t find one. This is for a usb microphone (Blue Snowball) by the way.

๐ŸŒ
Saberbay
saberbay.com โ€บ products โ€บ micro-usb-male-port-5-pin
Micro USB Male Port 5 Pin โ€“ Saberbay
Micro USB Male Port 5 Pin
Micro USB male port, plugs into the micro USB female ports commonly found on CFX and Proffie boards. 5 pin layout. Can be used with our USB-C port as part of an external data transfer cable to connect to the board. Can also be used with our USB-C port and TC4056 charging module as part of an external data transfer/battery charging port. (Please see wiring diagram picture for proper wiring schematic)
Price ย  $2.00
๐ŸŒ
CableOrganizer
cableorganizer.com โ€บ blogs โ€บ articles โ€บ understanding-usb-port-pinouts
Understanding USB Port Pinouts โ€“ CableOrganizer
June 6, 2022 - The 4-pin Mini USB wiring scheme is the same as the Standard USB pinout detailed above, but the slightly different 5-pin setup follows the layout shown in the chart above.
๐ŸŒ
Reddit
reddit.com โ€บ r/fightsticks โ€บ 5 pin to usb-a... what is the fifth wire?
r/fightsticks on Reddit: 5 pin to USB-A... What is the fifth wire?
June 19, 2022 -

As mentioned in the subject - most sticks I have opened up or bought parts for has a USB to 4 pin connector. Even most cables I've cut open only had 4 wires. I recently got a gift of an PS3 Madcatz TE from a friend and I'm trying to mod it and realized it had a 5 pin connector on its usb cable. That's when I realized the board I am trying to replace it with also had 5 connection points... So what is the difference? What does the extra wire do?

๐ŸŒ
Etechnophiles
etechnophiles.com โ€บ usb-pinout-ports-connectors
10 USB Pinout Explained- USB A, B, C(Male and Female)
November 9, 2025 - USB Mini B is thinner and more compact than Mini A. Hence, it is used for PDAs, digital cameras, etc. Another significant development introduced with Type Mini is that it has an additional pin to support On-the-GO (OTG) connection.
๐ŸŒ
Reddit
reddit.com โ€บ r/hotas โ€บ does anyone know what the usb pinout for virpil's 5-pin connectors are?
r/hotas on Reddit: Does anyone know what the USB pinout for Virpil's 5-pin connectors are?
December 9, 2022 - The CM3 throttle (at least the version they currently make) doesn't share the CM2's USB wiring setup; it uses a 4-pin connector for USB instead of the CM2's 5-pin connector.
๐ŸŒ
RS
uk.rs-online.com โ€บ web โ€บ content โ€บ discovery โ€บ ideas-and-advice โ€บ usb-connectors-guide
A Complete Guide to USB Connectors
January 8, 2026 - Mini USB pinout is something you need to be aware of when plugging into either of these smaller USB ports. Whereas the USB connector pinout on other models will be the same for all connectors of that type, there exists both a 5-pin and a 4-pin version of USB Mini-b sockets.