1

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
  • 217
  • 2
  • 10

2 Answers2

1

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?

Tom77
  • 166
  • 5
1

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

cde
  • 301
  • 1
  • 3
  • 12