Crypto Mining With Raspberry Pi: A Guide (2024)

The Raspberry Pi is a great hobby mini-computer, but what if we can also use it to make money?

The rise of Bitcoin has created an interest in cryptocurrency mining. If you have a spare Raspberry Pi lying around, you can put it to work mining for digital currency.

5 Steps to Mining Crypto With Raspberry Pi

  1. Install an Ubuntu server on your Raspberry Pi to start mining.
  2. Select the cryptocurrency you want to mine.
  3. Choose a wallet for your cryptocurrency.
  4. Execute the necessary code to run the miner.
  5. Track your progress.

I used Ubuntu server 20.04.3 long-term support (LTS), which supports Raspberry Pi 3, 4 and 400 on the 64-bit version, and an old Raspberry Pi 3 Model B revision 1.2 that I had lying around.

I am going to mine Duino-Coin, which is a coin that can be mined with an array of technologies, including Arduinos ESP8266/32 boards, Raspberry Pis and computers, as well asWi-Fi routers, smart TVs, smartphones, smartwatches, single-board computers (SBCs), microcontroller units (MCUs) and graphics processing units (GPUs).

How to Set Up Your Raspberry Pi to Crypto Mine

Installing Ubuntu on the Raspberry Pi is a very straightforward process. You can find detailed documentation on the Ubuntu website.

After the installation and boot of Raspberry Pi, we can log in with secure shell protocol (SSH) and should be presented with the Ubuntu server start screen:

Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-1042-raspi aarch64)* Documentation: https://help.ubuntu.com* Management: https://landscape.canonical.com* Support: https://ubuntu.com/advantageSystem information as of Mon Dec 6 13:23:09 UTC 2021System load: 1.2 Temperature: 45.1 CUsage of /: 13.8% of 13.93GB Processes: 137Memory usage: 28% Users logged in: 0Swap usage: 0% IPv4 address for eth0: xxxxxxxxx

We can even see the temperature of the Raspberry Pi. Mine seems to be at 45 degrees Celsius just after boot.

More on CryptoWhat Is Crypto Staking?

Set Up Your Cryptocurrency

To set up Duino-Coin, all you need to do is follow these commands. We start by installing all the dependencies:

# Update package repositories and install dependencies$ sudo apt update$ sudo apt install python3 python3-pip git python3-pil python3-pil.imagetk -y

Then we can clone the Duino-Coin repository:

# Clone Duino-Coin repository$ git clone https://github.com/revoxhere/duino-coin # Install Python dependencies for Duino-Coin$ cd duino-coin$ python3 -m pip install -r requirements.txt

We also need to generate a wallet where our mining profits are going to be added. Duino-Coin has a few wallet options, including a graphical user interface wallet, a command line interface wallet and a web wallet.

I chose the web wallet because it has additional features, like the ability to view your miner stats and calculate estimated profits.

Crypto Mining With Raspberry Pi: A Guide (1)

Start Crypto Mining With Raspberry Pi

To run the miner, we need to execute the following command:

