AccelStepper moveTo not changing direction

Hello my friends!
im using the accelstepper library and for some odd reason its not changing the directions. I checked the steps for setting the moveTo target and distance to go. both is correct, and both change between positive and negative numbers depending on the direction i wanna go, i checked the wiring its correct too and it worked in the past so i wonder why it isnt working now.

Its a lot of code so i dont know if i should post it here, but in any case, i posted a pastebin: #include <AccelStepper.h>#include <MultiStepper.h>#include <limits.h>A - Pastebin.com

Okay so i might've found the issue. The small metal pin on the GPIO Cable was all way the in, but not making any connection apparently. I plugged it in half way where i could feel the most resistence and it seemed to have worked now.

Maybe cheap cables :man_shrugging:

Congrats! Just talking to somebody, the fault is found. I've experienced that more than once in life.

1 Like

happens a lot when programming

Everything and anything is possible. Once received a new stepper motor looking fully okey, but... One wire was broken but no damage to the insulation....

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.