Skip to content

Bitcoin miner

Bitcoin miner using ASIC Chips attached via USB (2015)

Install and configure BFGMiner

Install and build

git clone
cd bfgminer

For Raspberry Pi:

sudo nano /boot/cmdline.txt
Add "slub_debug=FP" to the code at the end of the first line (same line)

Configure bfgminer

sudo ./bfgminer -S antminer:all -o -u FullByte.worker1 -p xZ7du2qE --set-device antminer:freq=4F02

Add to autostart

sudo nano /etc/rc.local

Add the following lines at the bottom but above "exit 0" :

cd /home/pi/PiMiner
sudo python &

cd /home/pi/bfgminer
#sudo screen -S bfgminer -d -m sudo ./bfgminer -S antminer:all -o$
#sudo screen -S bfgminer -d -m sudo ./bfgminer -S antminer:all -o stratum+tcp://nl1.$
sudo screen -S bfgminder -d -m sudo ./bfgminer -S antminer:all -o$

Now with the following command you can access the bfgminer screen:

sudo screen -r

Kill mining task

ps aux | grep PiMiner
sudo kill <processID>
ps aux | grep bfgminer
sudo kill <processID>

AntMiner U1 over clocking Settings Frequency

Hash Rate   (GH/s)  –bmsc-freq Setting
200         1.6     0781 (Default)
225         1.8         0881
250         2.0         0981
275         2.2         0A81

Setup GPIO for visual output on attached LCD board

Run the following commands

sudo apt update
sudo apt install git
git clone
sudo apt install python-dev
sudo apt install python-rpi.gpio

Edit modules

sudo nano /etc/modules

check for newest version

sudo apt install python-smbus
sudo apt install i2c-tools

IF this file exists (/etc/modprobe.d/raspi-blacklist.conf) do...

Comment out these 2 lines:

sudo nano /etc/modprobe.d/raspi-blacklist.conf
#blacklist spi-bcm2708
#blacklist i2c-bcm2708

Test connection

sudo i2cdetect -y 1
Back to top