Customer:
I’m using the Basic-Stepper-Driver-SOLDERED library with a Dasduino CONNECTPLUS board to control a bipolar stepper motor. The motor should move forward and backward when a button on pin 6 is pressed, but it only moves forward. Even when I call stepper.move() with a negative value, the motor moves forward again instead of backward.
Here’s my code:
#include "Basic-Stepper-Driver-SOLDERED.h"
BasicStepper stepper(BasicStepper::FULL4WIRE, 2, 3, 4, 5);
const int tasterpin = 6;
int tasterstatus = HIGH;
void setup()
{
stepper.setMaxSpeed(500);
stepper.setAcceleration(100);
stepper.setSpeed(200);
pinMode(tasterpin, INPUT_PULLUP);
}
void loop()
{
tasterstatus = digitalRead(tasterpin);
if (tasterstatus == LOW)
{
stepper.move(2048);
while (stepper.run()) {}
delay(1000);
stepper.move(-2048);
while (stepper.run()) {}
delay(1000);
}
}
Originally submitted via email support on 8 November 2025. Migrated to the forum for community visibility.