This is a library that drives a stepper motor with given parameters for speed and direction.
About
This is a stepper motor library that is based on the sMotor library by Samuel Matildes (sam.naeec@gmail.com). It was designed to drive specifically a 5718m-05e-05 stepper motor in conjunction with an L293NE quad h-bridge chip. I am not responsible for any damage caused due to the execution of this program on your hardware as I can only confirm that it works for the above specified model. High torque mode is currently not complete.
Diff: mMotor.h
- Revision:
- 1:6e0a307d0f9b
- Parent:
- 0:acf5b8fc382b
diff -r acf5b8fc382b -r 6e0a307d0f9b mMotor.h --- a/mMotor.h Wed Apr 24 17:39:30 2013 +0000 +++ b/mMotor.h Mon May 13 16:19:54 2013 +0000 @@ -20,9 +20,15 @@ mMotor(PinName M0, PinName M1, PinName M2, PinName M3); //motor constructor + /* Low Torque mode */ void step(int num_steps, int direction, int speed); void counterclockwise(); void clockwise(); + + /* High Torque mode */ + void ht_step(int num_steps, int direction, int speed); + void ht_counterclockwise(); + void ht_clockwise(); private: