GithubHelp home page GithubHelp logo

widszhinigami / esp-miner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skot/esp-miner

0.0 0.0 0.0 2.57 MB

A bitcoin ASIC miner for the ESP32

License: GNU General Public License v3.0

Shell 0.42% Python 2.76% C 77.76% TypeScript 10.33% Makefile 0.08% HTML 4.65% CMake 1.30% Dockerfile 0.31% SCSS 2.40%

esp-miner's Introduction

ESP-Miner

Supported Targets ESP32-S3 (BitAxe v2+)

Requires ESP-IDF v5.1

You can chose between 2 methods of installations:

Manual Installation

Follow the official instructions.

ESP-IDF Visual Studio Code Extension

Install the "Espressif IDF" extension, it will automate the IDF installation for you.

Hardware Required

This firmware is designed to run on a BitAxe v2+

Configure the project

Set the target

idf.py set-target esp32s3

Use menuconfig to set the stratum server address/port and WiFi SSID/Password

idf.py menuconfig

Set following parameters under Stratum Configuration Options, these will define the stratum server you connect to:

  • Set Stratum Address to the stratum pool domain name. example "public-pool.io"

  • Set Stratum Port to the stratum pool port. example "21496"

  • Set Stratum username to the stratum pool username. example "<my_BTC_address>.bitaxe"

  • Set Stratum password to the stratum pool password. example "x"

Set following parameters under Example Connection Configuration Options:

  • Set WiFi SSID to your target wifi network SSID.

  • Set Wifi Password to the password for your target SSID.

For more information about the example_connect() method used here, check out https://github.com/espressif/esp-idf/blob/master/examples/protocols/README.md.

Build website

To build the website for viewing and OTA updates open the Angular project found in

ESP-Miner\main\http_server\axe-os

Then install dependencies and build.

npm i
npm run build

When the esp-idf project is built it will bundle the website in www.bin

Build and Flash

Build the project and flash it to the board, then run monitor tool to view serial output:

idf.py -p PORT flash monitor

(To exit the serial monitor, type Ctrl-].)

See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.

Run Unit tests

The unit tests for the project use the unity test framework and currently require actual esp32 hardware to run.

They are located at https://github.com/johnny9/esp-miner/tree/master/components/stratum/test

cd ./test/
idf.py set-target esp32s3
idf.py -p PORT flash monitor

esp-miner's People

Contributors

benjamin-wilson avatar checksum0 avatar developeralgo8888 avatar georges760 avatar johnny9 avatar ozbibi avatar satsforfreedom avatar skot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.