controlling stepper motor using audrino

I am having problem in writing the program for controlling a stepper motor. Actually i am trying to control a stepper motor by calculating the error between a desired and measured value and hence controlling the motor minimizing the error.Need some help.


What have you tried so far?- do you have the stepper working at all and are struggling with the control strategy or have you not yet got it running?

Have you read this yet?