Raspberry Pi Bitcoin Miner ( Monero XMR )
What is Bitcoin Mining?With Bitcoin, miners use special software to solve math problems and are issued a certain number of bitcoins in exchange. This provides a smart way to issue the currency and also creates an incentive for more people to mine.
Why is Monero Coin ( XMR ) ?Unlike many cryptocurrencies that are derivatives of Bitcoin, Monero is based on the CryptoNote protocol and possesses significant algorithmic differences relating to blockchain obfuscation.
By providing a high level of privacy, Monero is fungible, meaning that every unit of the currency can be substituted by another unit. These units are indistinguishable from one another. This makes Monero different from public-ledger cryptocurrencies like Bitcoin, where addresses previously associated with undesired activity can be blacklisted and refused by network members.
Why use Raspberry Pi?Raspberry Pi Board is an 32 bit processor and cpu miner software is 64 bit version only.So you must have to recompile it.
This is for education purpose only.
Prepare Raspberry PiHardware
Raspberry Pi 3B Board with heat sink.
SD Card ( we use 16 GB scandisk ) need to format and install software to it.
Power Supply 5V. 2A
Raspberry Pi OS
We use Raspbian Stretch ( Build 2017-09-07 ) How to write image file to SD card
Raspberry Pi Tools
Putty ( SSH and telnet client for windows ) How to install Putty
Do a SSH connection to your Raspberry Pi.
We use Putty to connect Raspberry Pi and Login Username and password
( default user : pi , password : raspberry )
Command sudo -i
Update Your Raspberry Pi
apt-get update -y
Install Some Library
apt-get install autoconf libcurl4-openssl-dev libjansson-dev openssl libssl-dev gcc gawk automake git -y
git clone https://github.com/lucasjones/cpuminer-multi.git
Optimize Build for Raspberry pi 3B Version
|./configure CFLAGS="-Ofast -mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits -ffast-math" CXXFLAGS="-Ofast -mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits -ffast-math" make --always-make Now, Software and Library have install to raspberry pi already. Ready for mining.but you need monero wallet and pool in the next step.|
Monero Wallet and PoolAs for mining, you’ll need to create a Monero wallet and find a pool to join. Mining in a pool means you get a small part of the reward for the mining you do. In our example we use MinerGate
To start the mining we use the minerd command
./minerd -a cryptonight -o URL.Your.Pool:port -u worker.1 -p password
For My Example
./minerd -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u firstname.lastname@example.org -p x
On Minergate web has mining profitability calculator.
If Raspberry pi has hash rate are 10 H/s see table below.
Option Check CPU Temp
Option Check CPU Temp and CPU % on IoT ThingSpeak
Compile and Run as service Monero (XMR) CPU miner for RaspberryPi 2 and 3http://awesomeprojectsxyz.blogspot.it/2017/10/tutorial-compile-and-run-as-service.html
email : email@example.com Tel .081-6452400
Android Arduino IoT