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.
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)
2 phase drive
1-2 phase (half step) drive
Components pages
Components pages are available for bipolar
and unipolar
motor libraries
Revision 7:7e6fb609780a, committed 2017-09-13
- Comitter:
- okano
- Date:
- Wed Sep 13 04:00:47 2017 +0000
- Parent:
- 6:007d0570ba4f
- Commit message:
- version (v1.1.3) information added
Changed in this revision
StepperMotorUni.cpp | Show annotated file Show diff for this revision Revisions of this file |
StepperMotorUni.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 007d0570ba4f -r 7e6fb609780a StepperMotorUni.cpp --- a/StepperMotorUni.cpp Wed Sep 13 03:55:30 2017 +0000 +++ b/StepperMotorUni.cpp Wed Sep 13 04:00:47 2017 +0000 @@ -2,10 +2,10 @@ * * @class StepperMotorUni * @author Tedd OKANO - * @version 1.1.2 - * @date 27-Apr-2015 + * @version 1.1.3 + * @date 13-Sep-2017 * - * Copyright: 2010, 2014, 2015 Tedd OKANO + * Copyright: 2010, 2014, 2015, 2017 Tedd OKANO * Released under the Apache 2 license License * * The library that controls stepper motor via motor driver chip @@ -39,6 +39,7 @@ * version 1.1 (21-Apr-2015) // ramp control function enabled * version 1.1.1 (22-Apr-2015) // fixed: find_home_position compatibility with ramp control feature * version 1.1.2 (27-Apr-2015) // fixed: init_done behavior + * version 1.1.3 (13-Sep-2017) // fixed: keeping stopped position while power_ctrl is set false */ #include "mbed.h"
diff -r 007d0570ba4f -r 7e6fb609780a StepperMotorUni.h --- a/StepperMotorUni.h Wed Sep 13 03:55:30 2017 +0000 +++ b/StepperMotorUni.h Wed Sep 13 04:00:47 2017 +0000 @@ -2,10 +2,10 @@ * * @class StepperMotorUni * @author Tedd OKANO - * @version 1.1.2 - * @date 27-Apr-2015 + * @version 1.1.3 + * @date 13-Sep-2017 * - * Copyright: 2010, 2014, 2015 Tedd OKANO + * Copyright: 2010, 2014, 2015, 2017 Tedd OKANO * Released under the Apache 2 license License * * The library that controls stepper motor via motor driver chip @@ -39,6 +39,7 @@ * version 1.1 (21-Apr-2015) // ramp control function enabled * version 1.1.1 (22-Apr-2015) // fixed: find_home_position compatibility with ramp control feature * version 1.1.2 (27-Apr-2015) // fixed: init_done behavior + * version 1.1.3 (13-Sep-2017) // fixed: keeping stopped position while power_ctrl is set false */ #ifndef MBED_STEPPERMOTOR_UNIPOLAR