<div dir="ltr"><div dir="ltr" style="font-family:arial,sans-serif;font-size:13.333333969116211px">Hi Spencer/Steve,<div><br></div><div>Thanks for your reply and thoughts, much appreciated...hmm I'm not getting Arduino & ChucK to Communicate at the moment but I think I need to work more on my Arduino code more to communicate with ChucK- up to now I have been using Firmata with Pure Data, which only requires the the Firmata sketch to upload. As you say there is a lot of stuff here to look at so will report back :)</div>
<div><br></div><div>Thanks again!</div></div><div class="" style="font-family:arial,sans-serif;font-size:13.333333969116211px"><div id=":ll" class="" tabindex="0"><img class="" src="https://mail.google.com/mail/images/cleardot.gif" style=""></div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 2, 2014 at 2:54 AM, Spencer Salazar <span dir="ltr"><<a href="mailto:spencer@ccrma.stanford.edu" target="_blank">spencer@ccrma.stanford.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">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" target="_blank">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"><div><div class="h5">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>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">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>
<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>