I'm getting my feet wet in cnc stuff so I'm testing with an arduino mega to control a nema 34 stepper with driver from stepperonline. I am succesfully controlling the driver/motor with the x axe of a little joistick with arduino. So the code works, but... as soon as I want to print in serial the motor chops so it seems the arduino isn't strong enough to do both. This is no problem since I don't need to print in seriel monitor. But the top speed I can achieve is pretty slow to me it seems.
I have added the code I wrote and driver specs aswell as motor specs as attachements if you need this to help me out here.
Here is a short vid of the actuall movement speeds;
any suggestions how to increase the speed? I am using full step in the dipswitches on driver.
CL86T.pdf (447 KB)
34HS59-5004D-E1000.pdf (158 KB)
S-350-60.pdf (124 KB)