someone should do a ChucK interface to Firmata. It is a good starting point. Maybe I'll give it a whack.
On Thursday, January 2, 2014, Alan Brooker wrote: > Hi Spencer/Steve, > > 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 :) > > Thanks again! > > > On Thu, Jan 2, 2014 at 2:54 AM, Spencer Salazar < > [email protected] <javascript:_e({}, 'cvml', > '[email protected]');>> wrote: > >> Hi Al, >> >> 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. >> >> 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 lines.ck 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. >> >> 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. >> >> Thats a lot of stuff, so let us know if you have any more questions. >> >> spencer >> >> >> >> On Wed, Jan 1, 2014 at 9:59 AM, Alan Brooker >> <[email protected]<javascript:_e({}, 'cvml', >> '[email protected]');> >> > wrote: >> >>> Hi there >>> >>> 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 *x5 >>> potentiometer*s that send values to an arduino board and then into >>> ChucK hopefully. Was hoping I could do this without OSC- >>> >>> thanks for helping this noob! >>> >>> >>> >>> Al >>> >>> _______________________________________________ >>> chuck-users mailing list >>> [email protected] <javascript:_e({}, 'cvml', >>> '[email protected]');> >>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users >>> >>> >> >> _______________________________________________ >> chuck-users mailing list >> [email protected] <javascript:_e({}, 'cvml', >> '[email protected]');> >> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users >> >> >
_______________________________________________ chuck-users mailing list [email protected] https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
