Running a super low cost DigiByte Scrypt Miner Rig with a Raspberry Pi 3 model B+ and a FutureBit Moonlander 2

New to mining crypto-money or just fancy to run the smallest DigiByte Scrypt mining rig? Dont’ go any further, here is the ultimate step by step guide.

What is Digibyte and why would I mine it?

DigiByte is at the same time a decentralized blockchain and a cryptocurrency (DGB). It is not specifically limited to being cash, but it excels at it.

How much power will my miner use?

Using the Raspberry Pi 3 model B+ uses, according to the Raspberry Pi website FAQs, about 500mA with a 2.5A power supply.

What hardware do you need?

The Raspberry Pi

First you need to buy a Raspberry Pi 3 model B +, it is a common hardware that you can order from anywhere from Amazon, Ebay or any computer part stocklist near to you.
You can also buy bundles or starter-kits including Power Supply, the Pi, casing and preinstalled Micro SD with NOOBS (the Operating System).

  • 16GB Micro SD card (preferably preinstalled with NOOBS)
  • A way to use the Micro SD card in your PC (Such as a USB SD card reader)
  • Network cable if you don’t want to use the wifi connection
  • An HDMI cable
  • A temporary computer monitor or a TV set
  • A temporary keyboard and mouse
  • And of course a fancy casing, to protect the main board and to the show it off

The Miner

In this guide, I’m using one FutureBit Moonlander 2 USB stick that you can buy here : https://shop.futurebit.io

FutureBit Moonlander 2 USB stick

While you wait for your hardware to come, just set up a DigiByte Wallet

Before being able to mine $DGB you will need to have a wallet to keep all these precious coins that you’ll receive. There are a lot of ultra-secure wallets for storing your DigiBytes such as Ledger or Trezor, but I recommend you beginning with the official Digibyte Wallet for your phone. It is a secure and handy wallet you’ll have in your pocket, grab it on the App store or the Google Play store.

One of your public addresses for your DigiByte wallet

Still received no hardware? Just open an account on a Pool for future mining

Mining is a hard task, you can do it alone, but it’ll be difficult to set it up and the kind of mining rig we are building is not the best choice to do it. There for I recommend you to mine in a pool, dividing the difficulty among a lot of people.

Register at Multipool.us

Register at Multipool.us is pretty straightforward: head to the web site and click Register, you’ll have to choose an username, password, email and PIN code. You can set a donation if you like, but I wouldn’t recommend it as your miner is already small enough.

Multipool’s registration form
Creating a new worker
Enter the DigiByte address you’ve got in your wallet when clicking on receive

Finally the hardware is here, configuring the hardware

If you chose to get a preinstalled SD card, good for you and you don’t need to make these steps.

You are looking for the full version not the lite one
Prepare your SD card for NOOBS on Mac

First boot up of your Raspberry Pi

Now it is time to boot up your Raspberry, attach the Monitor with the HDMI cable, the keyboard, the mouse and if you need it the ethernet cable.
Don’t forget to pop-in your MicroSD card, it is going in the small slot upside-down.

Another Raspberry mining rig based on the same idea I made for a friend, this one has been mining DGB for almost 6 months without any reboot.

Install drivers and BFGminer for the Moonlander 2

So we are finally at the interesting part, we’d like to make this Moonlander mine. It is pretty easy, just follow these steps:

  • First update and upgrade your system
sudo apt-get updatesudo apt-get upgrade -y
sudo apt-get install -y libcurl4-gnutls-dev libjansson-dev
cd ~
wget https://github.com/jstefanop/bfgminer/releases/download/bfgminer-5.4.2-futurebit2-beta2/bfgminer_5.4.2-futurebit2_linux_armv6.tar.gz
tar -xzf bfgminer_5.4.2-futurebit2_linux_armv6.tar.gzchmod -R +x bfgminer_5.4.2-futurebit2_linux_armv6
cd bfgminer_5.4.2-futurebit2_linux_armv6
./start_moonlander2
nano start_moonlander2.sh
Please modify this line with the pool address, your username and your worker’s name
  • your mutlipool’s username following but a dot and your multipool’s worker’s name.
  • the password is always x (or anything else, it is not used)
  • the frequency factor, for now let it at 600, which is the default.
384, 450, 480, 540, 576, 600, 612, 625, 636, 648, 660, 672, 684, 700, 720, 744, 756, 768, 796, 832, 852, 876, 900, 924, 954
./start_moonlander2.sh
Control screen you got when you launch start_moonlander2.sh script
  • #2 This is the speed of your miners. On this screen we can see 4 miners. You should have only one line and the speed should be between 3 and 4Mh/s.
  • #3 This the total of accepted shares since the miner has been launched
  • #4 is the number of hardware errors. This is normal to have hardware errors, it is ok if this number is between 1% and 3%, it shouldn’t be more than 3%
384, 450, 480, 540, 576, 600, 612, 625, 636, 648, 660, 672, 684, 700, 720, 744, 756, 768, 796, 832, 852, 876, 900, 924, 954
Your balance at multipool.us, you still haven’t reached the 0.1 needed for the automatic payout

Make your Raspberry Pi mine automatically when your restart

Here are the actions you’ll have to take in order to make your miner start automatically when your restart your Pi:

cd ~
sudo nano .config/lxsession/LXDE-pi/autostart
lxterminal -e sh ~/bfgminer_5.4.2-futurebit2_linux_armv6/start_moonlander.sh

Mining with a hint of High Availability (HA)?

From time to time the pool you’re mining on will go offline for a scheduled maintenance or an outage. During this time, your miner will stop mining, but will still using power and it is a loss of money and coins.

nano ~/.bfgminer/bfgminer.conf
Example of bfgminer.conf file, in this case the miner will firstly mine litecoin on litecoinpool.org and if this pool is off it will automatically mine DigiByte on multipool.us

IT Guru • Defender against the Digital Dark Arts🛡 • Blockchain Advocate 🔑️. https://xn--l9hygo898lbsb.y.at

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store