<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Thanks Thomas &#8211; damn, I thought all pins were 5v &#8211; I saw that there was a power pin at that level, and assumed the others were too.</div><div><br></div><div>So when you say "PWM is easily configured" - do you mean that it is some setting that I adjust on the Pi itself, and then getting a variable voltage is as simple as sending a value between 1 and 1023 from Pd to the Pi?</div><div><br></div><div>Or do I have to do some programming within Pd to do the actual PWM? &nbsp;If this is the case &#8211; that's exactly what I need help with, not sure how to do that.</div><div><br></div><div>Thanks!!</div><div>Dan</div><div><div><div>--</div><div>Dan Nigrin / Defective Records /&nbsp;<a href="http://defectiverecords.com/" target="_blank">http://defectiverecords.com</a>&nbsp;</div><div>CycliC, M185 &amp; Klee Sequencers / MC-4 &amp; MC-202 Hack /&nbsp;Audio Plugin Player / General MIDI Player / Major Malfunction</div><div>Jack OS X /&nbsp;<a href="http://jackosx.com/" target="_blank">http://jackosx.com</a>&nbsp;</div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Thomas HOCEDEZ &lt;<a href="mailto:thomas.hocedez@free.fr">thomas.hocedez@free.fr</a>&gt;<br><span style="font-weight:bold">Date: </span> Wednesday, July 24, 2013 5:34 AM<br><span style="font-weight:bold">To: </span> J Oliver &lt;<a href="mailto:jaime.oliver2@gmail.com">jaime.oliver2@gmail.com</a>&gt;<br><span style="font-weight:bold">Cc: </span> PD List &lt;<a href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;, Daniel Nigrin &lt;<a href="mailto:dan@defectiverecords.com">dan@defectiverecords.com</a>&gt;<br><span style="font-weight:bold">Subject: </span> Re: [PD] gpio on the raspberry pi from within pd ?<br></div><div><br></div><div><style type="text/css">p { margin: 0; }</style><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000">Hi ! <br><br>PWM on RPi is easyli configured, with a value from 1 to 1023. <br>Be careful only some GPIO are PWM : <a href="https://www.modmypi.com/blog/raspberry-pi-gpio-en-franais">https://www.modmypi.com/blog/raspberry-pi-gpio-en-franais</a><br><br>The voltage output will be 3V3 @100%, I have to check this, but pretty sure.<br><br>REgards.<br><br><div><span name="x"></span><br>¤º°`¯ ¯`°²º¤æ=¬« Thomas HOCEDEZ »¬=椺²°`¯ ¯`°º<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;www.asthrolab.fr<span name="x"></span><br></div><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>De: </b>"J Oliver" &lt;<a href="mailto:jaime.oliver2@gmail.com">jaime.oliver2@gmail.com</a>&gt;<br><b>À: </b>"Dan Nigrin" &lt;<a href="mailto:dan@defectiverecords.com">dan@defectiverecords.com</a>&gt;<br><b>Cc: </b>"PD List" &lt;<a href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br><b>Envoyé: </b>Mercredi 24 Juillet 2013 11:13:10<br><b>Objet: </b>Re: [PD] gpio on the raspberry pi from within pd ?<br><br><div>Hi Dan,&nbsp;</div><div><br></div><div>I am Cc'ing the list, which is really your best resource. I haven't output variable voltages from the pi, but&nbsp;I am sure a lot of people have experience with this...</div><div><br></div><div>best,</div><div><br></div><div>J</div><br><div><div>On Jul 24, 2013, at 4:39 AM, Dan Nigrin wrote:</div><br class="Apple-interchange-newline"><blockquote><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); "><div><div style="font-size: 14px; font-family: Calibri, sans-serif; ">Hi Jaime,</div><div style="font-size: 14px; font-family: Calibri, sans-serif; "><br></div><div style="font-size: 14px; font-family: Calibri, sans-serif; ">Saw this post of yours from back in April re: GPIO access from within Pd on the Raspberry Pi:</div><div style="font-size: 14px; font-family: Calibri, sans-serif; "><br></div><div style="font-size: 14px; font-family: Calibri, sans-serif; "><a href="http://lists.puredata.info/pipermail/pd-list/2013-04/102172.html" target="_blank">http://lists.puredata.info/pipermail/pd-list/2013-04/102172.html</a>&nbsp;</div><div style="font-size: 14px; font-family: Calibri, sans-serif; "><br></div><div>I'm a total Pi newbie &#8211; I don't even own one yet. &nbsp;<span style="background-color: rgb(255, 255, 255); color: rgb(34, 34, 34); ">I'm considering a project with it though, where I would like to use Pd to generate some audio, and to output it to another device (a Mutable Instruments Shruthi synth filter board). &nbsp;However, I also need to generate control voltages that need to get sent to the filter board, to control its various parameters (e.g. cutoff, resonance, etc...). &nbsp;I also need to send +5v and ground to the filter board.</span></div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "><br></div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">So from your post, it seems quite straightforward to be able to access the GPIO pins from within Pd. &nbsp;But I need to be able to create <b><i>variable</i></b> voltages (between 0 and 5v) on those pins. &nbsp;In the post above, you mentioned that you send a float to the gpio object to write a value to the pin - would sending a 0.5 for example give me 2.5v on the pin? &nbsp;Or is it only on/off (0 or 5v)? &nbsp; If the former, I'm all set! &nbsp;If the latter, I'll need to figure out how to simulate a reduced voltage at the pin (likely using PWM or something &#8211; but I'm not really sure how I would do that&#8230;)</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "><br></div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">Any help greatly appreciated!</div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "><br></div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(34, 34, 34); "><span style="background-color: rgb(255, 254, 254);">Best,</span></div><div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(34, 34, 34); "><span style="background-color: rgb(254, 253, 253);">Dan</span></div><div style="font-size: 14px; font-family: Calibri, sans-serif; ">--</div><div style="font-size: 14px; font-family: Calibri, sans-serif; ">Dan Nigrin / Defective Records /&nbsp;<a href="http://defectiverecords.com/" target="_blank">http://defectiverecords.com</a>&nbsp;</div><div style="font-size: 14px; font-family: Calibri, sans-serif; ">CycliC, M185 &amp; Klee Sequencers / MC-4 &amp; MC-202 Hack /&nbsp;Audio Plugin Player / General MIDI Player / Major Malfunction</div><div style="font-size: 14px; font-family: Calibri, sans-serif; ">Jack OS X /&nbsp;<a href="http://jackosx.com/" target="_blank">http://jackosx.com</a>&nbsp;</div></div><br></div></blockquote></div><br><br>_______________________________________________<br><a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br></blockquote><br></div></div></div></span></body></html>