Stepper motor control using arduino

http://arduino.cc/en/Tutorial/MotorKnob the scheme third from the bottom should help