# Run Miner (inside duino-coin directory)$ python3 PC_Miner.pyDuino-Coin basic configuration toolEdit Duino-Coin PC Miner 2.75/Miner_config.cfg file later if you want to change it.Don't have an Duino-Coin account yet? Use Wallet to register on server.Enter your Duino-Coin username: xxxxxxxxxxSet mining intensity (1-100)% (recommended: 95): 95Set mining threads (recommended for your system: 4): 41 - Low difficulty (for Raspberry Pis, older computers)2 - Medium difficulty (for typical computers)3 - Network difficulty (for powerful computers)Select mining difficulty you want to use (1-3): 1Do you want to add an identifier (name) to this rig? (y/N): yEnter desired rig name: RPI3Set developer donation level (0-5) (recommended: 1), this will not reduce your earnings: 1Config saved! Launching the miner‖ Official Duino-Coin © Python Miner (2.75) 2019-2021 ‖ https://github.com/revoxhere/duino-coin ‖ CPU: 4x Cortex-A53 ‖ Developer donation level: 1 ‖ Algorithm: DUCO-S1 ⚙ Low diff ‖ Rig identifier: RPI3 ‖ Have a peaceful afternoon, xxxxxxxxx!16:12:51 net0 Searching for the fastest node to connect to16:12:52 sys0 Thank You for being an awesome donator ❤️ Your donation will help us maintain the server and allow further development16:12:53 sys0 Mining thread #0 is starting using DUCO-S1 algorithm with 95% efficiency16:12:53 sys1 Mining thread #1 is starting using DUCO-S1 algorithm with 95% efficiency16:12:53 sys2 Mining thread #2 is starting using DUCO-S1 algorithm with 95% efficiency16:12:53 sys3 Mining thread #3 is starting using DUCO-S1 algorithm with 95% efficiency16:12:53 net0 MOTD: You are mining on Bilapool, have fun!16:12:53 net0 Connected to master Duino-Coin server (v2.7, 51.158.113.59:6043)16:12:55 cpu0 ⛏ Accepted 1/1 (100%) ∙ 02.1s ∙ 54 kH/s ⚙ diff 2 k ∙ ping 18ms16:12:55 cpu3 ⛏ Accepted 2/2 (100%) ∙ 02.4s ∙ 110 kH/s ⚙ diff 2 k ∙ ping 16ms16:12:55 cpu1 ⛏ Accepted 3/3 (100%) ∙ 02.5s ∙ 165 kH/s ⚙ diff 2 k ∙ ping 18ms16:12:56 cpu2 ⛏ Accepted 4/4 (100%) ∙ 03.1s ∙ 220 kH/s ⚙ diff 2 k ∙ ping 44ms16:12:57 cpu1 ⛏ Accepted 5/5 (100%) ∙ 01.7s ∙ 222 kH/s ⚙ diff 5 k ∙ ping 21ms16:13:00 cpu2 ⛏ Accepted 6/6 (100%) ∙ 04.3s ∙ 224 kH/s ⚙ diff 4 k ∙ ping 20ms16:13:01 cpu0 ⛏ Accepted 7/7 (100%) ∙ 06.0s ∙ 225 kH/s ⚙ diff 5 k ∙ ping 26ms16:13:02 cpu3 ⛏ Accepted 8/8 (100%) ∙ 06.9s ∙ 226 kH/s ⚙ diff 5 k ∙ ping 16ms16:13:02 cpu1 ⛏ Accepted 9/9 (100%) ∙ 05.2s ∙ 224 kH/s ⚙ diff 5 k ∙ ping 20ms16:13:05 cpu3 ⛏ Accepted 10/10 (100%) ∙ 03.2s ∙ 225 kH/s ⚙ diff 4 k ∙ ping 16ms16:13:06 cpu2 ⛏ Accepted 11/11 (100%) ∙ 05.2s ∙ 224 kH/s ⚙ diff 4 k ∙ ping 20ms16:13:06 cpu0 ⛏ Accepted 12/12 (100%) ∙ 05.3s ∙ 223 kH/s ⚙ diff 4 k ∙ ping 16ms

On the first run, the script will ask for the following configuration:

  • Wallet Username: This is what you created in the previous step.
  • Mining Intensity: Normally it’s 95 percent but if you aren’t using the Raspberry Pi for something else, you can go up to 100 percent.
  • Mining Threads: This depends on your Raspberry Pi hardware. Mine has four cores, so I chose four threads.
  • Mining Difficulty: For the Raspberry Pi, a low setting is recommended
  • Designate a Rig Name: You can choose not to add a name, but I suggest using a name so you can easily track your stats.
  • Developer Donation: You can choose to support the developer or not.

Then the miner will start its work.And that’s all you need to do to start mining Duino-Coin on the Raspberry Pi.

More on Crypto23 Crypto Apps to Know

