Hi everyone. hope all is well. Im trying to control a stepper motor with Arduino uno and uln2003AN driver. I have figured out the the coils and wires of my stepper motor (Link below). I have connected the motor with the driver and Uno (shown in the image).
the program im using is the example program that comes with Arduino software as example of stepper(also attached as image).
the problem is that when i hook everything up, verify and upload the program. the motor doesn't do one full revolution, instead it does maybe like 40 degree turn clockwise, stops vibrates alot and does the same arnd 40 deg rev!!!!??????....why isnt it working. i left the stepsperrev = 200, and also left the rpm to 60. i have tried changing the rpm and stepperrev but nothing seems to get me one whole revolution. any help would be greatly appreciated. thanks in advance.
p.s the specs of the motor are also in the attached image.
stepper motor wiring link (How To Identify The Wires / Leads Of A Stepper Motor - YouTube)
Have you wired it in this way?? It isn't correct, ground on ULN2003 should be connected to ground on arduino board. What are yuo using to power ULN2003? you need something to power it. You can either use the +5V pin on arduino or you can use an external power source (don't forget that if you use external power source you have to connect '+' to COM pin on ULN2003 and '-' to GND .