Raspberry pi charging circuit

eligri97

Reputable
Sep 20, 2016
114
0
4,680
Hi!

Please forgive my "incredible" paint skills ;)

Would this circuit work for charging without disconnecting battery? The +- would be soldered straight to the usb vcc/gnd on the battery pack, rasp pi usb port and female usb charging end. The signal cables ignored.

If I had the 3 point powerswitch set to "raspberry pi" then plugged in the charging cable to the female end, would the connected gnd but non-connected vcc cause damage?

Cheers
 

Rookie_MIB

Distinguished
I would put a moderately sized capacitor on the wires between the + and - wires BETWEEN the switch and the Pi. Reason why is simple - as the switch goes from the battery to the USB there is a moment when there will be NO power supplied to the PI (as the switch goes from one positive input to the other. The capacitor will provide some power as it hits that momentary inbetween state.

Unless you went and did it via transistors which would allow the switching within tiny fractions of a second.

Also, I would also point out that technically, on a two position switch like that, the CENTER post is the common post - as in that is the one that should go to the Pi. The posts on the ends go to each power lead.

Edit: here's what I would suggest:

circuit.for.pi.gif
 

eligri97

Reputable
Sep 20, 2016
114
0
4,680


Wouldn't it be that the left side connects power-in and power-out to pi, while right side connects power in and power-out to female usb?

Would no capacitor cause damage to the pi? Feels like the moment of no power would just slow down boot by like a fraction of a second?