## My Bitcoin Mining results after 24 hours

So if you saw my post yesterday, you know that I stared a mining experiment.  The mining has been going for 24 hours straight and here are my results:

The mining pool that I’m participating in will find the most profitable coin to mine at that particular time.  This is why I’m mining several different coins.  However, the pool also shows you the monetary equivalent of all coins converted to bitcoin.  In the lower right hand corner, you can see the value of all my mining operations is 0.00006279 BTC.

At the time of this writing, 1 bitcoin was worth \$1926.27.  This means that my mining operation generated a whopping \$0.12 USD in bitcoin equivalent cryptocurrency.  Not a lot of money, to be sure but let’s take a look at the power I consumed during that time…

If you remember, my rig is drawing approximately 11.1 Watts.  Over the course of 24 hours, that’s 0.2664 Kilowatts.  My electric company charges me approximately \$0.07 per Kilowatt.  This means I spent approximately \$0.018648 in power consumption.  That’s \$0.101352 in profit for 24 hours.  Not going to move to Tahiti on that but let’s scale this a bit.

\$0.101352 per day x 364 days a year = \$36.89 in profit over the course of 1 year.

Now let’s run that through our USI Tech account to see how much money that means in the course of 1 year if we use the USI Tech system to compound our money.

Because USI Tech operates exclusively in Bitcoin, we’re going to go back to our original mining amount of 0.00006279 per day.  Remember, that’s a bank breaking \$0.12 per day or \$43.68 per year (not excluding power costs).

Because the price of 1 USI Tech package is based on the BTC equivalent value of 50 Euros, when the price of bitcoin is low (as it is today) the price of a USI Tech package is more.  When the BTC price increases, the price of a USI Tech package decreases.  However, today, the price is 0.03049.

Now, we only have 0.00006279 in our account after 24 hours or 0.02285556 after 1 year, we will not be able to purchase a package after 1 year on mining alone.  The purpose of this exercise is to show you the power of the USI Tech trading and compounding system.  So we will do the math based on 1 package and then divide that result by 74.9% (The amount of a package we would be able to purchase after 1 year).

So, let’s run it through the calculator. Since USI Tech packages are contracts that expire after 140 trading days (Monday – Friday) that would equate to 261 trading days in a year.  USI Tech says they will provide 1% return on capital for 140 days or 140%.  So if we buy 1 Bitcoin, after 140 trading days (or 261 calendar days), we will have 1.4 Bitcoin.  USI Tech also has the ability to roll your profits (or compound them, depending on your language) into purchasing additional packages.  So once you have enough profit to make another package purchase, USI Tech will do it automatically for you. The calculator takes this into consideration.

OK, enough chit chat.  Here’s the math:

So, a single package purchased today at 0.03049 BTC would net a return of 0.041699269041599 BTC.  In USD this means \$58.69 worth of Bitcoin would be worth \$80.27 assuming Bitcoin held it’s current value and didn’t go up or down 1 year from now.

So, let’s back track this into our mining endeavours…

At the end of a year, we would have 74.9% of what we need to purchase 1 bitcoin package.  If we were able to buy fractional packages, our 0.02285556 Bitcoin would be worth 0.0312327525121577 BTC.  In USD this means that our \$43.68 would be worth \$60.12.  And our power investment is only \$36.89 over the year.

Nothing crazy to break the bank but it does prove that mining is still profitable today.  And when you combine that with the power of compounding capital at USI Tech, there is the real potential to make money with little effort on my part.

## Trying My Hand At Scrypt Mining

So, I’ve spent the last several days just sitting back and watching my USI Tech account accumulate value.  Since I have some spare hardware lying around, I thought that today I’d try some crypto mining and see what happens.  Now I’m not deluding myself into thinking I’m going to make a ton of money doing this.  I’ve known for a long time that mining for cryptocurrency is an uphill battle against the big mining farms all over the world where the electricity prices are ridiculously cheap. So let’s dig in.

There are plenty of sites that talk about mining bitcoin and mining altcoins so I will give you my simple definition.  If you want a more detailed explanation of what’s going on, you can search google. In a nutshell, mining involves using a computer (or dedicated hardware) to solve a complex math problem.  If you solve it, you are awarded a small amount of the coin you are mining for. There are two basic algorithms used by all the miners in the world. The first is primarily used for Bitcoin and that’s SHA-256.  The one I’m focusing on today is used by most altcoins and that’s scrypt.  Different hardware is used for each algorithm so it’s rare to have a single hardware solution that mines for both SHA-256 and scrypt currencies.

