I'm new to Quartz Composer but have been playing with the Arduino microcontroller for a while now. A few days ago I came across Kineme's Serial I/O for QC through a blog about using QC to read the analog bits from an Arduino<http://originalhamsters.com/blog/2008/11/16/arduino-quartz-composer/>. That was cool and got me thinking about other ways to use the two together.
So here is what I want to do. This site describes a simple infrared remote control analyzer. you simply attach an IR sensor to one of the arduino input pins and load the program. If you point an IR remote at the sensor the arduino sends data over the serial port that looks like this: Analyze IR Remote Waiting... stream detected! 0 0 3440 0 3440 1 6976 1 6976 0 7808 0 7808 1 10488 1 10488 0 11312 0 11312 1 12228 1 12228 0 13056 0 13056 1 13976 1 13976 0 14804 0 14804 1 17480 1 17480 0 18304 0 18304 1 19224 1 19224 0 20048 0 20048 1 22732 1 22732 0 23556 0 23556 1 24476 1 24476 0 25304 0 25304 1 26228 1 26228 0 27048 0 27048 1 27964 1 27964 0 28788 0 28788 1 29708 1 29708 0 30536 0 30536 1 31452 1 31452 0 32280 0 32280 1 34956 1 34956 0 35784 0 35784 1 36704 1 36704 0 37528 0 37528 1 40208 1 40208 0 41032 0 41032 1 43716 1 43716 0 44540 0 44540 1 45460 1 45460 0 46284 0 46284 1 48960 1 48960 0 49788 0 49788 1 50708 1 50708 0 51536 0 51536 1 54216 1 54216 0 55040 0 55040 1 57716 1 57716 0 58544 0 58544 1 61224 1 61224 0 62052 0 62052 1 64728 1 64728 0 65556 0 65556 1 68236 1 68236 0 69060 0 69060 1 69980 1 69980 0 70804 0 70804 1 104892 1 104892 0 108332 0 108332 1 111872 1 111872 0 112696 0 112696 1 115372 1 115372 0 116200 0 116200 1 117120 1 117120 0 117944 0 117944 1 118864 1 118864 0 119692 0 119692 1 122368 1 122368 0 123196 0 123196 1 stream end! Waiting... The first part is a time stamp in microseconds, followed by a tab. The second number is the binary value of the signal at that instant (1 or 0). Rather than copying the data into a file and graphing itmanually using something like gnuplot, I want to do it within quartz composer using the Serial I/O, and ChartTool. The chart should look something like this<http://www.arduino.cc/playground/uploads/Code/TWCLogicCharts.pdf> Simple enough I think. Just a simple waveform. Well I know serial I/O is working and data is getting in but I think my problem is the parsing of the data because nothing graphs. I couldn't find much in the way of documentation for ChartTools <http://kineme.net/product/ChartTools>. I'll try attach my quartz file but I'm not sure the list supports that. -- John Scherer - Contact - 651-252-4142
ArduinoIR Grapher2.qtz
Description: Binary data
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com