<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">+1 to the Firmata interface idea.<br>
<br>
Joel<br>
<br>
On 01/02/2014 06:23 PM, Steve Morris wrote:<br>
</div>
<blockquote
cite="mid:CAJZgBm2K42g57Ldm+ZiAngLo2OO4dctxP5gQ3vVz+AR52NpWZQ@mail.gmail.com"
type="cite">someone should do a ChucK interface to Firmata. It is
a good starting point. <span></span>Maybe I'll give it a whack. <br>
<br>
On Thursday, January 2, 2014, Alan Brooker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<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
style="font-family:arial,sans-serif;font-size:13.333333969116211px">
<div><img moz-do-not-send="true"
src="https://mail.google.com/mail/images/cleardot.gif"></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
moz-do-not-send="true" href="javascript:_e({}, 'cvml',
'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
moz-do-not-send="true" 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>On Wed, Jan 1, 2014 at 9:59 AM, Alan Brooker <span
dir="ltr"><<a moz-do-not-send="true"
href="javascript:_e({}, 'cvml',
'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>
<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 moz-do-not-send="true" href="javascript:_e({},
'cvml', 'chuck-users@lists.cs.princeton.edu');"
target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true" href="javascript:_e({}, 'cvml',
'chuck-users@lists.cs.princeton.edu');" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a moz-do-not-send="true"
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>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
chuck-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>
</pre>
</blockquote>
<br>
</body>
</html>