mirror of
https://github.com/skot/bitaxe.git
synced 2025-06-19 14:51:04 +02:00
updated readme for BM1366
This commit is contained in:
parent
fe18fa6570
commit
7f16bf01b6
60
readme.md
60
readme.md
@ -1,14 +1,14 @@
|
||||
```
|
||||
Closed Source is Antithetical to Bitcoin
|
||||
```
|
||||
# Presenting: The bitaxe
|
||||
# Presenting: The bitaxe_Ultra_
|
||||
bitaxe is the first fully open source hardware Bitcoin ASIC miner.
|
||||

|
||||

|
||||
|
||||
## Goals
|
||||
- **Standalone**: can mine directly to your pool over WiFi. No External computer needed.
|
||||
- **Embedded**: low cost, low maintenance, high availability, high reliability, low power.
|
||||
- **ASIC**: based on the very efficient BM1397 from Bitmain.
|
||||
- **ASIC**: based on the very, very efficient BM1366 from Bitmain.
|
||||
- **Versatile**: solo/pool mining, autotune power/heat/efficiency.
|
||||
- **Open Source**: All design files are provided.
|
||||
|
||||
@ -18,70 +18,48 @@ bitaxe is the first fully open source hardware Bitcoin ASIC miner.
|
||||
- **Maxim DS4432U+** current DAC digitally adjusts the BM1397 core voltage from 0.04V to 2.4V
|
||||
- **TI INA260** power meter measures the input voltage and current of the miner
|
||||
- **Microchip EMC2101** measures the BM1397 internal diode temperature. Also PWM controls the fan and monitors tach output.
|
||||
- Two **sweet** RGB status LEDs
|
||||
- 0.91" **SSD1306 OLED** I2C Display Module
|
||||
|
||||
## BM1397
|
||||

