Raspberry pi chia farming

However, Chia themselves claim on their FAQ page “...Farming is more decentralized because it relies on empty hard disk space and anyone with a mobile phone, laptop…“.

As time goes on, the farming/mining community will likely begin to publish their personal findings.

SSD and HDD Supply Chain Issues

As though supply-chain congestion was not already bad enough, one of the last items everyone could readily buy is becoming a delicacy; large capacity HDDs and SSDs. Even for a consumer-grade SSD such as the Samsung 860 SSD this listing on Amazon does not support Prime shipping and has a shipping time of about 2 weeks.

Raspberry pi chia farming

First, you’ll need to install git and some python stuff:sudo apt-get install -y git build-essential python3-dev

Clone the Chia git repository containing the latest version.

git clone https://github.com/Chia-Network/chia-blockchain.git -b latest

That’s all the downloading we need. Let’s get to work getting the chia software running. The steps will try to guide you to the next step to type in, but don’t listen.
Just type in these 5 lines:

cd chia-blockchain sh install.sh . ./activate chia init chia start farmer

Stealing some files …

At this point, we have a complete farmer running. We need to do a little finagling to get this guy to be a fully compliant harvester and member of our farm. Back on the main farming system, which is now, hopefully, running and completely synced.

Raspberry pi chia farming setup

Over the last months I have used and abused a Raspberry Pi 4 to not only harvest and farm Chia plots but to at the same time create plots, too. For a mere $75 I can create a plot in less than 23 hours and have at the same time a full node, wallet, farmer, and harvester running. I don’t use any SSD just plain old magnetic hard disks.

All of this without occupying my regular computer and at a much lower power consumption than your typical plotting rig. I am explaining everything in my ebook How to Farm and Plot Chia Coins with just a Raspberry Pi.

This is a long-term strategy. With about 1 plot a day I will not break any speed records of filling up Terra Bytes of storage space.

But then again this is not a formula one race. Money has a time value. It is a big benefit if one can delay capital investment.

Raspberry pi chia farm

What we do want to accomplish is to share the keys from the main node to this harvester so it can connect. Restart chia with the command “chia start all” and then add the main node keys. I have a shared copy of the ca directory on my NAS temporarily mounted on /mnt, so the command is:chia init -c /mnt

The program will ingest these keys for later use.
It will tell you “Found private CA in /home/pi/.chia/mainnet, using it to generate TLS certificates”. You can now remove the thumb drive / unmount the share. We’re done stealing files.

Attach the Plot Drive

I just found these on Amazon: UGREEN SATA to USB 3.0 Adapter Cable.

Raspberry pi 4 chia farming

In this way, it creates temporary parcels (blocks of information on disk) that later become a fixed block that is the one that adds value to the crypto. This allows mining or farming without the need for hardware as powerful as other cryptocurrencies require.

Chia’s problem then what is it? Well, when mining with hard drives, the price of these has risen significantly in recent months. In some high-capacity models with business characteristics that better withstand continued use, the cost has risen by up to 60% more than the original.

Mine Chia with a Raspberry Pi 4

Leaving aside what it is, the interesting thing about this cryptocurrency is that a Chia mining farm can be managed with a simple Raspberry Pi 4 .

Raspberry pi 3 chia farming

The Chia network generates a key, much like a lottery ticket number, if one of your plots in your storage farm contains the key, you get some $XCH as a reward.

As the amount of storage increases so does the difficulty of receiving a reward. Between March 28th 2021 and May 28th 2021, the capacity of the netspace increased by a staggering 7125% from 169PiB to 12329PiB. That a nearly 72x more difficult to farm than 2 months prior.
Happy Farming!

Farming Chia Is Not As Green As You Think

One of the reasons many people have an interest in farming Chia is because storage space, when compared to other parts of a PC, is quite affordable. For example, an Iron Wolf HDD (4 TB) can be yours for as little as $100 USD.

