Phidgets Patches for Quartz Composer

Phidgets InterfaceKit 0/0/4 PatchI made a pair of patches to allow Quartz Composer to directly interact with the Phidget InterfaceKit 0/0/4 (relay outputs) and 8/8/8 (digital inputs + analog inputs + digital outputs).

 

 

This release is only compatible with Tiger (10.4).
Please see kineme.net for Leopard-compatible patches.

Get version 0.1 here.

Phidgets InterfaceKit 8/8/8 PatchNotes:

  • These require the Phidget21 drivers to be installed.
  • Device Labels are specified using POSIX Regular Expressions.
  • Due to a bug in the Phidget21 driver, I can’t manually fetch a list of interfaces, and so need to rely on notifications.. So if you change the Device Label regex, you’ll need to unplug-and-replug the Phidget for it to be recognized.
  • Both patches are pink “Renderer” patches because they provide output from Quartz Composer – they are “sinks” in graph theory. Given QC’s graph evaluation model, I haven’t yet found a way to make these patches reliably output data unless they’re (improperly) marked as “Renderer”s.
  • Both patches should support multiple InterfaceKits of the same or differing types – as long as you specify non-overlapping Device Labels for each. I haven’t been able to test this yet – my second InterfaceKit 8/8/8 should arrive later this week.

Here’s a little test setup, using a distance sensor connected to one of the InterfaceKit 8/8/8’s analog inputs, which – via Quartz Composer – controls a relay output on the InterfaceKit 0/0/4. Beth and Robert built the 0/0/4 into a box of 120VAC receptacles, into which I’ve plugged a light.

Far from distance sensor = Relay off Far from distance sensor = Relay off

Close to distance sensor = Relay on Close to distance sensor = Relay on

Piece of cake.


Steve Mokris is a developer at Kosada, Inc.