Raspberry pi chia farming

What is Chia cryptocurrency

Chia, apart from being a seed with benefits for people’s health and nutrition, is a cryptocurrency created by Bram Cohen that has meant a revolution in terms of mining, although it is still more correct to say cultivation here.

Unlike other options such as Bitcoin, Etherum, etc., to mine Chia you do not need a PC with super powerful hardware because it is not based on components such as graphics cards, which the more powerful the better the better. Here the process in charge of said mining is carried out by the hard drives that you have installed and with a greater capacity, greater possibilities of earning more with it.

And it is that Chia does not make use of complex GPU calculations but rather uses the space available on a hard disk .

Raspberry pi chia farming

The reason for this is that it could cause issues when we start up our service in the next step

You can kill all currently running Chia processes by running the following command.

chia stop all -d

6. To start up our new Chia service, we need to use the command below.

By using the command below, the service will start up the Chia farmer on our Pi.

sudo systemctl start chiafarmer

7. You can check that Chia has been successfully started on your Raspberry Pi by using the following command.

This command will retrieve the current status of the service.

sudo systemctl status chiafarmer

If everything has worked correctly, you should see the status marked as “Active: active (running)“.

Checking the Status of Chia on the Raspberry Pi

You may want to check on the status of your Chia farm from time to time.

Raspberry pi chia farming setup

Proof of Work, created by GPU’s hashing constantly and burning through a heap of electricity, it uses Proof of Space and Proof of Time by means of storing pre-calculated hashes on unused storage, in things called Plots.

You then “Farm” the plots, which counter to regular bitcoin mining, requires very little in the way of additional computation and energy, and functions more as a look up table to decide whether or not you can provide a needed hash to solve a puzzle for a transaction, which will score you some sweet crypto.

Below I will outline the process I used in order to create a micro mining rig using a Raspberry Pi 4 and 2 external USB drives for storage (the only limit in space here is the amount of external drives or storage you can hang off the pi, you can always set up additional network storage).

Raspberry pi chia farm

Pi OS or Ubuntu server.

For our tutorial, we will be using the Raspberry Pi OS 64-bit beta. However, these steps will work for the Ubuntu server as well but will require some slight tweaks.

2. Once you have a 64-bit operating system installed on your Raspberry Pi, we can proceed.

Our first step is to ensure that we have the latest package list and upgrade any out-of-date packages.

We can perform this task by running the following two commands on the system.

sudo apt update sudo apt upgrade

3. With our Raspberry Pi up to date, we now need to install the packages required to set up the official Chia blockchain.

Use the following command on your system to install the packages we need.

sudo apt install git build-essential python3-dev

With this command, we are installing three different packages.

Raspberry pi 4 chia farming

That computer will be connected to the Internet, keep track of your harvesters, maintain your wallet and keep your copy of the blockchain synced. The instructions to set up a windows chia farmer are all on chia.net. However, for plotting, I highly recommend madMAx running on a Windows computer.

It’s a highly tunable plotter that takes great advantage of RAMdisks and M.2 drives. I dock my bare drives in a SATA dock attached to my gaming computer via an eSATA port adapter. (Don’t forget the cables!) Your other option is to just use external USB hard drives, but make sure you have the ones with AC power adapters. Your little Pi will not like powering hard drives through the USB ports.

Once you’ve got your “destination drive” connected, set up madMAx to run continuously until it fills up the drive.

Raspberry pi 3 chia farming

You should see the IP address of your Raspberry Harvester!

Another “harvester command” that I like to run to ensure everything is kosher is to run”

chia plots check

It will do just that, first finding all the plots in the attached drive and then ensuring that they’re reachable, formatted with keys that you own, and that the whole setup is fast enough to react if you are asked to validate a found coin in one of your plots!


chia command not found? Don’t forget to get back into the python environment before trying to run the chia command:

[email protected]:~ $ chia -bash: chia: command not found [email protected]:~ $ ls chia-blockchain [email protected]:~ $ cd chia-blockchain/ [email protected]:~/chia-blockchain $ . ./activate (venv) [email protected]:~/chia-blockchain $ chia stop all

Another issue that I see is that sometimes the start and stop commands don’t do their thing.

Raspberry pi 400 chia farming

Created: 07/18/2021Updated: 01/23/2022How to Farm and Plot Chia Coins with just one Raspberry Pi

