Electronic – how must I connect a USB micro b connector to reach 5v

connectorusb

I'm designing a circuit and want to power it through a USB Micro B connector. I have already installed the connector on my board, but after connecting the USB female connector of the wire to my computer, I donĀ“t get any voltage on the Micro USB B connector. How must I connect it? I used to use a USB B connector on my through hole prototype and it worked very good but it had only 4 pins. Can anyone help me?

Best Answer

USB cables have 4 wires inside, normally black is GND and red is +5V and are at opposite sides of the connection e.g. 5V|D+|D-|GND probe with your multimeter to check which is which.