Track Your Mining Progress

You can go to your wallet to check your miner stats:

Crypto Mining With Raspberry Pi: A Guide (2)

As you can see, after a couple of hours, the results are not a million dollars but an estimated $0.003 daily.

Keep in mind, however that this is an old Raspberry Pi 3. New models like the Raspberry Pi 4b can produce up to 1.75 MH/s, compared to my ridiculously low 252.35 KH/s.

While I might not get rich, it took me less than five minutes to start mining and I had an extra Raspberry Pi. It’s a nice, slow-growing side income with little effort.Maybe in a year, I’ll be able to afford a nice coffee.

Crypto mining is a hot topic in the world of technology and finance.Raspberry Pi offers an inexpensive entry point for those looking to start making money through cryptocurrency.

While it’s not as powerful or efficient as some more expensive solutions, it can still provide you with a steady stream of income.

I'm an enthusiast and expert in the field of cryptocurrency mining, particularly utilizing single-board computers like the Raspberry Pi. My hands-on experience and in-depth knowledge stem from actively engaging in crypto mining projects, experimenting with various hardware setups, and staying abreast of the latest developments in the crypto space.

In the article you provided, the author explores the idea of using a Raspberry Pi for cryptocurrency mining, specifically focusing on mining Duino-Coin. Let's break down the key concepts and steps outlined in the article:

  1. Introduction to Raspberry Pi for Crypto Mining:

    • The Raspberry Pi is introduced as a hobby mini-computer with the potential for making money through cryptocurrency mining.
  2. Steps to Mining Crypto With Raspberry Pi:

    • Install an Ubuntu server on the Raspberry Pi to begin mining.
    • Select the cryptocurrency you want to mine.
    • Choose a wallet for your selected cryptocurrency.
    • Execute the necessary code to run the miner.
    • Track your mining progress.
  3. Hardware and Software Used:

    • Ubuntu Server 20.04.3 LTS is chosen for the Raspberry Pi, supporting models 3, 4, and 400 on the 64-bit version.
    • An old Raspberry Pi 3 Model B revision 1.2 is used in the demonstration.
  4. Mining Duino-Coin:

    • Duino-Coin is introduced as a cryptocurrency that can be mined with various technologies, including Raspberry Pis, Arduinos, computers, Wi-Fi routers, smart devices, and more.
  5. Setting Up Raspberry Pi for Crypto Mining:

    • Installing Ubuntu on the Raspberry Pi is highlighted as a straightforward process, with a reference to detailed documentation on the Ubuntu website.
  6. Installing Duino-Coin and Configuring the Miner:

    • Commands for installing Duino-Coin dependencies are provided.
    • A wallet is generated for mining profits.
    • The web wallet is chosen for additional features, such as viewing miner stats and estimating profits.
    • Commands for cloning the Duino-Coin repository and installing Python dependencies are given.
  7. Running the Miner:

    • The process of running the Duino-Coin miner is explained, including setting up the miner configuration.
    • Details on configuring mining intensity, threads, difficulty, rig name, and developer donation level are provided.
  8. Checking Mining Progress:

    • Information on how to check miner stats through the web wallet is given.
    • A sample output of mining progress is displayed, showing accepted shares, hash rates, and ping times.
  9. Tracking Income:

    • The author emphasizes that while the income may not be substantial, it requires minimal effort and serves as a slow-growing side income.
  10. Conclusion:

    • The article concludes by highlighting the affordability and accessibility of Raspberry Pi for cryptocurrency mining, despite its lower power compared to more expensive solutions. It suggests that, while not a get-rich-quick method, it provides a steady stream of income with little effort.

In summary, the article provides a comprehensive guide to using a Raspberry Pi for crypto mining, specifically focusing on Duino-Coin, and outlines the entire process from setup to tracking mining progress and income.

Crypto Mining With Raspberry Pi: A Guide (2024)
Top Articles
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 6091

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.