And I've tried
stepper.setSpeed(0)
stepper.runSpeed()
Still getting power to the motor, causing it to get quite hot... is there a way to disable the pins in a stop state? I'm using a state machine
#include <AccelStepper.h>
AccelStepper stepper(AccelStepper::DRIVER, 8, 9);
void setup() { // put your setup code here, to run once: stepper.setMaxSpeed(1000); stepper.setAcceleration(100); stepper.setEnablePin(10); stepper.setPinsInverted(false, false, true);
stepper.move(10000);}
void loop() { // put your main code here, to run repeatedly: stepper.runToPosition(); stepper.disableOutputs();}