Raspberry pi 400 chia farming

I have been down that road a few years back with bitcoin mining. I barely broke even. It should be no surprise that a similar situation exists with Chia coins. I don’t think many of the smaller farmers will turn a profit.

They will invest a lot in hardware at the time prices are overblown and perhaps never make their money back. The Chia coin or XCH had a more or less continuous slide down from $1600 to now barely $200. Nobody can say where it will go, up or down, from here, but I think for the short to medium future it is more likely to further go down than to go up.

The total network storage space dedicated to Chia farming has increased to more than 30 ExaBytes. The larger this goes the less you will be able to earn with your storage space.
You should eventually see a message similar to the one we have below.chia.plotting.check_plots : INFO Summary chia.plotting.check_plots : INFO Found 1 valid plots, total size 0.09898 TiB chia.plotting.check_plots : INFO 1 plots of size 32

Starting Chia when your Raspberry Pi Boots

Now that you have a Chia farmer up and running on your Raspberry Pi, you will now likely want it to start on bootup.

To get Chia to start on boot, we will need to create a system file that will handle it.

1. Let us begin writing our new service by running the following command on your device.

We are using the nano text editor as it is relatively easy to use.

sudo nano /etc/systemd/system/chiafarmer.service

2. Within this file, we need to enter the following lines of text.

Raspberry pi chia farming simulator

Alternatively, if you want to generate new keys, you should follow step b).

The Chia key is the unique 24-word phrase you should have created when you plotted your hard drive.

a) At this point if you already have your unique 24 words that make up your private key, you can enter them into your Raspberry Pi Chia farmer.

1. To add your existing keys to Chia, run the following command on your device.

chia keys add

2. After running this command, you will be required to enter the 24-word phrase.

Once entered, you just need to press the ENTER key to confirm the phrase.

b) Alternatively, you can also use your Raspberry Pi to generate a brand new private key for Chia.

Farming chia raspberry pi

While that’s cooking, let’s turn our attention to getting the Raspberry going.

Chia Raspberry Setup

You’ll have to install the 64-bit version of Raspberry OS or Ubuntu to get the Chia farming software to work. I’m using Raspberry OS 64, which you can find here. If you like Ubuntu, grab the Raspberry 64 distro here. Copy your download to a thumb drive with Etcher and boot up your Raspberry. If you need some help with these steps, look at the tutorials on the bottom of the left side of this page.

Once you’re happy with the configuration of your Raspberry, passwords, timezone, networking, etc., you’re ready to install the Chia software. ssh to the Raspberry and login as “pi”.

Hopefully, you’ve already run:

sudo apt update sudo apt upgrade

and now you’re ready to run the following steps.

This has been demonstrated by a user through his YouTube channel when building a farm with 160 TB of capacity to grow Chia.

The 160 TB capacity offered by 17 hard drives are controlled through a Raspberry Pi 4. That not only means that the software in charge of all this process is much lighter than that of other currencies of this type that exist today, also much less demanding in terms of energy consumption and that is important in the face of an impact on the environment much less than Bitcoin or similar.

The popular Raspberry Pi 4 can fully handle a Chia node and its respective cultivation task. So it becomes one of the options that consumes the least energy resources. So, if you were thinking of mining Chia, maybe going deep into it with one of these plates is a good idea.

Also the volume of HIGH CPU LOAD issues that pop up is quite large, and this is all without plotting.

Is it possible to plot on the Pi? For sure, totally is. Is it efficient to do so? Hell no, really slow, totally not what it was designed for, and using an external M.2 drive probably isn’t giving the best throughput given its capped to a USB C port.

So where to from here? Well, I’ll continue to plot up until the maximum purchased storage for the Pi, then just sit it running in a cupboard and forget about it, maybe check it once every 6 months to see if anything has been successful.

TLDR; Fun little project, but not really worth the investment to date.

Leave a Reply

Your email address will not be published.