Go Down

Topic: Due Scheduler Delaymicros() (Read 420 times) previous topic - next topic

avnos

Hi Due users, I'm fairly new to arduino and programming so pardon any super newbie questions.

I'm trying to run two stepper motors at varying speeds using an Arduino due + scheduler.h.

The problem occurs using delay microseconds where 1 motor runs then the other freezes while using a regular delay command has both motors running.

I've found two semi helpful threads so far found here:

http://forum.arduino.cc/index.php?topic=134271.0
https://github.com/arduino/Arduino/issues/4320

These threads are both 2-4 years old however so I'm bringing the question up again. It seems there are solutions in these threads, I'm curious where I should be inserting these fixes ?

What header/c files should I be adding this code to ?

Any extra steps to get the code to function?

Thank you for your help

Go Up