Bitcoin Mining on Raspberry Pi2





Introduction: Bitcoin Mining on Raspberry Pi2

Raspberry Pi Contest

Runner Up in the
Raspberry Pi Contest

Gather The Parts.

You will need a Raspberry Pi 2

A powered USB hub ( Please do not cheap out on this)

Antminer U1/U2/U3


Raspberry pi heatsink with fan

Step 1: Credit

Credit goes to jfoo

I really built this though

Step 2: Setup USB and Heatsink

Setup with the USB bitcoin miner to the USB powered hub with fan.

USB hub must be at lest 1.5 - 2.0 amps.

Also the Rpi heatsink and fan. You need this heatsink and cooling fan if you are overclocking the Rpi for maximum mining capability and planning to keep the raspberry pi up 24/7 without burning the core processor.

Step 3: SD Card Setup and Putty

Install fresh Raspian on your SD card with a minimum of 8gb.

Install Putty software and get into the terminal.

As for all Linux machines, update and upgrade.

Step 4: Installation

sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev screen libtool automake pkg-config libjansson-dev screen

Use this code to use to install independencies.

git clone

cd cgminer
sudo ./ export LIBCURL_CFLAGS=’-I/usr/include/curl’ sudo ./configure --enable-bmsc sudo make

sudo ./cgminer --bmsc-options 115200:0.57 -o POOL -u USERNAME -p PASSWORD --bmsc-voltage 0800 --bmsc-freq 1286

Paste this code in every time you need to reboot the raspberry pi.

Step 5: Pools

You can solo mine or pool mine. I made 20 bucks in 3 days. I recommend Bitminter because of its easy gui.



    • Paper Contest 2018

      Paper Contest 2018
    • Pocket-Sized Contest

      Pocket-Sized Contest
    • Science of Cooking

      Science of Cooking

    We have a be nice policy.
    Please be positive and constructive.




    i have a beaglebone black, can this rig be implemented using BeagleBone Black

    Your help will be deeply appreciated

    I don't know much about ras pie, and I looked at this and it looks good and feasiable but then as I went down the page it became Chinese.

    Can someone give me a way to work this for someone who is new to all of this?

    basically step 3 and below.


    i have this transferrable?
    can u help?

    no, because a raspberry pi is a full computer but arduino only runs code

    Hey guys, I am new to bitmining and want to do it kinda on the sideline for an extra buck here and there.

    I was wondering could you use this same technique for a raspberry pi 3 and use 4 usb hubs full of antminers?

    Also, would the code still the same?

    Hi, can you provide some guidance.

    After inputting the following command................

    pi@RaspPi01 ~/cgminer $ sudo ./ export LIBCURL_CFLAGS=.-I/usr/include/curl. sudo ./configure --enable-bmsc sudo make

    ................ into my RPi B, I get the following errors towards the end of the output......................

    ccan/ installing `./depcomp'
    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: invalid host type: ./configure
    configure: WARNING: you should use --build, --host, --target
    configure: WARNING: you should use --build, --host, --target
    checking build system type... Invalid configuration `export': machine `export' not recognized
    configure: error: /bin/bash ./config.sub export failed

    Am I missing some input parameters or doing something wrong?


    does this have to be made with antminer u1, u2, u3, or can any miner USB be used I have the latest raspberry PI 3 model b

    Hello i make everything but my raspberry pi don`t find my asci miner I use differend model miner What can I do Thank you.

    could you please make a totorial on how to do this on a pc? preferably somthing windows 64-bit? i got 2 xeon x5690's and 2 l5506's just folding at home for heat, i would rather get money out of it.

    Cpu mining is inificient and gpu mining is power consuming so you wouldnt make any money. Only in the kilahash range. Asics are at the gigahash and power eficient