Open gpstone opened 1 year ago
Hi @gpstone,
You are right, I'm convinced it's a bug, probably located in the code of planner.c or stepper.c... But difficult to find in this particular complex code portion.
I haven't found the fix yet. I had very little time this year to do maintenance on grbl-Merga-5X (and others software). I hope to find this time after the summer (I will be in traveling until mid-September, so I will not be able to fully do it before).
Thanks for your patience.
@++; Gauthier.
Hi fra589, I am also facing the same issue. Built my own CNC router. Installed all electronics with 17hs19-2004s1 steppers with 2A/phase ,DRV8825 drivers with 1/8 microstepping, PC ATX power supply with 12V and loads of Amps and Arduino Mega with Ramps 1.4 shield.
It started intermittently and it became more frequent. I was not convinced that it was because of NEMA 17 motors. I am using two on X axis and 2 on Y Axis. So I am sure they got enough torque and power to move gantry easily. The gantry movement is butter smooth if i rotate motors' couplings with my hand.
I spent almost 2 days to figure out what was going wrong with different parameters. From Low to High with the same results. I even detached the lead screws and ran motors without any load and they were stalling. I got very confused. Checked everything multiple times but couldn't figure out the problem.
I am new to CNC world so I was convincing myself that I was doing something wrong and looking for help online I came across this thread.
I hope this will be fixed soon.
@gpstone you found any workaround? How are you running your machine now?
Hi @simrim1 Currently my workaround is to configure GRBL as 3 axis with no cloned axis. Then I physically wired the step and direction input to both my X1 and X2 stepper controllers to the same X output pin of the GRBL controller. The downside to this is that the self squaring function does not work, so I have to manually square the gantry. The X homing is done only with the switch connected to X1. Basically my X2 motor is just along for the ride.
Hi @gpstone Thanks for the update on your workaround. It seems like original GRBL for Arduino Uno. Isn't it? I found and old Arduino UNO in my closet along with it CNC shield. Removed the dirt, flashed fresh GRBL and used Cloned Y-axis built-in the CNC shield. Alas I also lost Self-Squaring but my CNC is running without any problems now. No missing steps, motor stalls and/or grinding noise of lead screws on acceleration/deceleration.
I am hopeful this bug in Mega-5X will be removed soon and I will be back to Mega. Thanks again for the update.
Hi all,
This reminds me that I'm way behind on the grbl-Mega-5X work...
The workaround consisting of configuring without using cloning and connecting the stepper motor drivers to be cloned to the same output works on grbl-Mega-5X, there is no need to go back to an old Arduino Uno board.
@++; Gauthier.
I'm convinced I have this problem too. Hard to explain, but I have a video. Cloned X won't move and X does some strange movements when decelerating. Does anyone knows when was this problem introduced? I was using a previous version that didn't have this problem. It only came after I upgraded the firmware on the controller.
Hi @pgordinho,
Oh, that’s an interesting comment! Can you tell which previous version worked well?
@++; Gauthier.
Hi @fra589 ,
I can. It worked well with this version I found while building my MPCNC. https://drive.google.com/file/d/1yO2Ap2ItG70cV79RdZLC40aMKHEdPUZl/view?usp=drive_open
So I installed again this version, did a $RST=, configured everything again and it worked without a problem. Beeing stubborn, I againd installed the new version from here (1.2h), change a few settings in cpu_map.h to match my end stops and again a $RST=. After I reconfigured the settings and now this version is working well also. So, I really don't understand what append in the first place.
I have a feeling that my problem was not something in the code itself, but in the cpu_map.h settings. Maybe a misconfigured pin or someting like that. but the symptoms where just like the ones from the OP. Mostly everything works fine, with the exception of some codes that move only the X axis and not the X cloned one.
I'm sorry I can't help much help and thank for the excellent work with this build.
Discussed in https://github.com/fra589/grbl-Mega-5X/discussions/308