Bitcoin Forum
December 13, 2024, 05:40:24 PM *
News: Latest Bitcoin Core release: 28.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 35908 times)
phrog
Newbie
*
Offline Offline

Activity: 35
Merit: 0



View Profile
July 18, 2013, 08:23:26 AM
 #81

Quote from: The tutorial
Note: this is not the latest version of cgminer, at the time of this writing, the current version (3.3.1) has issues communicating with Block Erupter USB on Raspbian

FYI, I also experienced issues with Block Erupter USB's on Raspbain. However I was successful at building and running cgminer from git (3.3.1) after dist-upgrading Raspbain from wheesy to jessie.  

LaserHorse (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
July 18, 2013, 09:22:54 AM
 #82

FYI, I also experienced issues with Block Erupter USB's on Raspbain. However I was successful at building and running cgminer from git (3.3.1) after dist-upgrading Raspbain from wheesy to jessie.  

Thnx - good to know!  I'll update the tutorial once jessie is considered stable.

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

Activity: 19
Merit: 0



View Profile
July 21, 2013, 01:43:57 AM
Last edit: July 21, 2013, 04:10:49 PM by 33Warlord
 #83

Thanks for the great project, LaserHorse.

My Pi Miner has been running great for the past week with 9 Erupters.   But, I'm having a problem adding more Erupters to it and hope that someone may be able to share some guidance.  

When trying to add 6 additional Erupters (for a total of 15), I discovered that it will only "see" 13 total.  i.e., typing "ls /dev/*USB*" only lists ttyUSB0 - ttyUSB12, even though there are 15 Erupters installed.

A few notes:
  • I built a second RPi Miner, with a newly imaged SD-card, and ran into the exact same issue.
  • The 15 Erupters were installed across 3 DLink DUB-H7 hubs, 5 in each hub.  So I don't think its power related.
  • These 3 hubs feed into a 4th hub which is connected to the RPi.
  • I'm using Raspbian, and followed the build process specified in your project walk-through.
  • The 2 Erupters that it wont see are running fine on a separate RPi miner.  So it doesn't appear to be a hardware problem with those Erupters.

Any recommendations for troubleshooting this?   Is there a default max number of USB serial devices that are enumerated in Raspbian?
Rotorgeek
Newbie
*
Offline Offline

Activity: 44
Merit: 0



View Profile
July 21, 2013, 11:19:24 PM
 #84

Laserhorse,
Can a backup pool be put in the .conf? I added a pool while mining and hit 'S' and 'W' but it didn't change anything. What about other options can be added, like difficulty?
LaserHorse (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
July 22, 2013, 11:43:58 PM
 #85

Laserhorse,
Can a backup pool be put in the .conf? I added a pool while mining and hit 'S' and 'W' but it didn't change anything. What about other options can be added, like difficulty?

yup - add'l pools can be added to the conf file like so:

Code:
"pools" : [
        {
                "url" : "FIRST POOL ADDRESS:PORT",
                "user" : "WORKER NAME",
                "pass" : "PASSWORD"
        },
        {
                "url" : "SECOND POOL ADDRESS:PORT",
                "user" : "WORKER NAME",
                "pass" : "PASSWORD"
        },
]

And yes - you can add a pool or make other changes from within cgminer:
hit "S" to go to settings,
then "W" to write the config file
and save it by entering the following location: "/home/pi/cgminer.conf"
and enter "y" confirm that you wish to overwrite the preexisting file.


Thanks for the great project, LaserHorse.

My Pi Miner has been running great for the past week with 9 Erupters.   But, I'm having a problem adding more Erupters to it and hope that someone may be able to share some guidance.  

When trying to add 6 additional Erupters (for a total of 15), I discovered that it will only "see" 13 total.  i.e., typing "ls /dev/*USB*" only lists ttyUSB0 - ttyUSB12, even though there are 15 Erupters installed.

A few notes:
  • I built a second RPi Miner, with a newly imaged SD-card, and ran into the exact same issue.
  • The 15 Erupters were installed across 3 DLink DUB-H7 hubs, 5 in each hub.  So I don't think its power related.
  • These 3 hubs feed into a 4th hub which is connected to the RPi.
  • I'm using Raspbian, and followed the build process specified in your project walk-through.
  • The 2 Erupters that it wont see are running fine on a separate RPi miner.  So it doesn't appear to be a hardware problem with those Erupters.

Any recommendations for troubleshooting this?   Is there a default max number of USB serial devices that are enumerated in Raspbian?


hmm … so the hubs are *not* connected in a series/chain, correct?
I haven't tested with more than six erupters myself, so you have me at a bit of a loss here.  
Shot in the dark, but have you tried specifying ttyUSB13 & ttyUSB14 even though they don't show with ls?

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

Activity: 19
Merit: 0



View Profile
July 23, 2013, 02:09:51 AM
Last edit: July 23, 2013, 03:19:08 AM by 33Warlord
 #86

hmm … so the hubs are *not* connected in a series/chain, correct?
I haven't tested with more than six erupters myself, so you have me at a bit of a loss here.  
Shot in the dark, but have you tried specifying ttyUSB13 & ttyUSB14 even though they don't show with ls?

Thanks for the ideas and feedback.

To answer your question - you are correct, the hubs are not in series, but rather connected in a hub/spoke style.  (RPi -> Hub1. Then Hub1 connects to Hub2, 3 and 4 directly.)

I did not try specifying ttyUSB13 & 14, although that is a great suggestion.  

I'll try it in a few days when I get back in town, and post my results back here.

SamHa1n
Member
**
Offline Offline

Activity: 60
Merit: 10


View Profile
July 23, 2013, 03:40:46 AM
 #87

I like pi! half finished.

http://imgur.com/BiIMKJb


Have had 80+ on a single pi.
LaserHorse (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
July 23, 2013, 06:04:03 AM
 #88

I like pi! half finished.

http://imgur.com/BiIMKJb


Have had 80+ on a single pi.

... ladies & gentlemen, I believe we have a new pi-hi-score

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

Activity: 588
Merit: 500



View Profile
July 23, 2013, 07:53:43 AM
 #89

I like pi! half finished.

http://imgur.com/BiIMKJb


Have had 80+ on a single pi.

... ladies & gentlemen, I believe we have a new pi-hi-score

I can't ever see the poor little thing... Buried with hashpower Grin

Acquista il mio libro "Investire Bitcoin": clicca qui
dc81
Member
**
Offline Offline

Activity: 108
Merit: 100


View Profile
July 26, 2013, 04:08:20 PM
 #90

anyone know of a case that will also accommodate the lcd?

also, I made a slight change to PiMinerInfo.py since if you have multiple pools, it doesn't actually know which one you are currently mining on

33Warlord
Newbie
*
Offline Offline

Activity: 19
Merit: 0



View Profile
July 26, 2013, 06:52:04 PM
 #91

anyone know of a case that will also accommodate the lcd?

The original Adafruit Pi Case works with the LCD if you leave the top off:  http://www.adafruit.com/products/859

Also the new Geauxrobot Compact Enclosure works great with the LCD:  http://www.amazon.com/gp/product/B00DT5FJEK/ref=oh_details_o03_s01_i03?ie=UTF8&psc=1  (This amazon link has my referral ID, but I'm not sure how to get the link without it.)
tombs
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
August 02, 2013, 05:03:03 AM
 #92

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.

I would be interested in one as I don't have the time to assemble it myself.
kmtan
Full Member
***
Offline Offline

Activity: 196
Merit: 100


I love Bitcoin


View Profile
August 03, 2013, 01:05:03 AM
 #93

I love this project, is that any more controller available for purchase in china?

pluMmet
Sr. Member
****
Offline Offline

Activity: 588
Merit: 251



View Profile
August 06, 2013, 10:55:54 PM
 #94

How would you set up the config file for Eligius?

I'm not to bright all these different hosts and I'm confused
Stratum Host:  stratum.mining.eligius.st Port:  3334 | Getwork Host:  getwork.mining.eligius.st Port: 8337
GBT Host:  gbt.mining.eligius.st Port: 9337
LaserHorse (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
August 07, 2013, 12:22:59 AM
 #95

I love this project, is that any more controller available for purchase in china?

hmm - list of distributors is here.  None in China quite yet.

How would you set up the config file for Eligius?

I'm not to bright all these different hosts and I'm confused
Stratum Host:  stratum.mining.eligius.st Port:  3334 | Getwork Host:  getwork.mining.eligius.st Port: 8337
GBT Host:  gbt.mining.eligius.st Port: 9337

Try using this format for the URL:
Code:
http://stratum.mining.eligius.st:3334

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

Activity: 784
Merit: 501


View Profile
August 09, 2013, 03:21:09 PM
 #96

Great Project!

Got mine up and running and thought I'd post a couple pics!


SpAcEDeViL
Legendary
*
Offline Offline

Activity: 986
Merit: 1027


Miner-Control.de Pooler


View Profile WWW
September 11, 2013, 08:47:53 PM
 #97

HY,

The PiMiner is very cool!

Can you write a PiMiner Script for a another Display, with more infos?

Like this:


Or this :

Or this:


With info of uptime, a diagramm with mining infos? Or Infos from APIs from BTCGuild?

 Wink

Xwolf
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
September 21, 2013, 05:44:08 PM
 #98

Has anyone heard of or tried to get the LCD Plate working with BFGminer using PiMiner?

I am not a code expert so really don't know what I'd be looking at editing PiMiner.py to get it to work.

Cheers,
SpAcEDeViL
Legendary
*
Offline Offline

Activity: 986
Merit: 1027


Miner-Control.de Pooler


View Profile WWW
September 23, 2013, 04:52:04 PM
 #99

Hy,

you need to know, how the api from the bfgminer works.

If it works with the same parameters you dont need any changes.

onryo
Newbie
*
Offline Offline

Activity: 25
Merit: 0



View Profile
September 28, 2013, 05:00:04 PM
 #100

Has anyone heard of or tried to get the LCD Plate working with BFGminer using PiMiner?

I am not a code expert so really don't know what I'd be looking at editing PiMiner.py to get it to work.

Cheers,


# Been running Raspbian, BFGMiner, Adafruit 2x16 LCD and a handful of BE with no problems at all.
# Forgot all about my little setup them until I saw this post.
# The erupters have been hashing away for 2-3 weeks non-stop. HW errors 0.48%. No lockups or issues. Really solid!

git clone https://github.com/luke-jr/bfgminer.git
cd bfgminer
./autogen.sh
./configure
make

# I like to run BFGMiner from the build dir. I don't install.
# BFGMiner's API does not blindly listen to any old crap. We need to enable the api in a way
# that is not going to restict the port.
# There are a few ways to do this but the easyest is to use api-network.

./bfgminer -o http://xxxxx:port -u onryo -p xxx --api-listen --api-network -S erupter:all

# Now your Adafruit is hashing away with your erupters with BFGMiner and your Adafruit is
# working just fine with your erupters.

# Make a nice bfgminer.conf file and save it in lets say ~/.bfgminer/ so you dont lose it.
# I just pull my "play around" gits in a dir called sandbox.

Add this to your /etc/rc.local

cd /home/pi/sandbox/PiMiner
python PiMiner.py &
cd /home/pi/sandbox/bfgminer
./bfgminer --config /home/pi/.bfgminer/bfgminer.conf -S erupter:all

# I don't use nohup for a lot of reasons.

# If you do not want to see "connecting to cgminer" when you start your RPi
# change the line in PiMinerDisplay.py to

self.lcd.message('connecting\nto BFGMiner ...')

# top shows that PiMiner is a CPU hog though. 28%   Roll Eyes
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!