I have just built my first cnc mill macine. I have used Arduino mega + Ramps 1.4 with drv8825 drivers, just like in your MPCNC. Also, I have used your MPCNC813_GLCD firmware for ramps.
When I trying to use Manual control in Repeater-Host, steppers moving ok with 0.1 and 1 mm step command. But with 10, 50 or with G-code with large value (ex. “G1 Y100”), yellow LED on ramps flash 2 times and printer reset settings, i guess:
I use 32 microstepping with M10 leadersrew (1.5 mm per rotation). So I have (200*32)/1.5=4266.67 steps per cm, 1 cm/sec. Acceleration is default (400). I almost sure that all connections are ok because printer does not resets randomly. It resets every time when it moves more than ~4 cm.
The configuration is in steps/mm, not steps/cm. If you put in 4266, then that is way high, and explains everything. If you do something like this, it will probably move without a reset:
G01 Y100 F60
Just be aware, if you have your steps wrong, it will try to go 1 meter!
The F is in mm/min (I know, right! Stupid units). 900 or so is pretty normal for x and y, but if you have the steps off by 10x, then that’s equivalent to 100mm/s movement, which is way fast and the CPU probably can’t keep up at 1/32nd stepping.
Get the z steps right and that will solve it, using my code and higher than usual Z steps will reset the board. We had this issue for an entire year and finally figured it out. I never moved very fast and never had issues the speed racers kept getting resets and that was why.
M204 T Travel Acceleration
*/ #define DEFAULT_ACCELERATION 400 // MPCNC X, Y, Z and E acceleration for printing moves #define DEFAULT_RETRACT_ACCELERATION 3000 // E acceleration for retracts #define DEFAULT_TRAVEL_ACCELERATION 400 // MPCNC X, Y, Z acceleration for travel (non printing) moves
I guess that problem is solved now, thank you all very much. Going to upgrade mechanics now for silence and accuracy)
Are you sure those are right? Especially for the X/Y? The Z is close to what’s in the 5/16" leadscrew firmware, but the X/Y are 200 steps/mm, not 4300!
Do you have leadscrews on the X,Y or something? When you move 10mm in x,y does the machine move 10mm or 213mm?
When I plug jumpers for microstepping, every “step” in programm is microstep (1/32 step). So when stepper make 200 steps in this mode, it rotates for (360/32)=11.25 degrees, not for 360 degrees. I change these parametrs manually, with testing after each changing, untill make stepper moving correctly. And yes, when I move it for 10mm, it moves for 10mm. The problem was in feed rate, but I have decreesed it now.
Unfortinatly I can’t calculate in inches, but M10 leadersrew has 1.5mm shift for every full rotation. Thats why, for 1mm shifting I must divide amount of stepper’s steps by 1.5.
Most steppers are 1.8 degree steppers, in full step mode you would takes 200 steps for a full 360° rotation, so 32nd stepping makes 6,400 steps/rotation, a 16Tooth pulley at 2mm per tooth makes 32mm/rotation, so our typical setting is 200steps/1mm of movement for the belt drive and a T8. Your m10 either has a 1.5 (4266.67steps/mm) or a 1.25 (5120.00steps/mm). Your numbers seem odd but if you have tested them something in your system is not like ours other than your lead screw.
So you must have m10 on all your axes, careful of backlash.
Sure, but the leadscrew is for Z. In X,Y it’s the GT belt, and the number should be much smaller, right? GT2 belt moves 32mm for one rotation of a 16 tooth gear, so that would be 32mm/360degrees, so it should be:
200*32steps/rev * 1rev/32mm = 200 steps/mm.
You say it’s correct, so maybe you’ve changed the numbers in the EEPROM after you’ve flashed it? Or are you using leadscrews for X and Y?
(((I’m trying to be helpful, but if you’ve got this all figured out already, then there’s no need to explain it to me. I can just leave it be.)))