<div dir="ltr">Hi Al,<div><br></div><div>If you check out the chuck examples folder that came in the chuck download or in the "Open Example" menu item, there should be a "serial" subcategory with some basic examples of communicating with serial devices (e.g. Arduino) in there. </div>
<div><br></div><div>What I would recommend is sending your 5 analog values as a space separated series of ASCII numbers, ending with a newline, and repeating this at whatever your desired refresh rate is. In ChucK, you can use onLine()/getLine() (as in the <a href="http://lines.ck">lines.ck</a> example) to get each line of data, which includes all 5 current sensor values. There is also a (minimally documented) RegEx class you can use to pull out the values individually and then convert them to integers. </div>
<div><br></div><div>Ive also attached another ChucK example I have that does something very similar to this, except it reads only 3 sensor values and uses commas to separate values. </div><div><br></div><div>Thats a lot of stuff, so let us know if you have any more questions.  </div>
<div><br></div><div>spencer</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 1, 2014 at 9:59 AM, Alan Brooker <span dir="ltr"><<a href="mailto:alan.brooker2010@gmail.com" target="_blank">alan.brooker2010@gmail.com</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"><div><div>Hi there<br><br></div>I am using ChucK 1.3.2.0 (Chimera) with miniAudicle 1.3.0a on Ubuntu 12.04- I think the latest version can communicate with Arduino directly?  Cant seem to find any examples so any advice  or example code would be much appreciated. I am trying to build a simple step sequencer with <cite><b>x5 potentiometer</b>s </cite>that send values to an arduino board and then into ChucK hopefully. Was hoping I could do this without OSC- <br>

<br>thanks for helping this noob!<br><br></div><br><br>Al<br></div>
<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br></div>