|
||||
## BM1366
|
||||
|
||||
- The BM1397 is a undocumented SHA256 mining ASIC from Bitmain. It's mostly used in the Antminer S17 and T17
|
||||
- Bitmain claims the BM1397 has 0.03J/GH efficiency
|
||||
- The BM1397 is available (new) for around $20 each and (used) for around $6 ea in small quantities.
|
||||
- Choose your BM1397 version: [Guide here](https://d-central.tech/bm1397-ad-ag-ah-ai-antminer-17-series-chip-replacement-guide/)
|
||||
- The BM1397 has the same footprint as the BM1387, but a very different pinout.
|
||||
- It also has two "Modes" that change some of the signal pins around to make chaining easy
|
||||
- The BM1397 is driven by an undocumented protocol over UART. Baudrate is 115200bps by default but can go up to 6Mbps in order to provide mining jobs quickly enough to the ASIC daisy-chain.
|
||||
- The BM1366 is a undocumented SHA256 mining ASIC from Bitmain. It's mostly used in the Antminer S19XP
|
||||
- Bitmain claims the BM1366 has 0.021J/GH efficiency
|
||||
- The BM1366 is available (new) for around $15 each in small quantities.
|
||||
- The BM1366 has a different footprint and pinout from the BM1397 and BM1387 in previous bitaxe.
|
||||
- The BM1366 appears to roll more than just the nonce on the chip. This is great news, because it allows much longer serial chains of ASICs and new work doesn't need to be sent as often.
|
||||
|
||||
## Current Status
|
||||
- v2.2 hardware has been built and tested -- it works!
|
||||
- Using cgminer on a separate computer, the bitaxe can mine in excess of 400 GH/s
|
||||
- ESP32 miner firmware is still underdevelopment.
|
||||
- Recently we have confirmed this is working! But it is not yet optimized. Check out [ESP-Miner](https://github.com/skot/esp-miner/tree/nonce_checking) for the latest.
|
||||
- v1 hadware has been built, and it does not catch on fire! We even have a response from the BM1366AG over serial.
|
||||
- This is an _advanced_ build! It's also still early days, so prolly not the best thing if you're just looking for a bitcoin miner to run.
|
||||
|
||||
## Hardware
|
||||
- [BM1397 from random AliExpress seller](https://www.aliexpress.com/item/3256802274958527.html). I got the "AG" variant. Not really sure what the difference is.
|
||||
- [BM1366 from NBTC on AliExpress](https://www.aliexpress.us/item/3256804709142138.html). I got the "AG" variant. Not really sure what the difference is.
|
||||
- [40x40mm heatsink and 5V fan](https://www.aliexpress.com/item/2251832861666365.html) from a random AliExpress seller. At least half of these arrived broken in some way. But they are cheap and the working ones do keep the BM1387's nice and cool when used with some thermal compound.
|
||||
- Swap this fan with the [Noctua NF-A4x10](https://noctua.at/en/products/fan/nf-a4x10-pwm) 5V 4-Pin fan for a much more pleasant experience.
|
||||
- The BM1397 serial port is 1.8V. These pins are broken out, but the main idea is to communicate with the BM1397 from the ESP32
|
||||
- Level shifters to interface the 1.8V BM1397 with the 3.3V ESP32. These pins are also broken out.
|
||||
- The BM1366 serial port is 1.8V. These pins are broken out, but the main idea is to communicate with the BM1366 from the ESP32
|
||||
- Level shifters to interface the 1.8V BM1366 with the 3.3V ESP32. These pins are also broken out.
|
||||
- [KiCad 7](https://www.kicad.org) design files
|
||||
- All of the parts on the board are listed in the KiCad BOM
|
||||
|
||||
## Software
|
||||
- [ESP-Miner](https://github.com/skot/ESP-Miner) firmware in progress.
|
||||
- check out the `i2c_test` branch for a basic firmware to init all hardware (besides BM1397)
|
||||
- check out the `nonce_checking` branch for the latest developments in the ESP32 miner
|
||||
- The [ESP-Miner](https://github.com/skot/ESP-Miner) firmware used for the BM1397-based bitaxe has not yet been adapted for the BM1366.
|
||||
- If you have some insight on the BM1366 protocol, please get in touch.
|
||||
|
||||
### Testing
|
||||
One of the best ways currently to test a new bitaxe is with a usbserial adapter and cgminer running on a separate computer.
|
||||
- You need a basic firmware running on the ESP32 that will power up the ASIC. [ESP-Miner i2c_test](https://github.com/skot/esp-miner/tree/i2c_test) is good for this.
|
||||
- You need a **1.8V** ftdi usbserial adapter. there are several on Amazon based on the FT232RL and one called "jim.sh" built on the FT230X
|
||||
- Connect the usbserial adapter to the 1.8V serial debug header on the bitaxe. It's the one below the heatsink next to the fan connector.
|
||||
- Make sure to connect the usbserial adapter `RTS` line to the bitaxe `RST` pin. Yes, that spelling is correct.
|
||||
- Download and build the [cgminer-bitaxe](https://github.com/skot/cgminer-bitaxe) fork.
|
||||
- This fork has a modified version of the GekkoScience CompacF driver to look for FT232RL or FT230X usbserial adapters and use the RTS signal for RST.
|
||||
|
||||
## Power Supply Requirements
|
||||
- [5VDC Power supply](https://www.amazon.com/BTF-LIGHTING-Plastic-Adapter-Transformer-WS2812B/dp/B01D8FM4N4). Should be capable of over 15W
|
||||
- Needs to connect with [spade-style connectors](https://www.amazon.com/gp/product/B01G4POUAU)
|
||||
|
||||
### ESP32 Programming Requirements
|
||||
To program the onboard ESP32, you need the following tools;
|
||||
**New** on the bitaxeUltra: it has a USB port for programming the ESP32!
|
||||
|
||||
To program the onboard ESP32 the old way, you need the following tools;
|
||||
|
||||
- [ESP-Prog](https://www.digikey.com/en/products/detail/espressif-systems/ESP-PROG/10259352) ESP32 Programmer
|
||||
- [TC2030-IDC-NL](https://www.tag-connect.com/product/tc2030-idc-nl) Tag Connect Cable
|
||||
- [TC2030-CLIP](https://www.tag-connect.com/product/tc2030-retaining-clip-board-3-pack)
|
||||
- This is best done with VSCode and the Espressif plugin
|
||||
|
||||
## Connections
|
||||

|
||||
|
||||
### Power Input
|
||||
| Pin Name | Description |
|
||||
| ----------- | ----------- |
|
||||
| +5V | Main input. This should be 5V, 15W |
|
||||
| GND | Main input ground |
|
||||
|
||||
## Building
|
||||
- Check out [building.md](building.md) for PCB ordering tips
|
||||
- Check out [assembly.md](assembly.md) for assembly tips
|
||||
|
Loading…
x
Reference in New Issue
Block a user