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)

WIP

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
overscan_left=22
overscan_right=38
overscan_top=-22
overscan_bottom=-24

# uncomment to force a console size. By default it will be display's size minus
# overscan.
framebuffer_width=480
framebuffer_height=300

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
hdmi_ignore_hotplug=1

# uncomment for composite PAL
sdtv_mode=2
sdtv_aspect=3

For more options see http://elinux.org/RPi_config.txt

Bitcoin miner using ASIC Chips attached via USB (2015)

Install and configure BFGMiner

Install and build

git clone https://github.com/luke-jr/bfgminer
cd bfgminer
./autogen.sh
./configure
make

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 stratum.bitcoin.cz:3333 -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 PiMiner.py &

cd /home/pi/bfgminer
#BITCOIN.CZ
#sudo screen -S bfgminer -d -m sudo ./bfgminer -S antminer:all -o stratum.bitcoin.cz$
#CEX.IO
#sudo screen -S bfgminer -d -m sudo ./bfgminer -S antminer:all -o stratum+tcp://nl1.$
#BTC GUILD
sudo screen -S bfgminder -d -m sudo ./bfgminer -S antminer:all -o eu-stratum.bt$

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 http://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git
sudo apt install python-dev
sudo apt install python-rpi.gpio

Edit modules

sudo nano /etc/modules
i2c-bcm2708
i2c-dev

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