3. Bitcoin mining with a pi
3.1. Intro
If you don't know what bitcoins are, or if you expect to get a miner that gets you rich quickly, skip this.
Long time ago, I had a small USB stick for bitcoin mining. It gave me a whooping 300Mh/s, which was about ten times what I got from mining with my display adapter. Due to various reasons, I shelved the stick.

Now, I recently found it back, and although it is not really a profit-mining, it takes very little power, especially if connected to a raspberry pi. So, mostly for nostalgic reasons, I have re-activated my USB-miner.
The pool that I used in the past is now defunct, so I decided to use slushpool basically because it is as good as any (at least at this stage).
3.2. Setting up the miner
3.2.1. Make an account
You have to make an account, which will verify your e-mail
3.2.2. Install the software
First, install the dependencies:
apt-get update apt-get install autoconf autogen libtool uthash-dev libjansson-dev libcurl4-openssl-dev libusb-dev libncurses-dev git-core apt-get install libevent-dev
Then, get a git-clone of the bfgminer
git clone https://github.com/luke-jr/bfgminer.git cd bfgminer ./autogen.sh ./configure make
And start mining:
./cgminer --userpass userID.workerID:any-password --url stratum+tcp://stratum.slushpool.com:3333
And see the satoshis rolling in:
bfgminer version 5.4.2-7-g9f781b8 - Started: [2017-11-29 20:32:52] - [ 0 days 01:19:06] [M]anage devices [P]ool management [S]ettings [D]isplay options [H]elp [Q]uit Pool 0: ...m.slushpool.com Diff:128 +Strtm LU:[21:51:36] User:myuserid.worker1 Block #496752: ...db12af37 Diff:1.35T ( 9.64E) Started: [21:49:36] I: 1.80nBTC/hr ST:3 F:1 NB:7 AS:0 BW:[ 47/ 3 B/s] E:2.15 BS:617 1 | 332.8/333.1/221.6Mh/s | A:2 R:0+1( 33%) HW:0/none -------------------------------------------------------------------------------------------- BES 0: | 335.9/332.9/221.4Mh/s | A:2 R:0+1( 33%) HW:0/none -------------------------------------------------------------------------------------------- [2017-11-29 21:46:35] Stratum from pool 0 detected new block [2017-11-29 21:49:36] Stratum from pool 0 detected new block
Some calculations:
1.8
|
nBTC/hr
|
43.2
|
nBTC/day
|
302.4
|
nBTC/week
|
1296
|
nBTC/month
|
0.153
|
mBTC/year
|
65
|
years before payout
|
hmmm.... Lets get another pool...
3.3. note
Raspberry Pi is a trademark of the Raspberry Pi Foundation.