Is it [MicroPython] hard realtime capable or not?
Posted: Thu Jul 08, 2021 6:22 am
You'd think the that question can be answered with confidence with a five minute google search, at most.
Well, my google skills seem to be lacking.
Is MicroPython hard realtime / deterministic and with what assumptions?
How do I determine if a particular time constraints can be met?
How do I determine if a particular time constraints are met with my code?
If Python alone cannot do it, is it possible run a separate C task (timer interrupt or something) to do the realtime stuff without the Python interfering with that (for example, does the GC disable interrupt, does anything in the MicroPython disable interrupts)?
For example could I generate step pulses for five stepper motors in the 10 kHz pulse rate region with less than 10% guaranteed jitter?
At that pulse rate a single pulse delayed too much will cause the stepper to loose position or stall.
That is just an example of what kind of questions I want find answers to.
cheers Kusti
Well, my google skills seem to be lacking.
Is MicroPython hard realtime / deterministic and with what assumptions?
How do I determine if a particular time constraints can be met?
How do I determine if a particular time constraints are met with my code?
If Python alone cannot do it, is it possible run a separate C task (timer interrupt or something) to do the realtime stuff without the Python interfering with that (for example, does the GC disable interrupt, does anything in the MicroPython disable interrupts)?
For example could I generate step pulses for five stepper motors in the 10 kHz pulse rate region with less than 10% guaranteed jitter?
At that pulse rate a single pulse delayed too much will cause the stepper to loose position or stall.
That is just an example of what kind of questions I want find answers to.
cheers Kusti