Skip to content

Raspberry Pi

Some Raspberry Pi projects. I added a year since some projects are old and will not be maintained.

PiBoy (2021)


Setup 7" Car Color Monitor (2016)

First Retro Gaming Pi with Raspberry Pi 1 using analog video output to a 7" Car Color Monitor.

Edit config.txt:

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border

# uncomment to force a console size. By default it will be display's size minus
# overscan.

# uncomment if hdmi display is not detected and composite is being output

# uncomment for composite PAL

For more options see

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