Stepper motor rotation control

Hi,
In your sketch you do not declare pin2 as an input.
Also do you have the gnd of the 2803 connected to the gnd of the UNO?
What is your 12V power suppy?

Tom... :slight_smile: