Bitcoin Forum
May 08, 2024, 03:54:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 [5] 6 »  All
  Print  
Author Topic: [DIY] auto-hard-reset mining rigs with Raspberry Pi  (Read 8486 times)
ChrisTaylor
Newbie
*
Offline Offline

Activity: 66
Merit: 0


View Profile
March 12, 2018, 10:59:02 AM
 #81

i know this is not he correct place to ask this but.. is there any chance of a non so much tech savy people to join mining? I undestand the value that i can generate from it, but sadly im not geek out to the max in this matter.
1715183641
Hero Member
*
Offline Offline

Posts: 1715183641

View Profile Personal Message (Offline)

Ignore
1715183641
Reply with quote  #2

1715183641
Report to moderator
1715183641
Hero Member
*
Offline Offline

Posts: 1715183641

View Profile Personal Message (Offline)

Ignore
1715183641
Reply with quote  #2

1715183641
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715183641
Hero Member
*
Offline Offline

Posts: 1715183641

View Profile Personal Message (Offline)

Ignore
1715183641
Reply with quote  #2

1715183641
Report to moderator
1715183641
Hero Member
*
Offline Offline

Posts: 1715183641

View Profile Personal Message (Offline)

Ignore
1715183641
Reply with quote  #2

1715183641
Report to moderator
puwaha
Sr. Member
****
Offline Offline

Activity: 700
Merit: 294


View Profile
March 13, 2018, 03:39:38 AM
 #82

I set it up, the pi and relay worked fine i think, I saw lights blink in accordance on relay with it had to reset, but it didnt.
I think because I had to put few of those jumper cables together the current didnt make it to the motherboard.
What cables are recommended ?

Just buy a pack or two of these project cables like these:

https://www.amazon.com/gp/product/B01EV70C78/ref=oh_aui_detailpage_o05_s01?ie=UTF8&psc=1

kuupea
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
March 13, 2018, 04:56:23 AM
 #83

I set it up, the pi and relay worked fine i think, I saw lights blink in accordance on relay with it had to reset, but it didnt.
I think because I had to put few of those jumper cables together the current didnt make it to the motherboard.
What cables are recommended ?

Just buy a pack or two of these project cables like these:

https://www.amazon.com/gp/product/B01EV70C78/ref=oh_aui_detailpage_o05_s01?ie=UTF8&psc=1



Cheers.
Turns out the relay is dead, it does not 'click' , so I'm getting a new board. Also grabbed some wire and going to solder together the wires with jumper cables instead of daisy-chaining.
huntingthesnark
Member
**
Offline Offline

Activity: 357
Merit: 26


View Profile WWW
March 13, 2018, 08:36:11 AM
 #84

I set it up, the pi and relay worked fine i think, I saw lights blink in accordance on relay with it had to reset, but it didnt.
I think because I had to put few of those jumper cables together the current didnt make it to the motherboard.
What cables are recommended ?

Just buy a pack or two of these project cables like these:

https://www.amazon.com/gp/product/B01EV70C78/ref=oh_aui_detailpage_o05_s01?ie=UTF8&psc=1



Cheers.
Turns out the relay is dead, it does not 'click' , so I'm getting a new board. Also grabbed some wire and going to solder together the wires with jumper cables instead of daisy-chaining.

I used the project cables into the MB, then soldered on some of this: http://amzn.to/2Ht70zr Cheap as chips, ideal for longer runs.

For the latest Crypto news and alts info check out https://coinsjar.info/
Kasmetski (OP)
Jr. Member
*
Offline Offline

Activity: 50
Merit: 3

Searchin` perfection!


View Profile
March 13, 2018, 01:23:26 PM
 #85

Looks like most of the problems are with the initial setup and all connections between RPI and the relay.
This week I will move some machines to the farm and I will take pictures of the whole setup to be easier for new people.

Makefinity - Unleash Your Creativity
heavyarms1912
Full Member
***
Offline Offline

Activity: 729
Merit: 114



View Profile
March 16, 2018, 03:44:05 PM
 #86

I am planning to use energy monitoring capabilities of smartplug to auto-reboot rigs based. 
Have observed typically on miner/OS crashes the power consumption would drop.  Thankfully haven't faced a hard hang with GPUs running at max clocks/volts.

I have figured out how to do this remotely on tp-link HS110.  (Doesn't even have to be in same network)
polymer_city2
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile
March 17, 2018, 01:47:49 PM
 #87

Update on Windows IoT version.

2 day in and I have it all plugged in and working with a basic UI.

Windows IoT is surprisingly easy to work with.

I had problems with my 8 channel “5v” board.

Turns out it only ran with 12v! So that is powered off a PSU now.

I ping claymore port, then turn relay on if no response.

I had to check firewall settings for claymore too, that gave me some silly problems.
Lunga Chung
Member
**
Offline Offline

Activity: 277
Merit: 23


View Profile
March 17, 2018, 01:59:32 PM
 #88

Don't want to troll the thread but isn't this solution easier to use for vast majority of miners ?

https://www.aliexpress.com/item/LAN-RJ45-interface-Industrial-Network-16-Channels-relay-board-controller-for-home-automation-remote-control-switch/32661796157.html?spm=2114.search0104.3.2.5a427fc3RpXEX1&ws_ab_test=searchweb0_0,searchweb201602_3_10152_10151_10065_10344_10068_10342_10343_10340_10341_10696_10084_10083_10618_10307_5711213_10313_10059_10534_100031_10103_10624_10623_443_10622_10621_10620_5711313_5722413,searchweb201603_1,ppcSwitch_5&algo_expid=9c395e60-8d94-4d6f-a988-8b8f28690f76-0&algo_pvid=9c395e60-8d94-4d6f-a988-8b8f28690f76&priceBeautifyAB=0

There is also a source code available
slv1221
Newbie
*
Offline Offline

Activity: 44
Merit: 0


View Profile WWW
March 17, 2018, 02:07:37 PM
 #89

is there any way to add a telegram bot?
puwaha
Sr. Member
****
Offline Offline

Activity: 700
Merit: 294


View Profile
March 17, 2018, 03:15:53 PM
 #90

I am planning to use energy monitoring capabilities of smartplug to auto-reboot rigs based. 
Have observed typically on miner/OS crashes the power consumption would drop.  Thankfully haven't faced a hard hang with GPUs running at max clocks/volts.

I have figured out how to do this remotely on tp-link HS110.  (Doesn't even have to be in same network)

I have built something like this... It works very well:

https://bitcointalk.org/index.php?topic=2866608
heavyarms1912
Full Member
***
Offline Offline

Activity: 729
Merit: 114



View Profile
March 17, 2018, 06:01:57 PM
 #91

I am planning to use energy monitoring capabilities of smartplug to auto-reboot rigs based. 
Have observed typically on miner/OS crashes the power consumption would drop.  Thankfully haven't faced a hard hang with GPUs running at max clocks/volts.

I have figured out how to do this remotely on tp-link HS110.  (Doesn't even have to be in same network)

I have built something like this... It works very well:

https://bitcointalk.org/index.php?topic=2866608

Good one.  What happens if the OS crashes?  How does the awesome miner send a signal then?

What I have tested so far is use GET/POST curl command requests so basically needs no signal from the Rig actually.  All I am doing is communicating with the smart plug and monitoring power consumption.  Reboot if the power consumption falls below a threshold level for sometime.  I can see a point of failure still - authentication token expires for my curl command requests (smart plug goes bad and network is down can't be handled anyways)
puwaha
Sr. Member
****
Offline Offline

Activity: 700
Merit: 294


View Profile
March 17, 2018, 07:29:35 PM
 #92

I am planning to use energy monitoring capabilities of smartplug to auto-reboot rigs based. 
Have observed typically on miner/OS crashes the power consumption would drop.  Thankfully haven't faced a hard hang with GPUs running at max clocks/volts.

I have figured out how to do this remotely on tp-link HS110.  (Doesn't even have to be in same network)

I have built something like this... It works very well:

https://bitcointalk.org/index.php?topic=2866608

Good one.  What happens if the OS crashes?  How does the awesome miner send a signal then?

You wouldn't run Awesome Miner on your rig, it should be a separate machine or virtual machine.  Otherwise, like you thought... how could it reboot a rig?

huntingthesnark
Member
**
Offline Offline

Activity: 357
Merit: 26


View Profile WWW
March 19, 2018, 01:45:34 PM
 #93

is there any way to add a telegram bot?

Can anybody share the telegram commands they use for multiple rigs?

For the latest Crypto news and alts info check out https://coinsjar.info/
heavyarms1912
Full Member
***
Offline Offline

Activity: 729
Merit: 114



View Profile
March 19, 2018, 02:38:57 PM
Last edit: March 19, 2018, 02:51:33 PM by heavyarms1912
 #94

I am planning to use energy monitoring capabilities of smartplug to auto-reboot rigs based.  
Have observed typically on miner/OS crashes the power consumption would drop.  Thankfully haven't faced a hard hang with GPUs running at max clocks/volts.

I have figured out how to do this remotely on tp-link HS110.  (Doesn't even have to be in same network)

I have built something like this... It works very well:

https://bitcointalk.org/index.php?topic=2866608

Good one.  What happens if the OS crashes?  How does the awesome miner send a signal then?

You wouldn't run Awesome Miner on your rig, it should be a separate machine or virtual machine.  Otherwise, like you thought... how could it reboot a rig?



I see.  And I am guessing it needs to be running on the same network?
Also,  I have observed instances where the ping requests work even though miner would've crashed.  how does it tackle those situations?

EDIT: I have tested the following components for my script so far.

1.  get power readings for my rigs
2.  reboot rig if power is below a threshold and notify via. an email
3.  script can run remotely.  I was actually trying to figure out to keep this running on a cellphone.

Just need to workout all these with wait time before/after reset.
puwaha
Sr. Member
****
Offline Offline

Activity: 700
Merit: 294


View Profile
March 20, 2018, 03:36:46 AM
 #95

You wouldn't run Awesome Miner on your rig, it should be a separate machine or virtual machine.  Otherwise, like you thought... how could it reboot a rig?



I see.  And I am guessing it needs to be running on the same network?

Yes, same network for simplicity, or you have a VPN connection between locations if your miners are at a different location than the Awesome Miner computer.


Quote
Also,  I have observed instances where the ping requests work even though miner would've crashed.  how does it tackle those situations?

You have other rules in Awesome Miner that will take care of restarting the miner if it crashes.  You can even have it reboot the rig if you think it's necessary.

We should probably discuss it on the other thread and not junk up this thread about using Raspberry Pis.


Quote
EDIT: I have tested the following components for my script so far.

1.  get power readings for my rigs
2.  reboot rig if power is below a threshold and notify via. an email
3.  script can run remotely.  I was actually trying to figure out to keep this running on a cellphone.

Just need to workout all these with wait time before/after reset.


Use my script in the other thread as a guide.  You definitely want a few 60 second waits to allow the rig to boot back up so that Awesome Miner doesn't run the rule again because the rig hasn't fully rebooted to start responding to pings.
ne0x86
Newbie
*
Offline Offline

Activity: 81
Merit: 0


View Profile
March 22, 2018, 12:52:29 PM
Last edit: March 22, 2018, 01:17:16 PM by ne0x86
 #96

I've made a remote power rig manager, so i can send commands to my pi, that send command to my relay and the magic happens
I can press the power button for soft On/Off, i can pres the reset so the machine shut off and turn on again, or i can press Hard button, for a hard reset if the machine is stuck( it ill hold power for 6 seconds, wait 10 seconds, and them start the machine again

the design is pretty bad , but it works


https://i.imgur.com/NXb9hx6.png

Hi, can you share this html?

Thanks!

And thanks @Kasmetski for this awesome tool.
polymer_city2
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile
March 30, 2018, 06:34:45 AM
 #97

I have uploaded my Windows IoT rig rebooter for Rpi

https://github.com/ColossusFX/RigRebooter-UWP


https://prnt.sc/iyd3ci


Just add your IP address and corresponding GPIO pins
RigMaster
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
April 17, 2018, 10:49:35 PM
 #98

Hi Guys

Firstly, @Kasmetski for the amazing work on this rig resetter. It's exactly what I was looking for after weeks of headache with my rig hanging and I must drive 40 miles to reboot!.

I have purchased a Raspberry Pi 3 Model B and installed Raspbian just now. I have also enabled SSH and changed the password for user Pi for security.

Now, I am on Github but I'm not sure what to do from here...

Should I run:
Code:
sudo curl -O https://github.com/Kasmetski/auto-hard-reset/archive/master.zip
to download the file to the default directory?

After this, github mention to run:
Code:
tar -xvzf auto-hard-reset-arm7.tar.gz
chmod +x auto-hard-reset-arm7

But I checked in Github file list I don't see any auto-hard-reset-arm7.tar.gz filename.

Please help, sorry for the noob question... I'm sure I am overlooking something.
mercoinz
Jr. Member
*
Offline Offline

Activity: 39
Merit: 5

muthafukin gem huntah


View Profile
April 21, 2018, 03:52:18 AM
 #99

I have uploaded my Windows IoT rig rebooter for Rpi

https://github.com/ColossusFX/RigRebooter-UWP


https://prnt.sc/iyd3ci


Just add your IP address and corresponding GPIO pins

this is great! going to give this a shot, thank you so much!

merrvn#8782
Godm0de
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
June 06, 2018, 01:22:21 PM
 #100

Hi,

thx for the github project, works like a charm. Smiley

I have a few questions, maybe someone has an answer to it:

- I want to connect 3 relais boards (2x8 channel + 1x4 channel). I have connected the 2 relais with 8 channels to the 5v pins of my raspbery pi and the 4 channel relais to the 3.3v pin. The relais are all 5v, but I've connect the 1x4 channel relais to the 3.3v pin and it also works. Is this dangerous, or is it ok, to connect a 5v relais to the 3.3v pin?

- I have read somewhere, that you should use a resister between PI and relais boards, to limit the current. Is this really necessary?

- Some LEDs on my relais boards are lit very dim at startup and stays at this level. I think this is because of the default GPIO levels, after startup of the PI. If the relais is swichted one time, the LEDs are dark. Maybe you should initialize all the pins, at startup to LOW voltage state.

Pages: « 1 2 3 4 [5] 6 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!