how must I connect a USB micro b connector to reach 5v?
Attached is a clip of a schematic from a working product. Pin 1 is +5, Pin 5 is 0V. You can look up the datasheet for the connector (part number shown). Pins 2 and 3 are Data lines (D- and D+ respectively), which you didn't ask about.



Pin 4 is used to select between host and client for OTG, and should be left open.