Pages:
Author

Topic: PiMiner - DIY mining controller/monitor with Raspberry Pi [v1.1] (Read 35911 times)

newbie
Activity: 1
Merit: 0
Same problem here :/

Raspberry running cgminer 3.5.0 with dualminer.
stuck on "Connecting to Miner..."

The lcd is correctly installed but nothing happen.
i tried to run CGminer using screen, i also tried to run it normally but nothing happen
Any help is welcome Smiley

+
S
newbie
Activity: 42
Merit: 0
Hi i am having a slight issue with piminer, i am running minpeon  0.2.4.4, with bfgminer3.10.0

yet i always get "connecting to miner ..." on the display  Sad

is there a fix somewhere?
newbie
Activity: 1
Merit: 0
To resolve the 'MHS av' 'MHS av' problem edit the file PiMinerInfo.py ...

nano PiMinerInfo.py

Change line 143 which shows

      s2 = 'avg:%s' % self.hashrate(float(d['MHS av']))
      return [s1, s2]


to this

      if ('MHS av' in d):
            s2 = 'avg:%s' % self.hashrate(float(d['MHS av']))
      else:
            s2 = 'avg GHs:%s' % float(d['GHS av'])
      return [s1, s2]
newbie
Activity: 34
Merit: 0
Well after a lot of reading and searching around I found this thread, and this post in particular: https://bitcointalksearch.org/topic/m.4379693

The short version is that the AdvancedStyle and bitmaintech versions have alterations to the API which stops the functionality of the Adafruit LCD screen. The version below does not.

