Hi folks,
my self-developed board works with 4 axes (plus limit switches, feed, hold, reset) and should switch on/off a milling motor driven by a relay. No PWM, the speed is adjusted manually with a slider directly at the motor.
So I prepared to use GPIO35 (Door/Flood/Mist are not in use), but serial Arduino interface says “no spindle pin”.
I played with many variations of Spindle PWM, enable, etc., but no luck. Ouput is constantly 1V LOW.
In the ESP32 XYZA"
#ifdef N_AXIS
#undef N_AXIS
#endif
#define N_AXIS 4
#define XSTEPPIN GPIONUM12 / labeled Y /
#define XDIRECTIONPIN GPIONUM14 / labeled Y /
#define YSTEPPIN GPIONUM26 / labeled X /
#define YDIRECTIONPIN GPIONUM15 / labeled X /
#define ZSTEPPIN GPIONUM27 / labeled Z /
#define ZDIRECTIONPIN GPIONUM33 / labeled Z /
#define ASTEPPIN GPIONUM25 //ok
#define ADIRECTIONPIN GPIONUM22 //ok
#define SPINDLETYPE SPINDLETYPE_PWM
#define SPINDLEOUTPUTPIN GPIONUM35
// #define SPINDLEPWMPIN GPIONUM35
// #define SPINDLEENABLEPIN GPIONUM2 //o??
#define LIMIT_MASK B11
#define XLIMITPIN GPIONUM17 //ok
#define YLIMITPIN GPIONUM4 //ok
#define ZLIMITPIN GPIONUM16 //ok
#define ALIMITPIN GPIONUM21 //ok
#define STEPPERSDISABLEPIN GPIONUM13 //ok
// #define COOLANTMISTPIN GPIONUM21
// #define COOLANTFLOODPIN GPIONUM25
#define PROBEPIN GPIONUM_32 //ok
//#define CONTROLSAFETYDOORPIN GPIONUM_35 // needs external pullup
#define CONTROLRESETPIN GPIONUM34 // needs external pullup
#define CONTROLFEEDHOLDPIN GPIONUM_36 // needs external pullup
#define CONTROLCYCLESTARTPIN GPIONUM_39 // needs external pullup
“
评论 (2)
#2 – JensHauser 于 2020-06-22
So simple, I see it now. Thank you so much, I´ll take care of the hardware and then check the software settings.
#1 – floggy22 于 2020-06-22
Hi,
you can not use pin 35 as an output. It is input only.
https://github.com/bdring/Grbl_Esp32/wiki/Setting-Up-the-I-O-Pins