<div dir="auto">Get Pd-L2Ork and use its K12 mode abstractions that include out-of-box RPi connectivity (see extra/K12 subfolder). Best paired with lots-of-pots RPi shield that gives you 8 channels of GPIO I/O (including  software PWM on all 8 channels or the usual hw PWM via dedicated hardware GPIO pins) and 8 channels of analog input via SPI (needs to be enabled in /boot/config.txt and requires reboot once enabled).<br><br><div data-smartmail="gmail_signature">Best,<br><br>Ico<br><br>-- <br>Ivica Ico Bukvic, D.M.A.<br>Director, Creativity + Innovation<br>Institute for Creativity, Arts, and Technology<br><br>Virginia Tech<br>Creative Technologies in Music<br>School of Performing Arts – 0141<br>Blacksburg, VA 24061<br>(540) 231-6139<br><a href="mailto:ico@vt.edu" target="_blank" rel="noreferrer">ico@vt.edu</a><br><br><a href="http://ci.icat.vt.edu" target="_blank" rel="noreferrer">ci.icat.vt.edu</a><br><a href="http://l2ork.icat.vt.edu" target="_blank" rel="noreferrer">l2ork.icat.vt.edu</a><br><a href="http://ico.bukvic.net" target="_blank" rel="noreferrer">ico.bukvic.net</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 24, 2022, 13:50 Patko nytkophilus <<a href="mailto:colet.patrice@gmail.com" target="_blank" rel="noreferrer">colet.patrice@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Latency might be problematic with realtime processes and in my case this is not for realtime. You might be interested into realtime kernel used in patchbox os for rpi. I've got jack+pd- nogui running with 2ms buffer and no xrun.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 24 nov. 2022, 18:38, Sebastian Lexer <<a href="mailto:s.lexer@incalcando.com" rel="noreferrer noreferrer" target="_blank">s.lexer@incalcando.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
are you not getting unreliable latency due to the local network <br>
connection between your gpios and pd processes and triggers?<br>
When I used this method previously, timings between gpio reading and pd <br>
receiving the udp packages varied between 5 to 15ms.<br>
<br>
<br>
<br>
Patco wrote on 24/11/2022 15:51:<br>
> Hello,<br>
>   My actual favorite method to read/write GPIO ports is about using a python script outside PureData and manage communication between the python script and PureData with UDP socket. This way there is no limitation on PureData side about how to handle GPIO, and this way makes possible management through other softwares or from another computer. It’s very easy and stable, and there are many examples about how to use sockets with python.<br>
><br>
>> Le 24 nov. 2022 à 13:46, Simon Iten <<a href="mailto:itensimon@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">itensimon@gmail.com</a>> a écrit :<br>
>><br>
>> What is the *current* prefered method to read GPIO pins from within PD on a raspberry pi 4?<br>
>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> <a href="mailto:Pd-list@lists.iem.at" rel="noreferrer noreferrer noreferrer" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
>> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" rel="noreferrer noreferrer noreferrer" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote></div>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" rel="noreferrer noreferrer" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>