I’m focusing on scrypt mining today for two reasons. First, most altcoins can still be profitable in the right conditions.  You determine whether or not it’s “profitable” to mine based on how many coins you can mine per day and the amount of electricity it takes to mine those coins.  If you can make more money than it costs to power the unit, it’s a profitable venture. Second, I have some spare hardware lying around that is capable of mining scrypt.

So, to get started, here’s a list of all the items I’m using:

• Gridseed ASIC Miner – It’s old and there are better units available but if you just want to experiment, you can pick one of these up on eBay for around \$50
• Raspberry Pi Starter Kit – One of the coolest little computers you will find anywhere. So versatile.  If you get tired of mining, you can use it for a lot of other fun little projects
• P3 P4400 Kill A Watt Electricity Usage Monitor – This useful little device shows you how much power you are using.

You will want to plug the Gridseed and the Raspberry Pi into a power strip and plug the power strip into the Kill A Watt so you can see how much power you are using to do the mining.

## Setting it all up

### Configuring the Raspberry Pi

OK, this is going to get a bit technical but this is a step by step guide to getting the Gridseed miner working with a Raspberry Pi in 2017. Most documentation on setting up this ancient piece of hardware are several years old and the links are all dead now but I did find this guide which seems to be working so far. I’m going to walk through this and document the process.

1. Download NOOBS – Just like with any computer, the Raspberry Pi needs an Operating System (OS) to run. From my laptop, I went to the Raspberry Pi official website and downloaded the NOOBS installation package.
2. Install NOOBS – I’m a big believer in not reinventing the wheel.  The folks over at the official Raspberry Pi website have put together some great instructional videos on how to install NOOBS. Check out their training video page here.
3. Once NOOBS was installed, you come to the desktop screen below.  Press Ctrl-ESC (unless you have a mouse connected, which I do not) to open the Raspberry menu
4. Click Preferences / Raspberry Pi Configuration
5. Change the Pi to boot to CLI mode (since we don’t need the GUI to run mining).
6. Do a shutdown / restart to reboot in CLI mode.  If you changed nothing else, it should automatically log in as the default user, pi.
7. If you’re using a wifi adapter, you have to do the following steps as well:
1. sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
network={
}
3. Reboot the pi and type ‘ifconfig’ to get the IP address of the unit.  If you don’t care what the IP address is, you’re done.  If you want to manually set the IP address, continue to the next step.
4. sudo vi /etc/network/interfaces
iface wlan0 inet static
gateway 192.168.1.1
8. Now your Raspberry Pi is online, on the network, and ready to be configured as a mining node

### Installing CGMiner on the Raspberry Pi

1. Use a tool like Putty to connect to your Raspberry Pi (in my example I’ll be connecting to 192.168.1.30 using the default user, pi)
2. Once you’re in, you should be able to detect the Gridseed when you ssh into it and type lsusb command:
pi@raspberrypi16:~/cgminer-gc3355 \$ lsusb
Bus 001 Device 006: ID 0483:5740 STMicroelectronics STM32F407
3. Now that your device is connected and ready to go, let’s get the mining software. There is a fork of cgminer, that is specifically designed for the Gridseed that we will use. Let’s go clone it.
4. Install git:
\$ sudo apt-get install git
5. You need to install these packages:
\$ sudo apt-get install libncurses-dev libcurl4-openssl-dev libudev-dev
6. Clone cgminer:
\$ git clone https://github.com/dtbartle/cgminer-gc3355.git
7. Build cgminer:
\$ cd cgminer-gc3355
\$ ./configure -enable-scrypt -enable-gridseed
8. Go grab a cup of coffee. This might take awhile to configure.
9. What you are looking for is that GridSeed.ASIC is enabled.  If it is, type ‘make’ to finish the build.  Go get another cup of coffee:
10. To use the cgminer binary to run against your mining pool, you’ll need to launch it with sudo, since it needs access to the USB device.
I am mining multipool.us. Here is an example of the scrypt:

Be patient.

You should see some output from the cgminer:

### Setting CGMiner to Autostart on Reboot

Once you’ve verified that your miner is working (log into the pool’s website and make sure your worker threads are being identified), you can set the miner to start on reboot.

1. sudo vi /etc/rc.local
2. Add the following at the bottom of the file (but above the exit 0 line):