You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://www.airspayce.com/mikem/arduino/AccelStepper/classAccelStepper.html
Not sure it supports changing the pin the motor is connected to. You have to set the pins and type in the instantiation of the sepper object. AccelStepper stepper(AccelStepper::DRIVER, STEPPER_STEP_PIN, STEPPER_DIR_PIN)
Pre-set the stepper motor pin? Or can we call stepper.AccelStepper(AccelStepper::DRIVER, p, n) after the fact?
Op
Description
#,#M
step, direction Motor stepper.AccelStepper(AccelStepper::DRIVER, p, n) (or hard code pins if necessary)
velocity (p is zero) stepper.setAcceleration(DEFAULT_ACCEL);stepper.setMaxSpeed(n);
#G
position Goto stepper.moveTo(n);
#E
pin Endstop. Input with Pullup. Run motor ccw until pin goes low. stepper.setMaxSpeed(SLOW_SPEED); stepper.moveTo(-MAX_LONG); if (!digitalRead(n)) stepper.stop();
The text was updated successfully, but these errors were encountered:
https://www.airspayce.com/mikem/arduino/AccelStepper/classAccelStepper.html
Not sure it supports changing the pin the motor is connected to. You have to set the pins and type in the instantiation of the sepper object.
AccelStepper stepper(AccelStepper::DRIVER, STEPPER_STEP_PIN, STEPPER_DIR_PIN)
Pre-set the stepper motor pin? Or can we call
stepper.AccelStepper(AccelStepper::DRIVER, p, n)
after the fact?stepper.AccelStepper(AccelStepper::DRIVER, p, n)
(or hard code pins if necessary)stepper.setAcceleration(p + 1);stepper.setMaxSpeed(n);
stepper.setAcceleration(DEFAULT_ACCEL);stepper.setMaxSpeed(n);
stepper.moveTo(n);
stepper.setMaxSpeed(SLOW_SPEED); stepper.moveTo(-MAX_LONG); if (!digitalRead(n)) stepper.stop();
The text was updated successfully, but these errors were encountered: