So, I have code that mostly works -- GPIO pins talking to a stepper driver chip (a la 3d printing).
But... if you move windows around with RasPi Connect, it alters the timing, and inertia causes the motors to lose steps, even withI was going to use pigpio's DMA in a bang-bang buffer... but pigpio doesn't work on the RasPi5.
Is there any easy way to do DMA on a RasPi5 from Python?
I don't need fast (4800 steps/sec is plenty), but I do need... non-jittery.
But... if you move windows around with RasPi Connect, it alters the timing, and inertia causes the motors to lose steps, even with
Code:
max_priority = os.sched_get_priority_max(os.SCHED_FIFO)param = os.sched_param(os.sched_get_priority_max(os.SCHED_FIFO))os.sched_setsheduler(param)
Is there any easy way to do DMA on a RasPi5 from Python?
I don't need fast (4800 steps/sec is plenty), but I do need... non-jittery.
Statistics: Posted by thormj — Thu Mar 06, 2025 1:54 pm