Parts needed

  • Stepper Motor (Get from an old printer)
  • Arduino
  • Jumper Wire
  • Wire Cutters/Strippers
  • Current Regulator
    • Transistor
    • H-Bridge
    • Motor Shield

Optional Parts

  • Soldering Iron
  • Solder wire,paste

Arduino IDE has a built in library for stepper motors. Go to File > Examples > Stepper > stepper_oneRevolution. Next change the stepsPerRevolution variable to fit your specific motor.

The Stepper Motor library codes actually sends alternating HIGH and LOW signals to each coil .

Unlike a single transistor which can only  control the speed of a motor, H-bridges  also control the direction in which the motor rotates. It does this by opening different switches (the transistors) to allow the current to flow in different directions and thus changing the polarity on the motor. 

You should never plug a motor directly into an Arduino.