A4988 make stepper run for a few seconds on arduino launch. regardless of code loaded

Hi all,

Bit of an odd one.

I’m trying to get some a4988’s running from an arduino. My code works fine, except for the first couple seconds.
When i press the reset button on the arduino, the stepper just starts spinning for a second or two before actually stopping and loading my code.

anyone have any ideas I can try to troubleshoot this?


The I/O pins of the Arduino will not necessarily be in a defined state while it is resetting and that might cause an issue like that depending on how everything is connected. Could you post pictures that show all of your connections and everything attached to the motor? What are the voltage and current ratings of your motor?