<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[read serial data  and create buffer to recreate correct int values?]]></title><description><![CDATA[<p>Hi there,</p>
<p>i'm new to pd and want to read serial data from arduino. I managed to read the ascii numbers but can't align them in a way that represents the originally send data. I'm sending &quot;200&quot; and in pd i'm reading &quot;2, 0, 0&quot; How do i construct them back into &quot;200&quot;? In plain code i would write the values to a buffer but i don't know how to do that in pd. Can someone help me please? I tried tabwrite, append and list but for now nothing worked for me?</p>
<p>cheers<br />
Sofie</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 08:30:29 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13860.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Mar 2022 12:26:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to read serial data  and create buffer to recreate correct int values? on Thu, 10 Mar 2022 12:26:53 GMT]]></title><description><![CDATA[<p>Hi there,</p>
<p>i'm new to pd and want to read serial data from arduino. I managed to read the ascii numbers but can't align them in a way that represents the originally send data. I'm sending &quot;200&quot; and in pd i'm reading &quot;2, 0, 0&quot; How do i construct them back into &quot;200&quot;? In plain code i would write the values to a buffer but i don't know how to do that in pd. Can someone help me please? I tried tabwrite, append and list but for now nothing worked for me?</p>
<p>cheers<br />
Sofie</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values</guid><dc:creator><![CDATA[Sofie]]></dc:creator><pubDate>Thu, 10 Mar 2022 12:26:53 GMT</pubDate></item><item><title><![CDATA[Reply to read serial data  and create buffer to recreate correct int values? on Thu, 10 Mar 2022 13:17:53 GMT]]></title><description><![CDATA[<p>If you're using Serial.print() in your Arduino code, then you'll be receiving the ASCII values of it. So printing 200 will result in 50, 48, 48, which is ASCII for 2, 0, 0. If you want to receive the actual bytes you need to use Serial.write() instead. Putting the bytes together can sometimes be a bit cumbersome. I have made a series of abstractions that facilitate the communication between Pd and the Arduino. You can find them <a href="https://github.com/alexdrymonitis/Arduino_Pd" rel="nofollow">here</a>. You can use Serial.print() with the [serial_print] abstraction. Read the README file first though, as there might be an issue with the byte 13.<br />
Also, read the Arduino code to understand how you must send your data so that [serial_print] can understand it.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values/2</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Thu, 10 Mar 2022 13:17:53 GMT</pubDate></item><item><title><![CDATA[Reply to read serial data  and create buffer to recreate correct int values? on Thu, 10 Mar 2022 23:47:58 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/sofie">@Sofie</a> I agree with everything <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/alexandros">@alexandros</a> wrote, but if your problem is really confined to what you originally posted, this works too:<br />
<img src="/uploads/files/1646955988744-screenshot-2022-03-10-184545.png" alt="Screenshot 2022-03-10 184545.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values/3</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Thu, 10 Mar 2022 23:47:58 GMT</pubDate></item><item><title><![CDATA[Reply to read serial data  and create buffer to recreate correct int values? on Fri, 11 Mar 2022 08:53:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> never worked with the fudi objects. Nice one!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values/4</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Fri, 11 Mar 2022 08:53:44 GMT</pubDate></item><item><title><![CDATA[Reply to read serial data  and create buffer to recreate correct int values? on Fri, 11 Mar 2022 13:09:47 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/alexandros">@alexandros</a> Thanks!  I've found FUDI to be convenient when the messages flow from Arduino to Pd exclusively because you can use all the native print() functions and think in terms of Pd messages.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13860/read-serial-data-and-create-buffer-to-recreate-correct-int-values/5</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Fri, 11 Mar 2022 13:09:47 GMT</pubDate></item></channel></rss>