Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1225

Python • GPIO DMA on RasPi5?

$
0
0
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 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)
I 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.

Statistics: Posted by thormj — Thu Mar 06, 2025 1:54 pm



Viewing all articles
Browse latest Browse all 1225

Trending Articles