Stepper in one direction (sort of)

Hi Team,

Setup:

Adrunio Uno

Stepper Motor: https://www.sparkfun.com/products/9238

Setup and wire diagram used: http://bildr.org/2011/06/easydriver/

Motor pair: Red/Green & Blue/Yellow

Issue:

Motor rotates fine (just like in the video) but only in one direction

Items checked:

dir pin soldered correctly and tried different jumpers

This code does the same thing: https://www.sparkfun.com/tutorials/400

swapping the motor leads (a-b c-d to c-d a-b) changes the direction of the rotation (which means there is no issue with the motor) but shows the same issue of only one direction.

Even this code (which uses pin 8 & 9 instead of 2 & 3) shows the same issue of only one direction.

Any ideas?

Thank you in advance.

Try hardwiring your dirpin input to the driver high and then low to see if the motor direction changes. If it doesn’t then you have a board problem.

Thank you Lyndon! I will give it a try.

I had the same issue briefly once I moved from breadboard to PCB. I found that my GND and DIR pins were switched. I flipped my cable to the correct positions and all is working great.

I also have a problem with my one Leo board. When I use pins 2 and 3 there is a short. I cannot use pin 2 and 3 at the same time.