|
MHVLib
20111227
An efficiency oriented runtime library for AVR microcontrollers
|
#include <MHV_StepperMotorUnipolar.h>
Public Member Functions | |
| MHV_StepperMotorUnipolar (MHV_RTC &rtc, MHV_STEPPER_MODE mode, MHV_DECLARE_PIN(phaseA)) | |
| virtual void | step (bool forwards) |
Definition at line 40 of file MHV_StepperMotorUnipolar.h.
| MHV_StepperMotorUnipolar::MHV_StepperMotorUnipolar | ( | MHV_RTC & | rtc, |
| MHV_STEPPER_MODE | mode, | ||
| MHV_DECLARE_PIN(phaseA) | |||
| ) |
Create a driver for a unipolar stepper motor
Phase output is active high, so if you are using transistors to buffer the motor, you will need to pull the common line high and use the transistors to pull the phases to ground.
Phases A & C share a common ground, as does B & D
Phases B, C and D use consecutive pins on the same port as A
| rtc | the RTC used for stepper movements |
| mode | the mode of the stepper driver |
| phaseA | the pin for the A phase |
Definition at line 66 of file MHV_StepperMotorUnipolar.cpp.
| void MHV_StepperMotorUnipolar::step | ( | bool | forwards | ) | [virtual] |
Implements MHV_StepperMotor.
Definition at line 105 of file MHV_StepperMotorUnipolar.cpp.