finalizing some finishing touches on my power mill project and Im having some issues.
First is rapid moves, for reference im using the accelstepper library.
A potentiometer controls the speed along with buttons for direction, stop, and disable the driver. Also a rapid button that can be pressed to increase to the max speed. My pot speed is 8 to 3000, the rapid is 4000 ( all steps per second)
The issue is around 2500 and higher. Pushing a direction button can stall the motor… mostly when moving right because it takes more torque that direction. These are big steppers Nm34 1699oz so they have the power but not instantaneously.
The same stalling happens with the rapid button… if im below 2500 and rapid is pushed it stalls. If im above, it will work… but going right it stalls sometimes.
Anyone have any ideas on how to implement an acceleration into my potentiometer control and rapid button? Ive trial and errored ideas for this with no luck.
Another issue is my limit switches… sometimes they trip by them selves. Im not using shield wires, should i be?
I attached my code and also here is a link to a video of its action.
Any help is much appreciated and i plan to have this code free to use for anyone when its finished.
MarchXaxis.ino (11.4 KB)