If I connect those pins what should be connected to the Arduino UNO to the ESP32 then I can control all of the motors with just with the AccelStepper library and the pin numbers like in this example: Control Stepper Motor with DRV8825 Driver Module and ESP32 ?
Be aware that the CNC shield pulls pin 8 (stepper enable) high so the steppers are disabled by default. Either enable the steppers in software (set pin 8 to output and write pin 8 to LOW) or jumper the stepper enable header to ground.
Hi, thank you for your answer, here is a schematic about my idea how to connect the shield with ESP32. Based on what @groundFungus said, I included pin8.
But the motor is still in the same position, not moving at all, if I remove it from the shield then the driver and the motor work perfectly, so, how can I use it with the shield?
As for the limit switches, when implemented they serve to feed back the boundaries of the work area for homing and safety. Sometimes a particular axis won't need to be bounded, like the angle parameter of a polar plotter for example. In that case, just don't implement a switch; ie: put a jumper in place of the NC contacts. It's as simple as that.