[Grbl_Esp32 Issue#731] Stepper motors always locked when step idle delay changed.

未分类 bolang 6个月前 (10-14) 40次浏览

Issue #731 | 状态: 已关闭 | 作者: MillerRen | 创建时间: 2021-01-05

标签: help wanted


When i change the ‘step idle delay’ to 255. stepper motors locked. It’s ok. But when i change it back to 25. stepper motors still locked. The step singal allways high.

My firmware version is 1.3a

!image

C++
#define XSTEPPIN GPIONUM14
#define XDIRECTIONPIN GPIONUM27
#define YSTEPPIN GPIONUM26
#define YDIRECTIONPIN GPIONUM25
#define ZSTEPPIN GPIONUM33
#define ZDIRECTIONPIN GPIONUM32

#define XLIMITPIN GPIONUM16
#define YLIMITPIN GPIONUM4
#define ZLIMITPIN GPIONUM15

#define DEFAULTHOMINGCYCLE0 bit(ZAXIS)
#define DEFAULTHOMINGCYCLE1 bit(XAXIS)

// OK to comment out to use pin for other features
#define STEPPERSDISABLEPIN GPIONUM12

// Spindle Output Pin
#define SPINDLEOUTPUTPIN GPIONUM17

#define SPINDLE_TYPE SpindleType::LASER
#define USEMACHINEINIT


评论 (5)

#1 – bdring 于 2021-01-05

I think they will unlock after the next move.

If you want to unlock them temporarily use $MD

https://github.com/bdring/Grbl_Esp32/wiki/Settings#motordisable-or-md


#2 – MillerRen 于 2021-01-05

Thanks for your reply. I have tried many times but problem still even though erase full flash and reflash esp32. Maybe my board causing. I will check it. Thx.


#3 – bdring 于 2021-01-05

I would assume you have a hardware or machine definition problem. Nobody has reported an issues with stepper enable.

What hardware are you using. Are you 100% sure the pin is connected properly?

Try this.

Set $stepper/IdleTime=200
Reboot the ESP32
Check the voltage of GPIONUM12
Do a long move while checking the voltage of 12


#4 – sjonholle 于 2021-01-08

GPIO12 is a special pin https://github.com/espressif/esptool/wiki/ESP32-Boot-Mode-Selection
Have you tried GPIO13 ? the examples use also this pin.


#5 – MillerRen 于 2021-02-06

resolved by latest code on devt branch.


原始Issue: https://github.com/bdring/Grbl_Esp32/issues/731

喜欢 (0)