Code Monkey home page Code Monkey logo

Comments (9)

hankecnc avatar hankecnc commented on September 14, 2024

If it can't be solved, I hope you can provide me with a bin firmware, I want to replace the Grbl_Esp32 control board sold before with grblhal_esp32, Grbl_Esp32 can be compiled with vc code Platformio and arduino, which is much simpler for me,

from esp32.

hankecnc avatar hankecnc commented on September 14, 2024

If the compilation problem is not easy to solve, can you provide a compiled bin file? Here is his pin assignment:
#define MACHINE_NAME "ESP32_V4"

#define X_STEP_PIN GPIO_NUM_21
#define X_DIRECTION_PIN GPIO_NUM_14
#define Y_STEP_PIN GPIO_NUM_26
#define Y_DIRECTION_PIN GPIO_NUM_15
#define Z_STEP_PIN GPIO_NUM_27
#define Z_DIRECTION_PIN GPIO_NUM_33

#define X_LIMIT_PIN GPIO_NUM_17
#define Y_LIMIT_PIN GPIO_NUM_4
#define Z_LIMIT_PIN GPIO_NUM_16

#define A_STEP_PIN GPIO_NUM_25
#define A_DIRECTION_PIN GPIO_NUM_13
//Adir GPIO_NUM_13
//Apul GPIO_NUM_25
#define SPINDLE_TYPE SpindleType::PWM
#define SPINDLE_OUTPUT_PIN GPIO_NUM_2 // PWM pin
#define SPINDLE_ENABLE_PIN GPIO_NUM_22 // Spindle start

#define COOLANT_FLOOD_PIN GPIO_NUM_12 // Coolant
#define PROBE_PIN GPIO_NUM_32 //Tool detection

from esp32.

hankecnc avatar hankecnc commented on September 14, 2024

Judging from the more than 150 esp32 control boards that have been sold, for amateur CNC, people seem to like the grbl of the esp32 port. It has many functions. It can connect to the control computer without plugging in usb, and can use wifi, bluetooth, etc. control,

from esp32.

hankecnc avatar hankecnc commented on September 14, 2024

In addition, I have established a Chinese grbl website to provide users with Chinese grbl tutorials, http://www.grbl.cc/

from esp32.

terjeio avatar terjeio commented on September 14, 2024

image

Looks like you have not downloaded the submodules with the --recurse-submodules option.

The simplest way to add your pin mapping is to create my_machine_map.h in the main directory, add definitions, and enable that in CMakelists.txt. BTW the mappings shown above is not compatible with grblHAL.

Grbl_Esp32 can be compiled with vc code Platformio and arduino

It should be possible to build grblHAL with VSCode - I did that earlier, but I have gave up on it after an automatic upgrade broke something. It should be possible to use platformio as well if you are able to create an ini-file. Compiling with Arduino is not possible without more fundamental code changes?

FYI there is a regression in the source that I have not yet comitted a fix for.

from esp32.

hankecnc avatar hankecnc commented on September 14, 2024

It's frustrating, or it doesn't work, I don't know what I'm doing wrong? English is not my native language and it's a headach
aaa
e

from esp32.

hankecnc avatar hankecnc commented on September 14, 2024

I used the --recurse-submodules download, also enabled a pinout file in my_machine.h, also in CMakeLists.txt
rr
Uploading dd.png…
Uploading aaa.png…
,

from esp32.

hankecnc avatar hankecnc commented on September 14, 2024

arr

from esp32.

terjeio avatar terjeio commented on September 14, 2024

You have to run the ESP-IDF startup script to setup the environment for compiling. On my machine there are two versions found on the Start menu in the ESP-IDF "folder" - this is what I get when starting ESP-IDF 4.3 CMD shortcut:

image

Then I have to change directory to the project folder before building/flashing.

When building with idf.py my_machine.h is not used at all, configuration has to be done in CMakeLists.txt, if you added my_machine_map.h for your board you have to disable (set to OFF) this line:

OPTION(BOARD_BDRING_V4 "Compile for bdring v4 3-axis board" ON)

and enable (set to ON) this line:
OPTION(BOARD_MY_MACHINE "Compile for my_machine_map.h" OFF)

I recommend using my_machine_map.h for custom mappings as this will not be overwritten on updates.

from esp32.

Related Issues (20)

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.