Class MotorStepperRotate - GSTCH/SketchMadeEASY GitHub Wiki

Actuator MotorStepperRotate

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 shield
Pin2:Digital pin connected with motor shield
Pin3:Digital pin connected with motor shield
Pin4:Digital pin connected with motor shield
Resolution: Steps per revolution of the stepper motor (without gear)
GearRatio: Gear box ratio
EMotorInterfaceType MotorInterfaceType: Read AccelStepper documentation to get more informations. Optionally with value miFull4Wire. Possible values are:
  • miFunction (=0)
  • miDriver (=1)
  • miFull2Wire (=2)
  • miFull3Wire (=3)
  • miFull4Wire (=4)
  • miHalf3Wire (=6)
  • miHalf4Wire (=8)
  • 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"
    ⚠️ **GitHub.com Fallback** ⚠️