MHVLib  20111227
An efficiency oriented runtime library for AVR microcontrollers
MHV_StepperMotorUnipolar Class Reference

#include <MHV_StepperMotorUnipolar.h>

Inheritance diagram for MHV_StepperMotorUnipolar:
MHV_StepperMotor MHV_AlarmListener

List of all members.

Public Member Functions

 MHV_StepperMotorUnipolar (MHV_RTC &rtc, MHV_STEPPER_MODE mode, MHV_DECLARE_PIN(phaseA))
virtual void step (bool forwards)

Detailed Description

Definition at line 40 of file MHV_StepperMotorUnipolar.h.


Constructor & Destructor Documentation

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

Parameters:
rtcthe RTC used for stepper movements
modethe mode of the stepper driver
phaseAthe pin for the A phase

Definition at line 66 of file MHV_StepperMotorUnipolar.cpp.


Member Function Documentation

void MHV_StepperMotorUnipolar::step ( bool  forwards) [virtual]

Implements MHV_StepperMotor.

Definition at line 105 of file MHV_StepperMotorUnipolar.cpp.


The documentation for this class was generated from the following files: