Stepper motor control

I can not make my stepper motor run both direction it only runs clockwise I have tried - but it will not reverse

Use a negative value to run the opposite direction.

Then... post a picture of your wiring, and the code being used (be sure to use the <CODE> button to paste your code in a code block).

1 Like

Hi, @billmac
Welcome to the forum.

Can you please post your code, in code tags.

Can you post some images of your project?
So we can see your component layout.

Can you please post links to specs/data of tour stepper and driver?

Tom.... :smiley: :+1: :coffee: :australia:

I'll take a wild guess and assume you have an 28BYJ-48 with ULN driver board.

Some example codes use this line.

Stepper myStepper = Stepper(stepsPerRevolution, 8, 9, 10, 11);
if so, try swapping the two middle numbers., like this
Stepper myStepper = Stepper(stepsPerRevolution, 8, 10, 9, 11);
Leo..

2 Likes