Building a Simple Mining Rig Restarter with Raspberry Pi

11 Jul
2017

Making your own solution for restarting a mining rig that has frozen is relatively simple for pretty much anyone, you just need a Raspberry Pi board and a couple of 5V relay boards and you can be up and running in no time. You can use the base RPi operating system and with the help of WiringPi you can get easy control of the GPIO pins of the Pi, even direct console one with the GPIO utility. Of course you can install a web server with some basic visual interface as well, simple buttons to drive on/off the relays connected to the GPIO pins of the Pi board.

If you have a spare Raspberry Pi 3 you have up to 28 channels available to drive on/off relays, though based on our experience only 25 of the GPIO puns are actually reliable usable. Pins 2, 3 and 14 have a bit of erratic behavior being in high (triggered state) when the Pi board boots up or temporary switching on and then off when rebooting the board, so it is wise to skip them. Another possible issue is the GPIO pin 0 (the bottom white one) as using zeroes can be tricky when programming something, so be careful with that one as well. We have been using the relays to short the on/off button on the motherboard forcing the mining rig to shut down and then start up again. This works surprisingly well and you avoid the need to work with the high 110V/220V mains power going through the relays that can cause problems for not so experienced users. Our latest setup relies on driving 18 rigs though a single RPi 3 board, so we have a couple of spare channels available for extending the functionality of the controller further if we need to.

So if you are looking for relatively cheap way to get remote control over the power of more mining rigs that are not easily rebootable otherwise you might want to start playing with Raspberry Pi and relays. It is not so cheap for just a few rigs as you need to buy a Pi 3 board, but once the number of rig rises the cost per system lowers. You can always start with a few and then add extra systems if needed, again you should have no problems driving up to 25 systems through the GPIO pins of the RPi 3. There are of course other commercial solutions also available for you to purchase that have been developer by miners for miners such as the SimpleMining SimpleRigResetter that we have talked about last year and now there is apparently a new version of the device already available, though it seems to be out of stock at the moment.



Other Similar Publications:

7 Responses to Building a Simple Mining Rig Restarter with Raspberry Pi

Niels

July 11th, 2017 at 17:19

Not exactly counterfeit, as that implies something that looks like but isn’t quite the real thing. These are simple bait-and-switch, weight based fraud/theft. Are there more widespread reports of this? Or is this isolated to a particular region of the world?

chronek

July 11th, 2017 at 22:16

my rigs never frezze, modded, undervolted, overclocked, stable, but always have problem with thunderstorm, have to go and disconect all power.. and there is no solution, lightning could jump through the switches and fuses..

SA

July 12th, 2017 at 00:06

webiopi is working fine for that purpose

chronek

July 12th, 2017 at 11:47

@SA for what purpose? Webiopi will not save your rigs on thunderstorm, where lightning connect sky and ground, few cm more is nothing to leap. Only disconnect and retract cables to appropriate distances can save…

tytanick

July 12th, 2017 at 12:33

chronek, you can use ethernet protectors for that :)
And for rig resetting / controlling you can always use my SimpleRigResetter Device :P

Pavel

July 14th, 2017 at 08:17

Main question here, how determine that rig is frozen. Only with ping? or check some other metrics for example?

admin

July 14th, 2017 at 17:38

Multiple approaches are available for checking if a rig is frozen, you can use Ping, watch TeamViewer ID status, monitor workers at pool, monitor mining software through API (if available), install additional software on each mining rig to report data etc…

Leave a Reply

Your email address will not be published. Required fields are marked *

top