Switching from a nano to a tensy 4.0 is like dumping the old Ford Pinto for a Ferrari ... I mean the speed of this thing is outstanding!

But the other day, I tried modifying some old nano code to implement multithreading on the Teensy, and I use a DRV8825 driver board to drive a stepper motor, but no matter what I do, I can't seem to get it to move the motor as smoothly as it did on the nano. When I played with the time slices that each thread gets, I definitely got different results with the same code but none of the results yielded any kind of smooth turning of the motor.

So my question is ...

Is there some trick to using a DRV8825 with a Teensy 4.0, or perhaps a library somewhere that I can't seem to find with google? OR should I not be multithreading when using this board? Which would really suck because multithreading is the bees knees - lol - it opens up a simpler world in terms of programming logic...

Thank you,

Mike Sims