Unipolar stepper motor operation library

Dependents:   LAB04_Oppgave1 test_stepper Stepper_Motor_Demo StepperMotorUni_Hello ... more

Unipolar stepper motor library

This library generates pulses on 4 digital output pins of the mbed. The pulses are generated by mbed's ticker function.

The mbed pins cannot drive the stepper motor directly. So it requires driver stage for the motor. The circuit may be like following diagram.
The driver stage should be chosen by requirement for the stepper motor.

/media/uploads/okano/unipolar-steppermotor-sample.png


The mbed generates pulses on 4 output pins for external driver stage.
This library can generate 3 types of pulses.

1 phase drive (wave drive) /media/uploads/okano/1phase_drive.gif

2 phase drive /media/uploads/okano/2phase_drive.gif

1-2 phase (half step) drive /media/uploads/okano/halfstep_drive.gif

Components pages

Components pages are available for bipolar and unipolar motor libraries

A bipolar stepper motor driving pulse generator

A unipolar stepper motor driving pulse generator

Revision:
3:0eec6148e739
Parent:
2:6835e719ff96
Child:
4:6909efe4c8ac
--- a/StepperMotorUni.cpp	Tue Apr 21 14:33:20 2015 +0000
+++ b/StepperMotorUni.cpp	Tue Apr 21 14:37:52 2015 +0000
@@ -2,10 +2,10 @@
  *
  *  @class   StepperMotorUni
  *  @author  Tedd OKANO
- *  @version 1.0
- *  @date    19-Jun-2014
+ *  @version 1.1
+ *  @date    21-Apr-2015
  *
- *  Copyright: 2010, 2014 Tedd OKANO
+ *  Copyright: 2010, 2014, 2015 Tedd OKANO
  *  Released under the Apache 2 license License
  *
  *  The library that controls stepper motor via motor driver chip
@@ -34,6 +34,9 @@
  * 
  *  version 0.51(27-Nov-2010)   //  initial version (un-published)
  *  version 0.6 (15-Jan-2014)   //  compatible to LPC1768, LPC11U24 and LPC1114 targets
+ *  version 1.0 (19-Jun-2014)   //  version 1.0 release
+ *  version 1.0.1 (14-Apr-2015) //  API document correction
+ *  version 1.1 (21-Apr-2015)   //  ramp control function enabled
  */
 
 #include "mbed.h"