I have connected the stepper directly to the Arduino. Now, It was working for a while; but I am not sure if it was the correct operation. And then stopped after a while. I am using the setup as below:
I then re-powered the board and then started playing with the potentiometer; and it seems like the motor started working again. Could you tell me what the issue may be?