Class MotorStepperRotate - GSTCH/SketchMadeEASY GitHub Wiki
Topic | Specification |
---|---|
Description | This class controls a stepper motor using AccelStepper library. |
Constructor |
MotorStepperRotate(int Pin1, int Pin2, int Pin3, int Pin4, int Resolution, int GearRatio, EMotorInterfaceType MotorInterfaceType = miFull4Wire) Parameter Pin1: Digital pin connected with motor shieldPin2: Digital pin connected with motor shieldPin3: Digital pin connected with motor shieldPin4: Digital pin connected with motor shieldResolution: Steps per revolution of the stepper motor (without gear)GearRatio: Gear box ratioEMotorInterfaceType MotorInterfaceType: Read AccelStepper documentation to get more informations. Optionally with value miFull4Wire. Possible values are: |
Range | 0...255 |
Samples | MotorStepperRotate* motor = new MotorStepperRotate(8, 10, 9, 11, 32, 64); MotorStepperRotate* motor = new MotorStepperRotate(8, 10, 9, 11, 32, 64, miFull4Wire ); |
Examples | Look test "37-MotorStepperRotate" |