X

Topics and trends related to the Java ecosystem with occasional random rants.

  • September 5, 2017

And Now For Something Completely Different...

James Connors
Principal Solutions Consultant

To steal a phrase from Monty Python's Flying Circus, this article represents a departure from the standard fare.  Today, I'd like to discuss my foray into the Bitcoin world, and in particular, how contributing (in an infinitesimally small but meaningful way) strengthens the decentralized Bitcoin network.  In short, I have become a Bitcoin miner.  Before going any further, let me be perfectly clear: there is no gold in them thar' hills. Unless you plan on mining on an industrial scale where electricity is plentiful and more importantly, cheap, you will likely achieve a negative return on your investment.  But it's still fun to do.

Overview
My Humble Bitcoin Mining Rig
Creating and Configuring a Bitcoin Mining Rig
Return on Investment?

Overview

The revolutionary idea behind Bitcoin is the fact that its transactions are verified in a decentralized fashion free from manipulation by governments and banks.  The more systems on the network that participate in the verification, the less likely any one entity has the ability to take a majority stake and threaten the ecosystem.  To encourage participation, verifiers, otherwise known as miners, are periodically rewarded with Bitcoins.  Bitcoin mining draws parallels to precious metal mining in that (1) the resource is scarce and finite (only 21 million will ever be issued) and (2) mining is labor intensive.

Miners compete for winning Bitcoins that are periodically released by both verifying transactions and solving complicated mathematical hashing calculations.  Obviously grossly oversimplified, you can begin to better understand the concept of mining here.  The organizations with the most computing power have the best odds at winning the Bitcoin lottery.  You can, of course, attempt to go it alone and compete with the rest of the world in trying to win Bitcoins, but the odds of doing so are very, very slim.  Instead nowadays it probably makes more sense to join one of a number of large mining pools that share resources and consequently share in the overall pool's success.  In a pool you receive a payout commensurate with your percentage contribution to that pool.

My Humble Bitcoin Mining Rig

The image that follows, along with the subsequent description of the component parts, describes the rig.

  1. Raspberry Pi 3:  The venerable Raspberry Pi serves as the overall controller for the Bitcoin mining rig and uses the cgminer software to manage our mining devices.  The Pi has more than adequate compute power for this project and consumes a minimum amount of electricity.
  2. GekkoScience 2-Pac (BM1384x2) USB Bitcoin miners: There was a time when hashing calculations were performed on CPUs, however it quickly became apparent that specialized hardware would perform these tasks far more efficiently.  The first leap was to utilize a system's GPU (which is still an ideal way of mining other digital currencies).  Nowadays for Bitcoin, any mining hardware worth using is based upon specialized ASICs (Application Specific Integrated Circuits) that are far more efficient than GPUs.  The GekkoScience 2-Pac (BM1384x2) USB Bitcoin miners are state-of-the-art (September 2017) when it comes to the engineering trade off between performance and power efficiency.  These devices can be run at different frequencies; the default (100MHz) yields a device which can perform about 15 billion hashes a second (usually written as 15 Gh/s).  By upping the clock frequency, you increase the hash rate and also consequently, power consumption.  These 4 devices are running at 225 MHz and combined, execute approximately 100Gh/s.  The power consumption for this rig is approximately 50 Watts.
  3. HooToo 60W 7-port powered USB hubs: One of the challenges with setting up this rig was finding USB hubs that could power the 2-Pac USB mining devices, as each easily consumes 10 Watts or more.  Powered USB hubs are an absolute necessity, and most powered hubs can only support the power requirements for one of these devices.  The HooToo hub, rated at 60W, can support two devices at 225MHz (plus a USB fan).  I was hoping to add at least one more miner to each USB hub, but that appears to be a bit unstable.  Not being an electrical engineer, I don't understand why.
  4. Artic Breeze USB Fan: The USB mining devices run hot, especially when overclocked.  A fan is essential to keep things cool and extend the life of the mining devices.

Creating and Configuring a Bitcoin Mining Rig

Once the requisite hardware is gathered, there are a few general steps required to get up and running:

This text file describes the steps needed to set up the rig described in this article.  In terms of choosing a Bitcoin wallet and mining pool there are a multitude of choices.  Electrum and Slush Pool were chosen respectively for the rig you see here.

Return on Investment?

Is mining a money making enterprise?  At this small scale, absolutely not.  Ignoring the non-trivial upfront capital cost of the hardware required to run this rig, you're likely to spend more in electricity than you could accrue in Bitcoin.  The price of Bitcoin is so volatile, and the amount of hashing power that contributes to the network changes (generally increasing over time) that any metrics provided here would only be relevant for one point in time.  But what the heck.  At the current time, based upon my contribution to the Slush Pool mining pool, my rig is rewarded approximately .000035 Bitcoins a day.  As of the writing of this article, the current price of Bitcoin is about $4300 US.  Doing the arithmetic yields a reward of about $0.15 US a day.  It costs more in electricity each day (especially in New York) to power a 50 Watt rig.

 

Join the discussion

Comments ( 1 )
  • sunita soni Monday, May 28, 2018
    What a fantastic read on Blockchain. This has helped me understand a lot in Blockchain course. Please keep sharing similar write ups on Blockchain. Guys if you are keen to knw more on Blockchain, must check this wonderful Blockchain tutorial and i'm sure you will enjoy learning on Blockchain training.
    https://www.youtube.com/watch?v=27jc6AuhYZI
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.