I just soldered a USB OTG cable to connect a keyboard (regular USB-A) to a Raspberry Pi Zero (micro-USB).
How to wire the VCC, GND, D- and D+ pins was obvious and the cable works. However both connectors have a pin that is connected to the connectors metal enclosure. The cable I used has a wire mesh for shielding.
How am I supposed to connect the shielding:
- Both connectors metal enclosure to the wire mesh
- Only one connectors metal enclosure to the wire mesh (which one?)
- Connect shielding to ground?
This question has been asked before: Understand the shielding of a USB device But it was not answered, aso I am not sure if the fact that this is an OTG cable makes a difference (I guess in case 2. I would have to connect the mesh to the micro-USB that connects to the raspberry, not the keyboard!?)