PiAxe-Miner is the software needed to run the PiAxe and QAxe.
The repository with design files, BOM, ... can be found here!
Fork of: https://github.com/crypto-jeronimo/pyminer
Changes:
- Removed Scrypt hashing and added Miner class
- Made it work with Python3
- added PiAxe and QAxe as miner
- added reconnect logic on broken connections
The repository contains a dockered setup running on the Pi that shows some statistics:
The "blocks found" counter is static of course ...
Currently supported algorithms:
sha256d
: SHA256d
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
- Raspberry Pi 3 (Pi Zero doesn't run influx)
- Python 3.x PIP
Install the required python packages via
pip3 install -r requirements.txt
configure the config.yml
file to your needs
change values like the miner type and debug value
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"
Make sure to change to the correct USB Serial QAxe
:
serial_port_asic: "/dev/ttyACM0"
serial_port_ctrl: "/dev/ttyACM1"
tip: if you are unsure which ttyACMs are the right one, you can use dmesg
to view the latest system messages.
Disable the influx or point it to your externally managed influxdb, with the most recent changes the pi zero can no longer run grafana.
Change start_mainnet_publicpool_example.sh
to your needs.
Activate debug_bm1366 to get a more detailed output in shell.