Bitcoin Mining on Raspberry Pi2




Introduction: Bitcoin Mining on Raspberry Pi2

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.

Raspberry Pi Contest

Runner Up in the
Raspberry Pi Contest



    • Fix It! Contest

      Fix It! Contest
    • Tiny Home Contest

      Tiny Home Contest
    • Metalworking Contest

      Metalworking Contest

    197 Discussions

    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?

    1 reply

    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.

    11 replies

    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

    oh and 1 gpu 250 watts... 2 cpu's 260wats(130wx2) so cpu is a bit harder on power than gpu. i got enough cpu power to smoothly play the amd ping pong demo running the physics on my cpu. sierusly, my posting pic of what i see in taskmgr and what i see on my desk. 4.2GHZ that is going to be maxed 24/7 for 6 months no mater what!


    If you would like to cpu mine or gpu mine, I recommend litecoin, ziftercoin, doggiecoin, or anty coin that accepts script. It will be perfect since ordinary asic hardware cant handle it. By the way, use mineral oild and a colling system for the mineral oil. It is about efficiant as water cooling but cooler as in awesome. Nice setup, don't burn the wires

    You should have titanX or gtx gforce 980ti graphics card and intel core i7 5960X with an evga titanium 1600W. That will satisfy the hungry graphics card

    oh, and if i had a core i7 i could not have 2 prossesors, and i think i could not have more than 8mb l3 cache, plus server hardwere has higher quality chips that last longer than desktop hardware. My x5690's lanch price was 1600$ a piece. i waited 2 years for the price to fall under 200$ a piece on ebay. story of my rig... ballen on a budget gathering parts over years.

    Also get them from micocenter since they gave me awesome prices. Just shoutingout. I have a custom built PC and instead of $7,000 awesome cad machine for $4,500

    over the years i have only sunk aobut 1200$ or so in my rig. my dad likes to spend most of my paycheck before i even know it came. so money is still tight after i got a legit job. i dropped 200$ on my gpu in 2012. 450$ on my mobo in 2013, 400$ total on my cpu's, 150$ on ram. 1300w psu was a gift from a firend. if i can find a titan x for under 200$ then its do-able.

    dont you understand? flat rate power bill. no heat in the house. every winter i use folding@home for heat, so i can keep it from being 35F inside to 45-55F depending on how cold it is. if i could make mony and heat my house at same time it would be retarted to say no. you miners are all the same, you figured it out and you dont want any one else to.

    If you were at the begining of bitcoin, you would make a ton. And i will make a tutorial later on