I'm trying the Accelstepper library but seems that can't work smooth together with "MilluminStream" VIDEO->https://youtube.com/shorts/dn1th3vWwag
Probably the serial port is interrupting the stepper "feed" ?
I'm trying to pass the value of "MoveTo" by timeline in Millumin.
Hardware: Mega 2560, CNC shield, Nema17
Can someone point me in the right direction to test further?
Did Teensy can operate smoother maybe?
Thanks for your attention.
The function MilluminStream::update() is basically doing a serial.update() (looking for packets for be sent via serial port), but there is also a delay().
First of all, be sure Millumin does not sent data to your Arduino via the serial port (quitting Millumin is the easiest way). Then add the instruction MilluminStream::setLoopIdleTime(0) so there is no delay any more. I guess this is what is making stepper.run() behaving strangely.
If it works fine, goes on with Millumin controlling your stepper ...