SoftwareSerial problem with Pico

Yeah, that baud rate is not correct. You might want to check the original post, it has more information.

The code you posted was heavily modified from my original example. For example it only used the VACTUAL command to move the stepper, and its not particularly useful if you want to count steps.
And i had SpeedyStepper library included for the actual stepper controlling. Currently i would recommend using FastAccelStepper library for the actual stepper controlling. And i did not use software serial, as i'm using ESP32 boards.

This also seems weird to me:

 Serial.begin(11520);               // initialize hardware serial for debugging
  SoftSerial.begin(11520);           // initialize software serial for UART motor control
  TMCdriver.beginSerial(11520);      // Initialize UART

I think it initializes the software serial twice.

I think its taken from this example, where the software serial is only initialized once. But i don't use software serial so i don't know much about it.

1 Like