:: Stepper motor (5-phase) Library ::
Library is being tested right now. Will make proper wiki here.
Update: I have to fix heating problem, before i publish this library. Please be patient.
This library allows you to control 5-phase stepper motor using Arduino.
The circuit is designs as simple keys by Ravith Botejue. http://ravith.files.wordpress.com/2008/02/driver1.png
Constructor: initiates the controlling package. Parameter description: (int) pin1, pin2, pin3, pin4, pin5 - controlling digital outputs, specify legs that are connected in circuit. (int) delay - time to what between each step in mili seconds (suggested value 1). Note that it is inversely proportional to speed.
Rotates the stepper number of steps. Parameters: (int) steps - numbers of steps to do. If negative will rotate to different direction.
Will release the stepper motor - stops the float of current and allows it to be rotated by external forces. Useful to release stepper if your not working with lifting applications because stepper motors may consume lots of energy and heat your system.
Will fix the position of stepper - can be used after function release().
Returns the state of the stepper motor (int). It is used with setState(int stateS). It can be usefull to save state when you end your program and want to save the state of all the program. State varies from 0 to 9.
Sets state of the rotation. Used with getState().
Simple program to rotate motor forth and back.