<div dir="ltr"><div>I was mistaken actually, cause even if you do that, you'll have to assemble the values. Reading the readme.txt I saw that it uses the Simple Message System library for programming the Arduino.<br></div>If you're not willing to program the Arduino yourself, why don't you use the Firmata firmware and Pduino instead? Most likely it will work out of the box.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 20, 2015 at 4:16 AM, Pagano, Patrick <span dir="ltr"><<a href="mailto:pat@digitalworlds.ufl.edu" target="_blank">pat@digitalworlds.ufl.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>​there are t3 outlets coming from the ZLgroup<br>
</p>
<p>sel 18 13<br>
</p>
<p><br>
</p>
<p>which one?<br>
</p><span class="">
<p><br>
</p>
<p><br>
</p>
<div>
<div style="font-family:Tahoma;font-size:13px">
<div><font size="3"><i>Patrick Pagano B.S, M.F.A</i></font></div>
<div>Audio and Projection Design Faculty</div>
<div>Digital Worlds Institute</div>
<div>University of Florida, USA</div>
<div><a href="tel:%28352%29294-2020" value="+13522942020" target="_blank">(352)294-2020</a></div>
</div>
</div>
</span><div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Alexandros Drymonitis <<a href="mailto:adrcki@gmail.com" target="_blank">adrcki@gmail.com</a>><br>
<b>Sent:</b> Tuesday, May 19, 2015 4:59 PM<br>
<b>To:</b> Pagano, Patrick; <a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a><div><div class="h5"><br>
<b>Subject:</b> Re: [PD] error: unpack type mismatch</div></div></font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div>Including the list.<br>
</div>
The only thing I can find is that [pd make_my_list] uses [sprintf %c%c%c...] instead of [sprintf %c %c ... ] (with spaces), which will create a long concatenated series of numbers which will probably be output from the left-most outlet of [unpack] (at least
 this is what happened when I played with [sprintf] a bit). Try to replace [sprintf] by placing a [- 48] just before [zl group] and see if that works.<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, May 19, 2015 at 11:46 PM, Pagano, Patrick <span dir="ltr">
<<a href="mailto:pat@digitalworlds.ufl.edu" target="_blank">pat@digitalworlds.ufl.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>​​Alexandros<br>
</p>
<p>I just want to fix the mismatch. Is there an object i can place between the unpack fffffff and the integer number box?<br>
</p>
<p>What i am trying to avoid is the messages being constantly printed to the shell and taking any resources from the raspi <br>
</p>
<p><br>
</p>
<p>i am attaching the patch there will be some stuff missing but this is the main<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>TY for your help<br>
</p>
<span>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div>
<div style="font-family:Tahoma;font-size:13px">
<div><font size="3"><i>Patrick Pagano B.S, M.F.A</i></font></div>
<div>Audio and Projection Design Faculty</div>
<div>Digital Worlds Institute</div>
<div>University of Florida, USA</div>
<div><a href="tel:%28352%29294-2020" value="+13522942020" target="_blank">(352)294-2020</a></div>
</div>
</div>
</span>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Alexandros Drymonitis <<a href="mailto:adrcki@gmail.com" target="_blank">adrcki@gmail.com</a>><br>
<b>Sent:</b> Tuesday, May 19, 2015 4:29 PM
<div>
<div><br>
<b>To:</b> Pagano, Patrick<br>
<b>Cc:</b> <a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a><br>
<b>Subject:</b> Re: [PD] error: unpack type mismatch</div>
</div>
</font>
<div> </div>
</div>
<div>
<div>
<div>
<div dir="ltr">
<div>
<div>If the Arduino code uses Serial.println instead of Serial.write,then yes, you are receiving ASCII.<br>
</div>
If this is the case, try sending one value only and read it with the attached abstraction, which is made to work with Serial.println.<br>
</div>
If you want to transfer many values which are tagged with some string, use [serial_println2] (it requires [bytes2any] from the moocow library).<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, May 19, 2015 at 11:11 PM, Pagano, Patrick <span dir="ltr">
<<a href="mailto:pat@digitalworlds.ufl.edu" target="_blank">pat@digitalworlds.ufl.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>​I'm using the arduino2pd patch hans created<br>
</p>
<p>i understand what the error is i am hunting the object that will do the adjustment. I will try your suggestion but i think what is popping out is ascii numbers from comport which is reading pot values from 0-1023 the unpack says it's unpack floats but the
 number box which i assume should be able to deal with floats seems to only be reading ints maybe if i just multply x 0.01?<br>
</p>
<span>
<p><br>
</p>
<p><br>
</p>
<div>
<div style="font-family:Tahoma;font-size:13px">
<div><font size="3"><i>Patrick Pagano B.S, M.F.A</i></font></div>
<div>Audio and Projection Design Faculty</div>
<div>Digital Worlds Institute</div>
<div>University of Florida, USA</div>
<div><a href="tel:%28352%29294-2020" value="+13522942020" target="_blank">(352)294-2020</a></div>
</div>
</div>
</span>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Alexandros Drymonitis <<a href="mailto:adrcki@gmail.com" target="_blank">adrcki@gmail.com</a>><br>
<b>Sent:</b> Tuesday, May 19, 2015 3:46 PM<br>
<b>To:</b> Pagano, Patrick<br>
<b>Cc:</b> <a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a><br>
<b>Subject:</b> Re: [PD] error: unpack type mismatch</font>
<div> </div>
</div>
<div>
<div>
<div>
<div dir="ltr">
<div>but ASCII is just bytes, so subtracting 48 should do the ASCII to float job, right?<br>
</div>
How are you sending values from Arduino to Pd? Do you use Serial.write or Serial.println? use [print] before you send stuff to [unpack] to see what you get. A type mismatch is when you expect a float but you get a symbol, for example.<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, May 19, 2015 at 10:08 PM, Pagano, Patrick <span dir="ltr">
<<a href="mailto:pat@digitalworlds.ufl.edu" target="_blank">pat@digitalworlds.ufl.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>hello<br>
</p>
<p><br>
</p>
<p>i am working with arduino and raspi with comport spiiting out values from pots attached to the arduino board and i keep getting the endless warnings of <br>
</p>
<p>error: unpack type mismatch<br>
</p>
<p>error: unpack type mismatch<br>
</p>
<p>error: unpack type mismatch​<br>
</p>
<p><br>
</p>
<p>is there a way to remedy this? i looked around and i heard some people talking about "atof" which i assume is ascii to float.<br>
</p>
<p>But i cannot find it anywhere. I thought it was in zexy but maybe i have the wrong name or perhaps i am off the mark entirely<br>
</p>
<p><br>
</p>
<p>can someone help me out?<br>
</p>
<p><br>
</p>
<p>pp<br>
</p>
<p><br>
</p>
<div>
<div style="font-family:Tahoma;font-size:13px">
<div><font size="3"><i>Patrick Pagano B.S, M.F.A</i></font></div>
<div>Audio and Projection Design Faculty</div>
<div>Digital Worlds Institute</div>
<div>University of Florida, USA</div>
<div><a href="tel:%28352%29294-2020" value="+13522942020" target="_blank">(352)294-2020</a></div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">
http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>