shufps / piaxe-miner

A Python-based ASIC miner
GNU General Public License v3.0
33 stars 9 forks source link

Hardware

PiAxe-Miner is the software needed to run the PiAxe and QAxe.

The repository with design files, BOM, ... can be found here!

Stratum Client Software

Fork of: https://github.com/crypto-jeronimo/pyminer
Changes:

Influx and Grafana

The repository contains a dockered setup running on the Pi that shows some statistics:

The "blocks found" counter is static of course ...

PyMiner

Currently supported algorithms:

Usage

    python pyminer.py [-h] [-o URL] [-u USERNAME] [-p PASSWORD]
                         [-O USERNAME:PASSWORD] [-a ALGO] [-B] [-q]
                         [-P] [-d] [-v]

    -o URL, --url=              stratum mining server url
    -u USERNAME, --user=        username for mining server
    -p PASSWORD, --pass=        password for mining server
    -O USER:PASS, --userpass=   username:password pair for mining server

    -B, --background            run in the background as a daemon

    -q, --quiet                 suppress non-errors
    -P, --dump-protocol         show all JSON-RPC chatter
    -d, --debug                 show extra debug information

    -h, --help                  show the help message and exit
    -v, --version               show program's version number and exit

    Example:
        python pyminer.py -o stratum+tcp://foobar.com:3333 -u user -p passwd

Setup Instructions

Requirements

Installation

# install pip3
sudo apt install python3-pip

# clone repository
git clone https://github.com/shufps/piaxe-miner
cd piaxe-miner

# and install requirements
pip3 install -r requirements.txt --break-system-packages

# copy example files
cp config.yml.example config.yml
cp start_mainnet_publicpool_example.sh start.sh

In the new start.sh insert your bc1... address.

After copying the example files, edit them. The config.yml probably doesn't need changes if connecting a QAxe+.

PiAxe

Depending on your Device change between piaxe and qaxe in the miner setting.

Make sure to change to the correct USB Serial PiAxe:

  serial_port: "/dev/ttyS0"

If running on Pi Zero (1 or 2)

Disable the influx or point it to your externally managed influxdb, with the most recent changes the pi zero can no longer run grafana.

Start the miner

Change start_mainnet_publicpool_example.sh to your needs.

For more detailed logging

Activate debug_bm1366 to get a more detailed output in shell.