
The standard Micro USB pinouts for power are below.

Next to Ground is the ID pin followed by Data+, Data- then VCC.
Some (very few) devices require the ID pin to be connected, this can be bypassed with a 130k resistor connected to Ground. This is supposed to be used to tell the device if an OTG cable is connected, hence rarely used for charging.