<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">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>