It's been a little while since I bought a new Pi of any kind. The most recent one's I've been using are the Pi 3B and Pi Zero W.
But I know that with the 4,5 and 02W the design has switched to using new Raspberry Pi designed silicon rather than Broadcom based chips.
I have been using the MikeM's Bcm2835 library ( https://www.airspayce.com/mikem/bcm2835/ ) to let C programs running on a Pi have "realtime" control of GPIO pins. Yes there are some non ideal things where other processes on the Pi suddenly take control and disrupt everything for 10s of millliseconds at a time, which I was working on solving in an earlier thread (apparently one must made a kernel module of one's realtime code), but for the most part things are fairly realtime.
What are the equivalent libraries for this sort of thing (near-as-possible-to-realtime GPIO writing/reading from a C program) on the more recent Pi models?
Thanks
But I know that with the 4,5 and 02W the design has switched to using new Raspberry Pi designed silicon rather than Broadcom based chips.
I have been using the MikeM's Bcm2835 library ( https://www.airspayce.com/mikem/bcm2835/ ) to let C programs running on a Pi have "realtime" control of GPIO pins. Yes there are some non ideal things where other processes on the Pi suddenly take control and disrupt everything for 10s of millliseconds at a time, which I was working on solving in an earlier thread (apparently one must made a kernel module of one's realtime code), but for the most part things are fairly realtime.
What are the equivalent libraries for this sort of thing (near-as-possible-to-realtime GPIO writing/reading from a C program) on the more recent Pi models?
Thanks
Statistics: Posted by Infraviolet — Fri Oct 31, 2025 11:41 pm