mstrens / grbl_controller_esp32

grbl controller for esp32
174 stars 76 forks source link

No movement in Auto mode #25

Closed kaktus312 closed 3 years ago

kaktus312 commented 3 years ago

"Move" screen... The button "Auto" is displayed, but if i press any button (X,Y,Z) there are no movements. In other modes (0.01/0.1/1/10) cnc moves correctly What will i have to change in my script (maybe delays somewere) to fix it.

mstrens commented 3 years ago

If you do not change the code, it should works. Still you have press for some time. The longer you press the longer the move becomes. It is the same process as for using the nunchuk

kaktus312 commented 3 years ago

It seems the problem solved. I have changed line #581 of the file com.cpp from if (bufferAvailable[0] > 15) { // tests shows that GRBL gives errors when we fill to much the block buffer to if (bufferAvailable[0] >= 5) { // tests shows that GRBL gives errors when we fill to much the block buffer

mstrens commented 3 years ago

Which version of GRBL where you running? Is it the version foreseen for a stm32f103 (which have extended buffers) used in RS-CNC32 project or the original version foreseen for an arduino (avr328)?

kaktus312 commented 3 years ago

Hi! I use MKS DLC with Atmega328P on board and grbl 1.1. It has 15 block buffer, that's why there were no movements with code like ...bufferAvailable[0]>15... I tryed to change it to ...bufferAvailable[0]>=15..., but the movements were intermittent and not stabile.

mstrens commented 3 years ago

I normally use the program with a stm32f103 where I extended the buffer because it has more ram. That is probably the reason why it worked. With a avr328, it seems that the test on ESP32 has to be adapted in the way you did it. Thanks for the feedback