I recently made my own CNC that currently writes with a pen and later I intend to change the pen with a laser head. The project is a very simple one, I managed to finish it and it worked ok until today. I tried to make it work faster, changed the feed rate to 4000 and everything worked ok.
Problem is that in the middle of the G-Code, the X axis instantly goes extremely fast and in collision with the machine, and over the established limits.
If I reboot the machine it works ok for several moves, and then goes fast again. The Y axis has no problem and it's settings are the same.
I have 2 NEMA17 stepper, Arduino UNO, CNC Shield, two DRV8825 drivers that I set both to 0.8V and a servo that is connected to pin 11 (limit switch +Z on the CNC shield).
Each driver have a jumper for micro stepping to 1/16.
From what feed rate to 4000?
Do you have current limit set up on your driver?
Can you please post spec/data on stepper, NEMA17 only tells us its physical properties.
What is/are your power supply(s).
Hello. The power supply is 12V-8A. The Nema17 is a 12V motor with 1.68A current. The DRV8825 were set to 0.84V limit.
Thing is, yesterday I got the jumpers up and back again, I played a little with the potentiometer on the DRV8825 and suddenly it began to work as expected. It's a little frustrating because I don't know what caused the problem and if it will happen again.
That will be your problem, they are not super reliable and have a relatively small contact area with the socket.
Sockets also wear out and loose their tension.