bitaxe/readme.md

69 lines
4.4 KiB
Markdown
Raw Permalink Normal View History

2023-06-19 23:45:22 -04:00
```
Closed Source is Antithetical to Bitcoin
```
2023-08-22 22:29:18 -04:00
# The bitaxeUltra
2023-08-23 16:53:00 -04:00
bitaxe is a fully open source hardware Bitcoin ASIC miner. Ultra is the 3rd major revision of the bitaxe that now includes the BM1366 ASIC from the S19XP
2023-08-22 22:29:18 -04:00
![bitaxeUltra assembled](doc/built.png)
2022-05-26 12:54:51 -07:00
## Goals
2023-01-30 23:37:57 -05:00
- **Standalone**: can mine directly to your pool over WiFi. No External computer needed.
- **Embedded**: low cost, low maintenance, high availability, high reliability, low power.
2023-07-19 22:31:30 -04:00
- **ASIC**: based on the very, very efficient BM1366 from Bitmain.
2023-01-30 23:37:57 -05:00
- **Versatile**: solo/pool mining, autotune power/heat/efficiency.
- **Open Source**: All design files are provided.
2023-01-30 23:37:57 -05:00
## Features
2023-01-31 00:04:22 -05:00
- **ESP32-S3-WROOM-1** wifi microcontroller on board
2023-08-22 22:32:58 -04:00
- **TI TPS40305** buck regulator steps down the 5V input to power the BM1366
- **Maxim DS4432U+** current DAC digitally adjusts the BM1366 core voltage from 0.04V to 2.4V
2023-01-31 00:04:22 -05:00
- **TI INA260** power meter measures the input voltage and current of the miner
2023-08-22 22:32:58 -04:00
- **Microchip EMC2101** PWM controls the fan and monitors tach output. Measuring internal die temp isn't working.
2023-06-01 13:19:23 -04:00
- 0.91" **SSD1306 OLED** I2C Display Module
2023-07-19 22:31:30 -04:00
## BM1366
2022-05-26 12:54:51 -07:00
2023-07-19 22:31:30 -04:00
- 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.
2022-05-26 12:54:51 -07:00
## Current Status
2023-08-22 22:29:18 -04:00
![bitaxeUltra running](doc/ultra_running.png)
- v1 hardware has been built, and it does mine! Quite well actually. Be sure to check the [issues](https://github.com/skot/bitaxe/issues) for known bugs, reworks and errata.
2023-06-01 13:19:23 -04:00
- 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.
2022-05-26 12:54:51 -07:00
## Hardware
2023-07-19 22:31:30 -04:00
- [BM1366 from NBTC on AliExpress](https://www.aliexpress.us/item/3256804709142138.html). I got the "AG" variant. Not really sure what the difference is.
2022-05-26 12:54:51 -07:00
- [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.
2023-01-30 23:37:57 -05:00
- 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.
2023-07-19 22:31:30 -04:00
- 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
2023-10-27 19:20:50 -04:00
- Supports 0.91" SSD1306-based I2C OLED Module. [Example Amazon seller](https://www.amazon.com/gp/product/B08ZY4YBHL)
2023-07-19 22:31:30 -04:00
- Level shifters to interface the 1.8V BM1366 with the 3.3V ESP32. These pins are also broken out.
2023-03-20 16:34:39 -04:00
- [KiCad 7](https://www.kicad.org) design files
2022-05-26 13:08:20 -07:00
- All of the parts on the board are listed in the KiCad BOM
2022-05-26 12:54:51 -07:00
## Software
2023-08-22 22:29:18 -04:00
- The [ESP-Miner](https://github.com/skot/ESP-Miner) firmware used for the BM1397-based bitaxe has been adapted for the BM1366 and the current main branch can support both.
- There is still work to be done on reverse engineering the BM1366 register map. If you can help, get in touch!
2022-05-26 12:54:51 -07:00
2023-01-31 00:24:49 -05:00
## Power Supply Requirements
- [5VDC Power supply](https://www.amazon.com/BTF-LIGHTING-Plastic-Adapter-Transformer-WS2812B/dp/B01D8FM4N4). Should be capable of over 15W
2023-08-22 22:29:18 -04:00
- **DO NOT** use the BS barrel to screw terminal adapter that comes with some of these power supplies. They have horrible series resistance and your bitaxe will not be happy!
2023-01-31 00:24:49 -05:00
- Needs to connect with [spade-style connectors](https://www.amazon.com/gp/product/B01G4POUAU)
### ESP32 Programming Requirements
2023-07-19 22:31:30 -04:00
**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;
2023-01-31 00:24:49 -05:00
- [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)
2023-06-01 13:19:23 -04:00
- This is best done with VSCode and the Espressif plugin
2023-01-31 00:24:49 -05:00
## Building
- Check out [building.md](building.md) for PCB ordering tips
- Check out [assembly.md](assembly.md) for assembly tips