After installing the repo in that post (https://github.com/fractalbc/cgminer) I now have full bitmain support and the I2C LCD screen is functional again Smiley

newbie
Activity: 34
Merit: 0
May be a long shot here, but ive just upgraded from BlockEruptors to the new Bitmain Antminer U1's. This meant needing to change from CGminer 3.1.1 to CGMiner 3.8.5.

Sadly, my screen now just says

'MHS av'
'MHS av'

Im guessing CGminer changes its API or something from the 2 versions. All the other functions still work such as miner & pool name, bitcoin price, network difficulty and the devices screen, just not the most important one showing the hashing rate and the Accepted, Rejected, HW Error stats on the first screen.

I don't really know Python, but I understand that the "fault" lies with the PiMinerInfo.py file (https://github.com/adafruit/PiMiner/blob/master/PiMinerInfo.py)

Wonder if maybe the project author, or some other kind person could assist.

Perhaps its worth creating an updated version of the tutorial, it seems as though its been hugely successful, tons of people use RPI's as mining controllers, just would be nice for it to work with the newer CGminer versions and seeing as block eruptors are getting more and more obsolete, maybe its time!

Would be a shame for me to have no use for the adafruit screen, that tutorial was the only reason I purchased the LCD plate!

I am having the same trouble as you.

I also have just purchased a Bitmain Antminer U1 miner to test before I set up a proper rig with my RPi. I also just assembled the Adafruit I2C 16x2 LCD plate, great bit of kit and only took 30 mins to assemble and I'm no expert, so those not liking the thought of soldering anything give it a go!

Anyway I installed the latest version of cgminer (3.10.0) but following the tutorial on Adafruit, I run it using the example cgminer.conf file and the LCD plate works just fine and displays all the info correctly.

However, my Antminer was only hashing at around 700 MH/s, but it's rated at 1.6 GH/s, up to 2.2 GH/s overclocked. The official install of cgminer does not to my knowledge have the ability to set overclock parameters for my device as it does not have the proper bit main drivers. For those I looked at two different sources which use a "patched" version of cgminer 3.8.5 with the bit main drivers. I build and configure it fine using the --enable-bmsc option instead of the --enable-icarus option as per the tutorial. I edited the cgminer.conf file to replace:

Quote
"icarus-options" : "115200:1:1",
"icarus-timing" : "3.0=100"

with:

Quote
"bmsc-options" : "115200:20",
"bmsc-freq" : "0981"


Now when I run this 'forked' version of cgminer with the bmsc options enabled, the display just shows:

Quote
'MHS av'
'MHS av'


I'm pretty sure it must be something quite simple that requires a little editing of the python scripts, but I wouldn't know what at the moment and it's been years since I scripted in python!!  Undecided

Would be great to hear from the projects author. Smiley
hero member
Activity: 630
Merit: 500
Just wanted to drop in and mention that PiMiner comes pre-installed on the Bitcoinpi.org distribution.

newbie
Activity: 42
Merit: 0
Another guy here who bought an Adafruit 16x2 display on the basis of how cool it looked in the article!

Unfortunately I'm also at a bit of a standstill in getting the display working alongside some new Antminer U1s as per this post - https://bitcointalksearch.org/topic/m.4345581
Would be cool if someone could take a look at some point... I'm happy to be a guinea pig if needs be!

Not sure if this is of any relevance, but CGWatcher can connect to the API listen port on my Pi without any issues, but doesn't display average hashrates...
newbie
Activity: 28
Merit: 0
May be a long shot here, but ive just upgraded from BlockEruptors to the new Bitmain Antminer U1's. This meant needing to change from CGminer 3.1.1 to CGMiner 3.8.5.

Sadly, my screen now just says

'MHS av'
'MHS av'

Im guessing CGminer changes its API or something from the 2 versions. All the other functions still work such as miner & pool name, bitcoin price, network difficulty and the devices screen, just not the most important one showing the hashing rate and the Accepted, Rejected, HW Error stats on the first screen.

I don't really know Python, but I understand that the "fault" lies with the PiMinerInfo.py file (https://github.com/adafruit/PiMiner/blob/master/PiMinerInfo.py)

Wonder if maybe the project author, or some other kind person could assist.

Perhaps its worth creating an updated version of the tutorial, it seems as though its been hugely successful, tons of people use RPI's as mining controllers, just would be nice for it to work with the newer CGminer versions and seeing as block eruptors are getting more and more obsolete, maybe its time!

Would be a shame for me to have no use for the adafruit screen, that tutorial was the only reason I purchased the LCD plate!
newbie
Activity: 26
Merit: 0
Requst/Help:

Hi,

i want to monitor an usb hub on a PC via network because this hub deliver USB3 for the Twin Fury (upto 900mA). USB3 is not supportet with this hub on the rpi, so i need to take this option.

The quick`n`dirty was to change the s.connect ((host, port)) to s.connect (('192.168.178.xx, port)) but it is no well modification.

Have you ideas how i fix it well or is there a feature i didn't see?

Greetings Smiley
newbie
Activity: 6
Merit: 0
The tutorial now describes how to add auto-start and the scripts have been updated to support this functionality. This method starts cgminer up as well. Unfortunately, I haven't been able to run cgminer as a background job which can then be brought to the foreground. Whenever I tried, cgminer just stops while in background - this is why I ended up using nohup.  I'm open to better solutions, of course.

Have you considered using "screen" instead of nohup? This should allow you to watch the cgminer output when you log in via ssh, but I am not sure if/how you would make it start automatically at boot, nor have I actually tried it.
Here's an interesting link explaining the differences between nohup and screen:  http://www.52nlp.com/nohup-and-screen/

On a side note: I just switched over my BFL jalapeno from an old laptop to my RPi and following these instructions I was able to get things up and running just fine! Awesome tutorial! Smiley

A few comments that may help others:
  • The tutorial assumes that you are using the user 'pi' and that you have installed the Adafruit python code in /home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCDPlate/; if you installed the python files in a different directory or use a different user, you will have to edit the file /home/PiMiner/PiMiner.py: on line 4 change the location of the Adafruit library to wherever you installed it
  • If you're like me and don't have a soldering iron lying around (anymore) or don't feel comfortable using one, you can order assembled LCD monitors from here: http://raspberrypilcd.com/ . They also sell RPi cases for the RPi including the LCD monitor. I ordered mine there and it arrived perfectly assembled and in working order. Shipped on the same day I placed my order! Smiley

Keep up the good work! Smiley
newbie
Activity: 25
Merit: 0
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
legendary
Activity: 986
Merit: 1027
Miner-Control.de Pooler
Hy,

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

If it works with the same parameters you dont need any changes.
newbie
Activity: 26
Merit: 0
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,
legendary
Activity: 986
Merit: 1027
Miner-Control.de Pooler
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
hero member
Activity: 784
Merit: 501
Great Project!

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


full member
Activity: 140
Merit: 100
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
sr. member
Activity: 588
Merit: 251
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
full member
Activity: 196
Merit: 100
I love Bitcoin
I love this project, is that any more controller available for purchase in china?
newbie
Activity: 17
Merit: 0
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.
newbie
Activity: 19
Merit: 0
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.)
Pages:
Jump to: