5

I would like to add a Raspberry Pi to an existing two-node server setup to get an utility / playing / monitoring linux system independent from the two PCs, but I can not actually consume another mains plug.

My idea would be to power the Raspberry Pi from USB ports of both PCs so if one goes down or gets shut down the Pi will always be powered, but I know / presume I should not directly connect the power lines of the two USB ports together.

This is possibly related to this other question but I have to interface to two actual PC usb ports and not two mains power supplies: I guess I don't have the luxury to afford voltage drops from diodes.

Getting someone to do some soldering work is not a problem, as far as I tell him exactly what I need :)

Is there any ready-made product or some schematic I could use to achieve this "redundant R-Pi power supply from two USB ports" ?

2
  • 6
    There is one another issue I'm not sure you are aware off - you should not power RaspberryPi from PC USB port at all. This is because RaspberryPi has no means to enumerate itself (it has no data lines in miniUSB power socket) so it can't negotiate it's power needs. This means that PC is not obligated to provide more than 100mA of power in this case. Commented Apr 15, 2013 at 17:55
  • @KrzysztofAdamski I know about the 1 unit load limit unless the device actually negotiates otherwise, but after something like 8 months of continuous uptime I'm pretty confident those ports can sustain the Raspberry Pi :)
    – Luke404
    Commented Apr 15, 2013 at 20:47

4 Answers 4

1

Use two schottky diodes, something like this:

scheme

1
  • How well does that cope with one line failing then coming back. DOes it cause any dips or spikes? Could it brown out the Pi? Simple solution though :)
    – Piotr Kula
    Commented Sep 13, 2013 at 15:35
0

I believe that there are in fact several products that do this. You can use the Startech Dual USB - micro USB Cable, or this OWC cable. It should be able to work, but I have not tested it personally.

If you have any issues, please contact me through the comments.

2
  • 3
    That's not really what the OP needs since those seems to be normal Y cables that would electrically connect USB ports in both computers which may create a problem. Commented Apr 15, 2013 at 17:52
  • Exactly. I'm sorry but the cables you suggested would only give nasty electrical problems.
    – Luke404
    Commented Apr 15, 2013 at 20:49
0

Maybe it's too straightforward, but can you just use a relay, for example a SPDT (Single Pole Double Throw) one? You may attach those two USB 5V sources to the two inputs of the SPDT relay and use the relay output to power the Pi. Also use one of the USB 5V to control the relay coil. Depending on the switching speed, you need to choose a certain size capacitor to keep the voltage from dropping too low during the switching.

3
  • I honestly fail to see how the Pi could "always be powered" if the currently selected source goes down. Please note we are talking about "power source going down", not about "human being wants to turn off one power source".
    – Luke404
    Commented Sep 13, 2013 at 10:06
  • I forgot to mention you need a capacitor for this. Answer modified. Commented Sep 13, 2013 at 13:17
  • And yes it can "handle power source going down". Since we are using one power source to control the coil. If it's down, the relay will be switched to another position automatically. Commented Sep 13, 2013 at 13:27
0

https://www.8086.net/ sell dual feed-in usb power devices. Dual Ideal Diode devices which accept 2x USB Power in and then can power a raspberry Pi. If 1 of the power-in fails the other takes the full load.

They sell 3 versions:

2
  • what is your affiliation with 8086.net?
    – jsotola
    Commented Jul 17 at 23:53
  • None. Others make similar dual ideal diode devices, but are not as easy to source.
    – Firefishy
    Commented Jul 19 at 7:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.