Mining Bytecoin on a $10 Raspberry Pi Zero?

in #bytecoin7 years ago (edited)

Mining Bytecoin on a $10 Raspberry Pi Zero?

In this little experiment, we will see if mining on a Pi Zero is possible or practical. For this example I am using a Pi Zero W running Raspbin Lite. If you are not familiar with the Pi Zero W, it's a super tiny variation of the Raspberry Pi with a single-core ARM1176JZF-S CPU rated at 1.0 GHz. The 'W' version comes with wifi support which I recommend since none of the Zeros come with Ethernet support.
IMG_7044[sm].jpg

Getting a miner

First step is to download all the dependencies required.

sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git

Next, we will need a CPU miner compatible with ARM CPUs. I chose CPUMiner-Multi for this example.

sudo git clone https://github.com/tpruvot/cpuminer-multi

Once it has been downloaded, enter the new folder

cd cpuminer-multi

Compiling

Now let's compile the program.

sudo ./autogen.sh

sudo ./configure CFLAGS="-Ofast -mtune=arm1176jzf-s -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp" CXXFLAGS="-Ofast -mtune=arm1176jzf-s -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp" --with-crypto --with-curl

sudo make

Compiling will take a while so use this time to find a pool and register. I'm using minergate.com for this example but be warned that due to the sites high payout threshold it could be a while before you receive a payout when using low hashing power.

Start mining

The command to start should be formatted like this:

sudo ./cpuminer -a [algorithm] -t [cpu threads] -o [pool address:port] -u [username] -p [password]

Bytecoin uses the cryptonight algorithm so enter this after the -a and the Zero only has 1 cpu thread. On this setup I'm getting about 1.64 h/s which should give me 2.81535 BCN per week at the current difficulty. At the time of writing this the price of BCN is $0.004561 USD making the total $0.013 USD per week before accounting for electricity.
pi@wetpi_ ~_cpuminer-multi 2_10_2018 3_19_45 PM.png

What are the electricity costs?

IMG_7048[sm].jpg
The meter shows .25 amps while mining Bytecoin which means it's using about 1.25 watts. At my electricity cost of $0.10 per kWh, the Pi Zero is costing me $0.02 per week to run. Sadly this means at the current value of Bytecoin you would be loosing money.

This is not the end for the Pi Zero however, there are other coins and other uses. These make excellent stake boxes or hard wallets and can also be used to control some ASIC miners. My future write ups will look at these other uses as well as other Single Board Computers like the more powerful Raspberry Pi 3 and Orange Pi One.

Sort:  

Mining Bytecoin with this raspberry will get you 2.066 BCN / week or 8.26 BCN / month. No big numbers but nice article and explanation. Upvoted!

Again, If you use solar power these could make for a nice project for sure. Have you found any other great uses, as far as crypto, for these cheap lil devices?

That is a fair point! Then I'm wondering a little bit how long the RPi Zero W, the battery will last. Meaning will you amortize it with mining... ?

Coin Marketplace

STEEM 0.27
TRX 0.21
JST 0.038
BTC 95523.20
ETH 3621.80
USDT 1.00
SBD 3.77