The practical arrangement is to use an interface board as shown below: The connection using an interface board and a dedicated power supply for the stepper motor is shown below: Owing to the power requirements the motor cannot be served directly by the Arduino board. Stepper ( steps, pin1, pin2, pin3, pin4 ) There is a standard library at the Arduino site for use with servo motors – Stepper.
The constructor method to instantiate an entity object from the class definition for a stepper motor. Steps – number of steps for one revolution of the external shaft of the motor