i'm trying to build a system with a Raspberry Pi and 2 switchable 5V DC Batteries (USB Powerbanks). I want to switch using Arduino and Relays. I would like to switch almost instantaneous, in order to avoid that Pi is booting. But this might result in a powersurge of a few milliseconds, i guess of 10V. Switching time of the relays should be arround 10ms.
The device that contains the Raspberry Pi is rather expensive, so i figured, i'd better ask than try: How big is the risk that the Raspberry Pi is being damaged in those milliseconds?
The switch would be every 2hours, at most.
And how would you rate the chance that the Pi is not rebooting while switching? is there some grace-time that i could take while switching?
Thanks!
More information: im trying out different routes here. the other one is, using Power Multiplexers like this one: https://www.ti.com/product/TPS2121 (havent received it yet, hard to get). is this a better solution?
Edit: it's not a huge deal if the device is rebooting every couple hours, but i'd rather try not to.
it seems to me that some switcher like this should exist prebuilt.
... it probably does exist, but it is off topic to ask where to get one