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

Files at this revision

API Documentation at this revision

Comitter:
okano
Date:
Mon Apr 13 21:10:56 2015 +0000
Parent:
0:5d0abdf92786
Child:
2:6835e719ff96
Commit message:
API document correction

Changed in this revision

StepperMotorUni.h Show annotated file Show diff for this revision Revisions of this file
--- a/StepperMotorUni.h	Sun Jan 19 10:59:53 2014 +0000
+++ b/StepperMotorUni.h	Mon Apr 13 21:10:56 2015 +0000
@@ -2,10 +2,10 @@
  *
  *  @class   StepperMotorUni
  *  @author  Tedd OKANO
- *  @version 1.0
- *  @date    19-Jun-2014
+ *  @version 1.0.1
+ *  @date    14-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,8 @@
  * 
  *  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
  */
 
 #ifndef    MBED_STEPPERMOTOR_UNIPOLAR
@@ -161,7 +163,7 @@
 
     /** Interface for opertion phase mode setting
      *
-     *  @param v pulse per second : lower number makes the turn slower (default = 100)
+     *  @param v Driving phase mode change : ONE_PHASE (default), TWO_PHASE or HALFSTEP
      */
     void set_operation_phase_mode( OperationPhaseMode v );