by Chris Wasshuber

The Chia cryptocurrency has made a splash. It is the brainchild of Bram Cohen, the inventor of the BitTorrent protocol. Some say he is a genius. Others consider him a sleazeball and opportunist.

I have no idea. I have never met him and don’t know what he is. But my life experience has taught me that the truth often lies somewhere in the middle. Perhaps he is a genius sleazeball. Who knows. This is not about Mr.
Cohen. This article is about helping you make sense of it all and navigating the treacherous waters, or should I say ‘farmlands’ of Chia cryptocurrency farming.

Chia caused a shortage of storage space. Prices for hard disks and SSDs have increased due to that shortage. The Internet is filled with recommendations for pricey plotting hardware.
It is crazy.

I’ll give a brief run down here.

I’ll start with some basic stats:

Basically… I’ve not been super dedicated in terms of actually plotting, the Raspberry Pi is actually incredibly slow to plot even with an M.2 drive, so I’ve been using other machines to plot in spare time onto a NAS, then migrating the files from the NAS to the Raspberry Pi attached drives via Cron job.

My current win time with 88 plots is 1 year and 10 months, whilst I know I don’t have that many plots, that’s still a nuts long time to get anything (think ROI at a minimum $700), and as I only had 2x 12TB drives with a total space of about 10.9TB each, I’ve almost filled half my space (conservatively I could hold maybe 200 plots).

From the picture above, you’ll notice a heap of WARNING on LOAD issues in Glances, a pretty sweet monitoring tool.

Raspberry pi chia farming simulator

The first computer you sync will take up to a couple of days to sync with the complete blockchain. It’s currently at 16GB! Once you see the upper left-hand box on the main screen say “SYNCED”, you can move forward.

Quit the program and hop over the File Manager. You’ll need a network share drive or a 32GB (or larger) thumb drive to move some files to your Raspberry.

I just copy them to my NAS, which I can mount on the Raspberry.

Quit the Chia program completely. The first thing you’ll want is the blockchain. You may need to turn on hidden files in Windows Explorer to find the .chia folder in your home. Navigate to C:\users\username\.chia\mainnet\db and find the 16GB database file.
Copy it to your thumb drive or network share.

Next, we need a copy of the SSL keys.

Farming chia raspberry pi

Tomshardware recently said that the price of specific HDD and SSD used for Chia farming has increased in price as much as $300 each.

In addition to the cost of storage going up, it’s a myth that you can efficiently create Chia plots on a Raspberry Pi. The Chia Calculator recommends that you build a NUC. That build comes in at over $1.2k USD to farm 10 plots on only 1TB of farmland.

Official Pools

At the time of writing this article, there are no official Chia Pools.

Several privately operated pools have shown up recently. However, there are no rules or safeguards to prevent a non-official pool from scamming you out of earnings. In some cases, these un-official pools are requiring you to provide your private wallet key.
No Bueno.

Similar to other consensus models, proof of space and time is also susceptible to a 51% attack.

Raspberry Pi.

To start the Chia farmer, we need to run the following command.

chia start farmer

Adding a Plot to your Chia Farm

Now that we have the Chia farmer up and running on your Raspberry Pi, we can add a plot to the farm.

1. Before proceeding, you will need an external hard drive connected to your Raspberry Pi that already has plots on it.

While it is possible to use the Pi 4 to plot a hard drive, it is not recommended as it will take considerable time, even for a relatively small plot.

If you haven’t mounted a drive to a Raspberry Pi before, be sure to follow our tutorial on mounting a USB drive.

2. With a drive mounted to your Pi, you will need to work out the location of the plots.

Any drive automatically mounted to your Raspberry Pi should be located within the “/mnt/” directory.

Chia is always being updated and worked on. Therefore, you will want to make sure that you are using the latest available version of Chia from time to time.

The following steps will show you how to update the Chia farmer running on your Raspberry Pi.

1. First, we need to stop any currently running session of Chia as we are about to update its file.

If you are using our service, this is as straightforward as running the following command.

sudo systemctl stop chiafarmer

2. With the Chia farmer now stopped, we can move on to updating everything.

To start this process, we need to first change back into the directory where we cloned the Chia blockchain code.

cd ~/chia-blockchain

3. We now can use git to update the repository to the latest version.

The command we need to use is called “pull“.

Leave a Reply

Your email address will not be published.