It entirely stops , i then have to switch off the power supply to get it to work again but it stops again after 1-2 revolutions , only when I have a stepDelayTime which is pretty small does it work properly , but having a small delay time results in a high rpm which I don't want.
This is what my setup looks like except that I have my enabe pin connected to digital port 4 of the arduino.
This is my stepper motor nema 23 I am actually trying to make it rotate another wheel like structure which has gears in the ratio 6:1 as visible from the images below , I would like the stepper motor to move as slowly as possible since moving it at high speeds is causing the bigger wheel to move abruptly , the larger wheel is unable to move accurately when nema 23 is moving at high rpms.
Any ideas/lead and what should I try doing ?



