skot / bitaxe

Open source ASIC Bitcoin miner hardware
GNU General Public License v3.0
862 stars 128 forks source link

ESP32-C6 #55

Closed Lysnyt closed 10 months ago

Lysnyt commented 1 year ago

Hello Skot, would be not better to use the C6 version of ESP32 instead od dual core S3. C6 have Wifi 6 implemeted. Which is not faster but should be more reliable if there are many bitaxes connected at once.

C6: High performance 32-bit RISC-V CPU, up to 160 MHz,[12] implementing RV32IMAC Low Power 32-bit RISC-V CPU, up to 20 MHz, implementing RV32IMAC 512 KiB SRAM and 320 KiB ROM IEEE 802.11ax (Wi-Fi 6) on 2.4 GHz, supporting 20 MHz bandwidth in 11ax mode, 20 or 40 MHz bandwidth in 11b/g/n mode IEEE 802.15.4 (Thread + Zigbee) Bluetooth 5 (LE) 30 (QFN40) / 22 (QFN32) programmable GPIOs

S3: Dual-core Xtensa LX7 CPU, up to 240 MHz,[10] and supporting single-precision FPU Added instructions to accelerate machine learning applications 512 KiB SRAM, 384 KiB ROM, and 16 KiB RTC SRAM Capable of connecting to external PSRAM and Flash via Quad SPI or Octal SPI, and share the same 32 MiB address space Ultra-low power RISC-V (RV32IMC) coprocessor clocked at 17.5 MHz approximately Ultra-low power FSM coprocessor similar to previous ESP32 and ESP32-S2 WiFi 2.4 GHz (IEEE 802.11 b/g/n)[11] Bluetooth 5 (LE) 44 programmable GPIOs 2 × 12-bit SAR ADCs, up to 20 channels USB OTG

skot commented 1 year ago

Yes, definitely! I would like to switch ASAP.

Is there a similar C6 module?

Lysnyt commented 1 year ago

In your BOM list is ESP32-S3-WROOM-1-N16R8 (which has 16 MB (Quad SPI) 8 MB (Octal SPI)) Right now ESP32-C6-WROOM-1-N4 (4 MB (Quad SPI)) available on mouser, digikey, aliexpress :) I don´t know if the pins are compatible ...

skot commented 1 year ago

I would like to investigate this further for the Ultra or perhaps the UltraHex

developeralgo8888 commented 1 year ago

better with UltraHex

skot commented 10 months ago

The C6 only has a single core and it's a slower clock speed. I think we're going to stick with the S3 for now. I'll keep an eye out for a suitable RISC-V replacement in the future. ✊

Lysnyt commented 10 months ago

Hi Skot, is really necessary so much power for a serving module ? I mean, the calculation are done with The BM chip, not by ESP, am i wrong ?

Announced ESP32-C5

skot commented 10 months ago

Ooo ESP32-C5 looks interesting I'll check it out.

It is necessary to have processing power on the miner controller. especially as we get more chips on the miner. There is a lot of processing needed to prepare work and check responses from the ASIC. When you add in the admin webpage, the dual core is definitely nice.

benjamin-wilson commented 10 months ago

I agree the dual core is important for all the misc tasks that we do (and more to come). I'm sure they'll eventually release a dual core C5 version and we could move to that.

Lysnyt commented 10 months ago

Oh, i see. Thanks for explanation :) Even without that your skilled programmers can use the S3 ESP-WIFI-MESH networking feature (or even Bluetooth mesh) to make one Bitaxe as master and other near as slave. -Maybe- it could harness more computing potential such inter-connected Bitaxes for splitting jobs (MESH, Webpage, network throughput, Mining admin)

eft37 commented 10 months ago

Esp32 P4 is an upcoming faster risc-v dual core board announced 9 months ago. Maybe that one?

benjamin-wilson commented 10 months ago

At first glance looks like it could be a substitute

benjamin-wilson commented 10 months ago

Nevermind - no wifi

benjamin-wilson commented 10 months ago

Although it looks like they intended for you to add a ESP32-C2 for radio hmmmm

skot commented 10 months ago

Ooo the P4 could be good for SeedSigner

Lysnyt commented 10 months ago

https://en.wikipedia.org/wiki/ESP32

eft37 commented 10 months ago

Ooo the P4 could be good for SeedSigner

I learned about Seedsigner.com via this post, you think it could do that vs a raspberry pi zero?