I have an embedded Raspberry Pi in an enclosure, with a micro-USB female socket (see middle picture) for power input.
Is it correct to power the Raspberry Pi like this (micro-USB socket
VCC to GPIO
5V pin #2 and micro-USB socket
GND to GPIO
GND pin #6)?
Will there be some voltage regulation?
Will it be exactly the same as if the charger is directly connected to the Raspberry Pi micro-USB female socket, like this:
Would there be better voltage regulation/protection with this choice?