I am using an Arduino Nano for the control, and it is all hooked up as per the schematic.
I am using the stepper_oneRevolution sketch with the pins altered as follows:
Stepper myStepper(stepsPerRevolution, 2, 3, 4, 5);
The issue that I am having seems to be power related. Every second or so the motor stops spinning, and the LED lights on the power supply, L298N, and arduino all turn off. A moment later they all turn back on again, and so on and so on. The stepper never manages to complete a full revolution before turning off and on.
Anyone have any idea what the issue here is? I thought that all the parts would be compatible with each other, but maybe I was wrong. I don't have much experience with mechatronics-type stuff like this so any help would be hugely appreciated.
Many thanks in advance.