How to Make a Raspberry Pi Bitcoin Miner

In this blog post, we will show you how to make a Raspberry Pi Bitcoin miner. By following our simple guide, you will be able to start mining Bitcoin on your Raspberry Pi in no time!

Checkout this video:


Bitcoins are a decentralized form of currency, meaning that they are not subject to government or financial institution control. Bitcoin miners are used to process transactions and secure the Bitcoin network. In order to turn your Raspberry Pi into a cryptocurrency miner, you will need to install some software.

There are two main programs you will need:

You can find both of these programs on the Bitcointalk forum site. Simply search for the program you want and download the latest version. CGMiner is the more popular choice, but BFGMiner is also known to be reliable.

Once you have downloaded these programs, you will need to set them up according to your mining pool’s instructions. This can be a bit tricky, so be sure to follow the directions carefully. After everything is set up, you should be able to start mining Bitcoin!

What is Bitcoin?

Bitcoin is a cryptocurrency and a payment system, first proposed by an anonymous person or group of people under the name Satoshi Nakamoto in 2008. Bitcoin uses peer-to-peer technology to operate with no central authority or banks; managing transactions and the issuing of bitcoins is carried out collectively by the network. Bitcoin is open-source; its design is public, nobody owns or controls Bitcoin and everyone can take part. Through many of its unique properties, Bitcoin allows exciting uses that could not be covered by any previous payment system.

What is a Raspberry Pi?

A Raspberry Pi is a credit card-sized computer that can be used for a variety of electronics projects. One popular project is creating a bitcoin miner. Bitcoin is a digital currency that can be used to make online purchases. A single bitcoin is worth about $8,000 as of February 2020.

What You Will Need

-Raspberry Pi
– SD Card or Micro SD Card if you’re using a Raspberry Pi 2, 3, or B+
– Power Supply
– USB Bitcoin Miner
– Ethernet Cord OR WiFi Adapter (Only if your Raspberry Pi is not connected to the Internet)
– Coin Wallet

Setting Up the Raspberry Pi

If you want to mine Bitcoin from your Raspberry Pi, you will need to install some additional software. We will be using the Raspbian Lite operating system in this tutorial, which is designed for headless operation (running without a screen).

You can download Raspbian Lite from the official Raspberry Pi website. Once you have downloaded the image, you will need to write it to a microSD card. We recommend using Etcher for this purpose.

Once your SD card has been written, insert it into your Raspberry Pi and boot up the device. You should see the Raspbian Lite login screen appear; if not, check that your HDMI cable is plugged in correctly and that your monitor or TV is set to the correct input.

Login using the default username (pi) and password (raspberry). You will then be presented with the Raspbian Lite command line interface.

Installing BFGMiner

BFGMiner is a modular ASIC/FPGA miner written in C, featuring dynamic clocking, monitoring, and remote interface capabilities.

Download the latest version of BFGMiner from here.

Unzip the archive you downloaded to any directory on your computer.
In the BFGMiner directory, open bfgminer.conf in a text editor.
Find the section labeled “# Mining Pool Options”, and fill in at least one of the pools listed there with your own information. If you need help finding a pool, head here.
Now save your changes and exit the text editor.
Finally, open up a terminal (command prompt) and navigate to the BFGMiner directory. Type in “bfgminer –scrypt –set I:should-be-1″, and hit Enter. You should see something like this:

{% include image.html url=”/assets/img/posts/bfgminer1.jpg” caption=”BFGminer Output” width=600 %}

Configuring BFGMiner

configure BFGMiner

After installing BFGMiner, you will need to configure it to work with your mining pool. To do this, you will need to edit the bfgminer.conf file. The file is located in the home directory of the user you are logged in as. If you are logged in as the “pi” user, the file will be located at /home/pi/.bfgminer.conf.

Open the file with a text editor such as nano:
sudo nano /home/pi/.bfgminer.conf

At a minimum, you will need to specify your mining pool URL and your login credentials for that pool. The following is a basic configuration that will work with most pools:

“pools” : [
“url” : “stratum+tcp://pool_address:port”,
“user” : “username”,
“pass” : “password”

Running BFGMiner

BFGMiner is a modular ASIC/FPGA miner written in C, featuring dynamic clocking, monitoring, and remote interface capabilities. BFGMiner is more or less the same as CGMiner. The only major difference is that BFGMiner uses the newer getwork mining protocol as opposed to the older mining protocol.

To start mining withBFGMiner, navigate to the folder where you’ve installed it then open up a terminal (press Ctrl+Alt+T) and enter the following commands:

cd bfgminer
./bfgminer –scrypt -o stratum+tcp:// -u username -p password

Replace “username” with your username and “password” with your password. If you don’t have an account, you can create one for free at

Monitoring Your Miner

It’s important to monitor your Raspberry Pi Bitcoin miner to make sure it is working properly. There are a few ways to do this.

The first way is to check the status of themining software by running the ‘status’ command. This will show you the current status of your miner, including the current hashrate, accepted shares, and rejected shares.

The second way to monitor your miner is to check the mining pool website. Most mining pools have a ‘live’ page where you can see the status of all the miners in the pool, as well as your own individual hashrate and accepted/rejected shares.

The third way to monitor your miner is to use a remote monitoring tool such as MultiMiner (Windows/Linux) or MobileMiner (iOS/Android). These tools allow you to remotely monitor and control your Bitcoin miners from anywhere in the world.


Overclocking is the process of running a computer component at a higher speed than it was designed for. In the case of the Raspberry Pi, this can be done by increasing the clock speed of the CPU.

Overclocking is potentially dangerous and can cause hardware damage, so it is important to know what you are doing before you start. It is also worth noting that not all components can be overclocked, and that not all overclocks will result in a significant performance increase.

To overclock your Raspberry Pi, you will need to edit the /boot/config.txt file and increase the cpu_freq value. The maximum value is 2GHz, but you may want to start with a lower value and gradually increase it until you reach the desired speed. You will also need to increase the sdram_freq value if you are using an external USB storage device.

Once you have made your changes, reboot your Raspberry Pi for the changes to take effect. You can then use a tool such as stress to test that your system is stable at the new speed. If it is not, decrease the clock speed until it is stable again.

Scroll to Top