| in | Name | Wire color | Description |
|---|---|---|---|
| 1 | VBUS | Red | +5 V |
| 2 | D− | White | Data− |
| 3 | D+ | Green | Data+ |
| 4 | ID | N/A | Permits detection of which end of a cable is plugged in, “A” connector (host): connected to the signal ground, “B” connector (device): not connected |
| 5 | GND | Black | Signal ground |
Source of the information:
https://www.neverstopbuilding.com/blog/wiring-micro-usb-pinout