Closed maarufvazifdar closed 4 months ago
Pin 0 and 1 are normally used for Serial. So change the direction pin to another one.
@gin66 Thanks for the quick reply. This was the issue; I was using GPIO 1/3 (TX0 and RX0) that are used for the UART-USB bridge.
Hey, I'm trying to control a stepper over USB serial commands, and the rotation direction is not changing. Here's my code:
I tried simply moving the motor back and forth with
and this works, and the motor spins 1 rotation in both directions, but whenever I add
Serial.begin(9600);
to the setup() it doesn't turn in backward direction.Any ideas and suggestions to solve this issue are greatly appreciated.