How to Make a Raspberry Pi Crypto Miner (Dogecoin) (2024)

Introduction: How to Make a Raspberry Pi Crypto Miner (Dogecoin)

By drjhxie

More by the author:

About: I am a student at Luther Jackson MS More About drjhxie »

Crypto Mining is getting more and more popular, and especially with the Dogecoin Cryptocurrency getting fueled by Elon Musk, things are starting to look up. In this project, I will be showing you how to mine Dogecoin on your very own Raspberry Pi!

Supplies

For this project, you will need:

  • Raspberry Pi 4 (You can also use Raspberry Pi 2B, version 1.2 only, Raspberry Pi Zero 2, Raspberry Pi 3, or 3B+ Raspberry Pi 400)
  • Micro Sd card
  • Computer with internet access

Step 1: Install a 64-bit Operating System

The miner we will use in this tutorial only runs on a 64-bit operating system, which is why we need a recent Raspberry Pi model.

Once you have selected your Raspberry Pi model, the first step is installing an Operating System. I recommend Raspberry Pi OS, which is what we are using for this tutorial.

If you are new to installing an Operating system on a Raspberry Pi, follow these steps:

  1. Go to www.raspberrypi.com/software/
  2. Download the imager by clicking the download button when you scroll down
  3. Open the App, click "Operating System," click Raspberry Pi OS (Other)
  4. Scroll down and click Raspberry Pi OS Lite
  5. Insert SD Card
  6. Click Storage and click on your Micro SD card.
  7. Click Write
  8. Insert SD card to the Raspberry Pi
  9. Connect a suitable power supply to the Raspberry Pi

Step 2: Get a Dogecoin Address

You can get a DOGE address by following the instructionson DOGECOIN official website, but if you want additional instructions, here it is:

Here is how to create your address with Dogecoin core (You can use Multidoge because Dogecoin core is a hefty app on your computer, and if you do not have a computer fast enough, it might take a few hours)

  • Download and install the app for your computer's operating system
  • Open the app, and it will start the synchronization.
  • Click on “Much Receive” and fill out the form.
  • All fields are optional, but I recommend making a label.
  • A new line should be added to the table. Select the line and click on "Show" to get the address:

Step 3: Find a Mining Pool

The last thing you need to do to mine Dogecoin on a Raspberry Pi is to find a mining pool. I recommend using unMineable.

Here are the required steps to use it as your mining pool:

  1. Go to their website and click on "Dogecoin" in the coins list (Here).
  2. Because a Raspberry Pi doesn't have a graphics card, Choose "RandomX."
  3. Click on RandomX and keep the URL and port of the global server.
  4. When I am writing this, the URL is rx.unmineable.com:3333(It might change)
  5. How to set up your field is above.

I will show you how to configure this in the next part.

You can try other mining pools if you want. The steps are always the same. It will give you a URL.

Step 4: Start Mining

We Are Now Ready To Start Mining! However, we Need To Install The Miner And Configure It first.

Install the miner: XMRig

Here is how to install XMRig on your Raspberry Pi:

Install the prerequisites: sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev

Clone the GitHub on your Raspberry Pi: git clone https://github.com/xmrig/xmrig.git

Create a folder and go into it: mkdir xmrig/build && cd xmrig/build

Start the compilation:

cmake ..

make -j$(nproc)

Make sure to type it in correctly. (Or use ssh)

It should not take too long. You will see "xmrig” in your build folder if it goes well.

Step 5: Configure XMRig

You can download the template available on GitHub with:

wget https://raw.githubusercontent.com/xmrig/xmrig/master/src/config.json

Be sure to be in the build folder before running the command.

Then you need to edit the file to set the server address and your DOGE address:

  • Open the file:nano config.json
  • Find the pools section
  • Put your mining pool address in the URL field, so if you are using unMineable, it should be: rx.unmineable.com:3333
  • Fill the user field: DOGE:<address>.<worker_name>
  • For example, DOGE:DAuARerBnjJE9rs7MoaM75nSpfdx5GGjK6.rpitips
  • Save and exit(CTRL+X).

Step 6: Start the Miner

Now that you have set up the miner, you can start the miner. Here is the command: ./xmrig

After some time, you should see some lines indicating that the miner is working and receiving jobs from unMineable.

You’ll also receive regular updates like the speed, but if you are using unMineable, you will find all the details on the website. I will show you how to do that in the next part.

Step 7: Check Your Results

You shouldn’t expect much from this experiment, as there are professional miners out there with high CPU and graphics cards.

If you are using unMineable, usethis pageto check your results.

You will see your current balance in DOGE coins and a list of your workers and their results in the past few hours.

If you have been using this to mine for a long time, you can think about overclocking your Raspberry Pi and installing an excellent cooling system.

Step 8: Results and Conclusion

As you can see, if you mined, you may get something like 0.001 DOGE coin for each hour of mining. Right now (At the time of writing), 1 DOGE is worth something like $0.15, so you’ll need about a month of mining to get one.

At least you learned how all of this works and can now apply the same tutorial on a better computer, where you should get way better results. You can also connect more Raspberry Pis for better speed.

Hoped you liked my tutorial, and have a good day!

How to Make a Raspberry Pi Crypto Miner (Dogecoin) (5)

Participated in the
Raspberry Pi Contest

How to Make a Raspberry Pi Crypto Miner (Dogecoin) (2024)
Top Articles
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 6216

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.