Bitcoin Forum
December 14, 2024, 12:47:12 AM *
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)
miningfever
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
December 13, 2013, 08:52:37 AM
 #101

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
Blackwolve
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
December 18, 2013, 09:06:28 PM
 #102

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
cs2000
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
January 04, 2014, 09:59:27 PM
 #103

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!
chadgroover
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
January 06, 2014, 05:01:52 PM
 #104

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://bitcointalk.org/index.php?topic=390929.msg4345581#msg4345581
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...
MWNinja
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500



View Profile WWW
January 06, 2014, 06:02:25 PM
 #105

Just wanted to drop in and mention that PiMiner comes pre-installed on the Bitcoinpi.org distribution.

OliRS
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 21, 2014, 08:42:29 PM
Last edit: January 21, 2014, 08:59:29 PM by OliRS
 #106

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
OliRS
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
January 21, 2014, 10:46:49 PM
 #107

Well after a lot of reading and searching around I found this thread, and this post in particular: https://bitcointalk.org/index.php?topic=390929.msg4379693#msg4379693

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

RemoteBC
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 03, 2014, 07:47:58 PM
Last edit: February 03, 2014, 09:00:16 PM by RemoteBC
 #108

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]
Sp00n1980
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
March 05, 2014, 04:53:32 PM
 #109

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?
Semtex199
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
April 24, 2014, 03:39:54 PM
Last edit: April 24, 2014, 04:00:58 PM by Semtex199
 #110

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