Bitcoin Forum
May 14, 2024, 10:55:50 AM *
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: PiMiner - DIY mining controller/monitor with Raspberry Pi [v1.1]  (Read 35829 times)
LaserHorse (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
July 14, 2013, 08:37:19 AM
 #61

I don't know what you are using for init there are a few ways around it, if your using something oldish like SystemV (it has the /etc/init.d file structure) I have used this method a few times with limited success;-

http://askubuntu.com/questions/257808/how-can-i-use-init-d-or-some-other-method-to-run-a-screen-script-on-boot-up/

Thanks for the link - appears Raspbian is still using sysvinit.  Will give this a try.

Learning more about Arch - looks pretty mean & lean, can see why you use it  Wink

PiMiner - control & monitor your miners with Raspberry Pi   •   BTC: 1AV5JekeEVET5u2jTsLDMRsTtagrBnNTBR
1715684150
Hero Member
*
Offline Offline

Posts: 1715684150

View Profile Personal Message (Offline)

Ignore
1715684150
Reply with quote  #2

1715684150
Report to moderator
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
LaserHorse (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
July 14, 2013, 08:41:21 AM
 #62

I'm totally in love with this project! Will be adapting it for BFL Jalapenos.

That would be nice!  I have some ideas for incorporating the RPi+LCD with the enclosure I'd like to try.

PiMiner - control & monitor your miners with Raspberry Pi   •   BTC: 1AV5JekeEVET5u2jTsLDMRsTtagrBnNTBR
xgtele
Sr. Member
****
Offline Offline

Activity: 288
Merit: 250



View Profile
July 14, 2013, 12:29:59 PM
 #63

How many USB Block Erupters one Raspberry Pi can handle? 10, 20, 100??
SpAcEDeViL
Legendary
*
Offline Offline

Activity: 986
Merit: 1027


Miner-Control.de Pooler


View Profile WWW
July 14, 2013, 09:36:18 PM
 #64

Hy,

i read only "connecting to cgminer..." on my LCD.

The Miner is running, but there dont connect? Or is this a error in PiMiner?

LaserHorse (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
July 14, 2013, 10:15:49 PM
Last edit: July 15, 2013, 12:31:52 AM by LaserHorse
 #65

i read only "connecting to cgminer..." on my LCD.

The Miner is running, but there dont connect? Or is this a error in PiMiner?

Hmm … can you check to ensure the contents of cgminer.conf have copied correctly with no formatting errors?

If so, then please try the following:

    • Confirm cgminer is running with:
       ps aux | grep cgminer

You should see a multi-line response, including at least one line beginning w "root" - example
If not, then try starting cgminer again (PiMiner scripts should find it automatically after a few moments.)

If you've confirmed cgminer *is* running, then you can try:

    • Manually shutting down processes and then restarting them.
    • Reboot the Pi, and wait for auto-start to begin & connect.

If none of the above resolves the issue, confirm that you've followed all steps in the tutorial, then let me know what model RPi and OS(Raspbian, Occidentalis) you're using, and we'll go from there.

fyi - I'll be adding a FAQ/troubleshooting page to the tutorial soon which will cover the above steps.


How many USB Block Erupters one Raspberry Pi can handle? 10, 20, 100??

I believe the theoretical limit of 127 devices - have yet to verify this myself tho Wink

PiMiner - control & monitor your miners with Raspberry Pi   •   BTC: 1AV5JekeEVET5u2jTsLDMRsTtagrBnNTBR
notlist3d
Legendary
*
Offline Offline

Activity: 1456
Merit: 1000



View Profile
July 15, 2013, 03:42:29 AM
 #66

I believe the theoretical limit of 127 devices - have yet to verify this myself tho Wink

What is the highest that someone has proved?  I would LOVE to see a pic of large amount using this.
alexrossi
Legendary
*
Offline Offline

Activity: 3738
Merit: 1742


Join the world-leading crypto sportsbook NOW!


View Profile
July 15, 2013, 05:46:27 AM
 #67

I believe the theoretical limit of 127 devices - have yet to verify this myself tho Wink

What is the highest that someone has proved?  I would LOVE to see a pic of large amount using this.

I've read something about this, rpi can handle with a decent percentage of hw errors 40 block erupters, over 40 CPU load is always on 100% and hw errors % increase

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
SpAcEDeViL
Legendary
*
Offline Offline

Activity: 986
Merit: 1027


Miner-Control.de Pooler


View Profile WWW
July 15, 2013, 09:13:34 AM
 #68

i read only "connecting to cgminer..." on my LCD.

The Miner is running, but there dont connect? Or is this a error in PiMiner?

Hmm … can you check to ensure the contents of cgminer.conf have copied correctly with no formatting errors?

If so, then please try the following:

    • Confirm cgminer is running with:
       ps aux | grep cgminer

You should see a multi-line response, including at least one line beginning w "root" - example
If not, then try starting cgminer again (PiMiner scripts should find it automatically after a few moments.)

If you've confirmed cgminer *is* running, then you can try:

    • Manually shutting down processes and then restarting them.
    • Reboot the Pi, and wait for auto-start to begin & connect.

If none of the above resolves the issue, confirm that you've followed all steps in the tutorial, then let me know what model RPi and OS(Raspbian, Occidentalis) you're using, and we'll go from there.

fyi - I'll be adding a FAQ/troubleshooting page to the tutorial soon which will cover the above steps.


How many USB Block Erupters one Raspberry Pi can handle? 10, 20, 100??

I believe the theoretical limit of 127 devices - have yet to verify this myself tho Wink

Hy,

yes i have used that tut. from adafruit. The Miner is up and running good.

I can connect to the api from my windows computer with CGWatcher.

I use Raspbian.

When PiMiner starts boot or by restart it show the IP address from the raspberry, and then comes "connecting to cgminer ... " thats all.

When i push up or down i become on one display the actual prices. Hi and Lo. ...

So i thing the PiMiner becomes so API connect or dont connect to them?

Stale
Newbie
*
Offline Offline

Activity: 46
Merit: 0



View Profile
July 16, 2013, 12:27:51 AM
 #69

I believe the theoretical limit of 127 devices - have yet to verify this myself tho Wink

What is the highest that someone has proved?  I would LOVE to see a pic of large amount using this.

I've read something about this, rpi can handle with a decent percentage of hw errors 40 block erupters, over 40 CPU load is always on 100% and hw errors % increase

On a related note, can anyone chime in on how stable the RasPi is as a mining platform? I've heard that the RasPi has some stability issues (especially when dealing with USB), though I've never actually used one myself.

I'd be inclined to order one if they can handle ~40 USB Erupters for 24x7 stably.
LaserHorse (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
July 16, 2013, 05:16:09 AM
 #70

yes i have used that tut. from adafruit. The Miner is up and running good.

I can connect to the api from my windows computer with CGWatcher.

I use Raspbian.

When PiMiner starts boot or by restart it show the IP address from the raspberry, and then comes "connecting to cgminer ... " thats all.

When i push up or down i become on one display the actual prices. Hi and Lo. ...

So i thing the PiMiner becomes so API connect or dont connect to them?

Strange, I'm unable to recreate this bug - PiMiner always manages to connect to cgminer for me, tho it can take up to ~30 seconds or so.
Which version of the RPi are you using - Model A or Model B?

I'll check a few more possible causes …


On a related note, can anyone chime in on how stable the RasPi is as a mining platform? I've heard that the RasPi has some stability issues (especially when dealing with USB), though I've never actually used one myself.

I'd be inclined to order one if they can handle ~40 USB Erupters for 24x7 stably.
I've mined for about 2 weeks with with 5 USB Block Erupters, no issues - only stopped as I had to restart the RPi for testing.

PiMiner - control & monitor your miners with Raspberry Pi   •   BTC: 1AV5JekeEVET5u2jTsLDMRsTtagrBnNTBR
boost75
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile WWW
July 16, 2013, 06:56:51 AM
 #71

Where can I buy assembled Adafruit 16x2 LCD display? Thank you.

Drop me a line if you're still looking. I'm selling assembled and tested ones for $45 shipped.
SpAcEDeViL
Legendary
*
Offline Offline

Activity: 986
Merit: 1027


Miner-Control.de Pooler


View Profile WWW
July 16, 2013, 08:40:03 AM
 #72



Strange, I'm unable to recreate this bug - PiMiner always manages to connect to cgminer for me, tho it can take up to ~30 seconds or so.
Which version of the RPi are you using - Model A or Model B?

I'll check a few more possible causes …

I have Raspi  Model B.

CG Miner 3.1.1

On one screen i become the message
"format
error"

when i push the up or down button.

i use german language config in raspi.

so in Germany we work with comma, for numbers eg. 1.000 in English is 1000 in German and the comma is for *,00 

i dont know if this the right way... but a idea.


SpAcEDeViL
Legendary
*
Offline Offline

Activity: 986
Merit: 1027


Miner-Control.de Pooler


View Profile WWW
July 16, 2013, 05:31:13 PM
 #73

Hy,

now its running. But, why? : Here is my old config file

Code:
{
"pools" : [
{
"url" : "eu-stratum.btcguild.com:3333",
"user" : "spacedevil_4",
"pass" : "egalo"
}
],

"api-port" : "4028",
"api-listen" : true,
"api-allow" : "W:127.0.0.1, 192.168.0.142",
"expiry" : "120",
"failover-only" : true,
"hotplug" : "5",
"log" : "5",
"no-pool-disable" : true,
"queue" : "2",
"scan-time" : "60",
"worktime" : true,
"shares" : "0",
"kernel-path" : "/usr/local/bin",
"icarus-options" : "115200:1:1",
"icarus-timing" : "3.0=100"
}

And the working one:

Code:
{
"pools" : [
{
"url" : "eu-stratum.btcguild.com:3333",
"user" : "spacedevil_4",
"pass" : "egalo"
}
]
,
"api-listen" : true,
"api-port" : "4028",
"expiry" : "120",
"failover-only" : true,
"log" : "5",
"no-pool-disable" : true,
"queue" : "2",
"scan-time" : "60",
"worktime" : true,
"shares" : "0",
"kernel-path" : "/usr/local/bin",
"api-allow" : "0/0",
"icarus-options" : "115200:1:1",
"icarus-timing" : "3.0=100"
}

Rotorgeek
Newbie
*
Offline Offline

Activity: 44
Merit: 0



View Profile
July 16, 2013, 06:27:09 PM
 #74

I'm certainly no expert, but I notice on line 8-9 the comma is in different place. When I had trouble with mine it was formatting errors like that. (I think)
turtle83
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250


Supersonic


View Profile WWW
July 16, 2013, 06:48:30 PM
 #75

Code:
"api-allow" : "W:127.0.0.1, 192.168.0.142",

maybe the space between the 2 ips?

cgminer 3.1.1 on my desktop accepted your old config without any fuss...

agath
Full Member
***
Offline Offline

Activity: 164
Merit: 100


View Profile
July 16, 2013, 07:02:41 PM
 #76

With 40 B.E. CPU occupation is at ~45%, so I think it can handle up to around 60 of them. The problem are USB hubs. For some reason the installed USB controller can't handle very well those hubs made with two cascaded hub internally. And I didn't find any (not expensive) solution to hook more than 20 devices reliably and 40 devices with stability problems. I would be happy to being able to connect 40 to 60 devices, I'm still looking for a serious USB HUB.
LaserHorse (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
July 16, 2013, 08:02:53 PM
 #77

now its running. But, why? : Here is my old config file
[…]

comparing the files, I see the following differences:



likely the api-allow address
also cgminer 3.1.1 doesn't use hotplug

PiMiner - control & monitor your miners with Raspberry Pi   •   BTC: 1AV5JekeEVET5u2jTsLDMRsTtagrBnNTBR
SpAcEDeViL
Legendary
*
Offline Offline

Activity: 986
Merit: 1027


Miner-Control.de Pooler


View Profile WWW
July 16, 2013, 08:18:58 PM
 #78

now its running. But, why? : Here is my old config file
[…]

comparing the files, I see the following differences:



likely the api-allow address
also cgminer 3.1.1 doesn't use hotplug

Hy, ok, but why i cant not use two IPs... so when i will check the miner over CGWatcher or anything...


Another question : can i change the color on startup to green? And change the glow of the display ?
I am new in this Wink

LaserHorse (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
July 17, 2013, 02:42:36 AM
Last edit: July 17, 2013, 03:03:09 AM by LaserHorse
 #79

Hy, ok, but why i cant not use two IPs... so when i will check the miner over CGWatcher or anything...

In "cgminer.conf" try replacing this line:
Code:
        "api-allow" : "0/0",
with this:
Code:
        "api-allow" : "0/0, W:127.0.0.1, 192.168.0.142",
I don't use CGWatcher, so can't test it myself.


Another question : can i change the color on startup to green? And change the glow of the display ?
I am new in this Wink

You can edit the file named "PiMinerDisplay.py" to change which LCD colors can be selected.
The list of colors is defined starting at line #19:
Code:
		self.col = (self.lcd.ON,   self.lcd.OFF, self.lcd.YELLOW, self.lcd.OFF,
               self.lcd.GREEN, self.lcd.OFF, self.lcd.TEAL,   self.lcd.OFF,
                self.lcd.BLUE,  self.lcd.OFF, self.lcd.VIOLET, self.lcd.OFF,
                 self.lcd.RED,    self.lcd.OFF)

If you'd prefer to only use green, you can replace those 4 lines with this line:
Code:
		self.col = (self.lcd.GREEN, self.lcd.OFF)

EDIT: you'll also need to change line #51 in "PiMiner.py" from:
Code:
                lcd.backlight(lcd.ON)
to:
Code:
                lcd.backlight(lcd.GREEN)

Just remember to keep the indentations as seen above, or python may bite Wink

The only other LCD function which can be controlled is the display contrast, which can be altered using the onboard potentiometer


Hope that helps!

PiMiner - control & monitor your miners with Raspberry Pi   •   BTC: 1AV5JekeEVET5u2jTsLDMRsTtagrBnNTBR
JLM
Full Member
***
Offline Offline

Activity: 164
Merit: 100



View Profile
July 17, 2013, 04:08:08 PM
 #80

I'm totally in love with this project! Will be adapting it for BFL Jalapenos.
Post progress

1Hyawq17jkzfpunPC6tTikpgMGSsekd98z
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!