This may be an easy question for electronically inclined, but I am not too savy in that area.

I have a little bramble in a rack, where I don't necessarily have access. The bramble has an x86 master board that I can always access (KVM switch). The pis all are powered from the same psu as the server, so I can reboot them all by cycling the server. However this is cumbersome and I'd prefer to reboot them individually even in situations where the OS isn't running or responsive.

I would love for someone to share schematics for a cheap, easy to build usb controlled circuit breaker, that could reboot them individually (or in smaller groups though I doubt that buys us anything).

  • Max, how many RPi do you have, and what kind are they, Model Bs or As? Rev 1 or Rev 2? Rev 2 could use a simpler USB GPIO module with a transistor connected to the P6 Reset pin Header.
    – cde
    Apr 19 '13 at 14:01
  • 15 atm but maybe more. All of them newest revision of Model B, so if the reset pin header is easier that would be fine too.
    – Max
    Apr 19 '13 at 14:04

You can buy relay boards that are controlled via USB. E.g. this:

USB relay board

You would wire the power supply of each Pi to an individual relay, the power supply for each Pi can then be controlled by a computer connected to the relay board's USB interface.

Another possibility would be to use the Pi's built-in watchdog. See this answer to How do I hard reset a Raspberry Pi?

  • This sounds good. The watchdog won't really work unless the operating system is running at the time I want them to reboot, right?
    – Max
    Apr 19 '13 at 14:05

While a USB Relay Module will work, relays are bigger, louder, and some require an additional power source. The more channels you need, the more it takes. They are useful for situations when you have to physically cut power though.

The other option is a USB GPIO Module. Essentially the same thing, but without the relays and the passive parts needed for them.

enter image description here

Model B Rev 2 Raspberry Pis have a header labeled P6. It is tied to the Run (Enable) Pin of the BCM2835 SOC that runs the RPI. Shorting Pin 1 to Pin 2 (Ground), will cause the BCM2835 to hard reset. From the RPi Schematic:
enter image description here

Using a USB GPIO Module with a 1kΩ Resistor and any common NPN transistor, you can electronically control this.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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