Syndication
via RSS
via Email
via Technorati
-
Recent Posts
Categories
Now, everyone is talking about the new Radiohead music video. I join this posting game by a piece of information from memo.tv. You can even download the Processing code and the frame data (data folder in Processing) to try out the sketch in Processing. It can be slow but have fun.
House of Cards Processing test with Binary data. from Memo Akten on Vimeo.
I bought this simple Phidget 8/8/8 interface kit with 8 digital inputs, 8 digital outputs and 8 analog inputs. For projects that require only simple input and output control, it is a handy choice to replace the soon obsolete EZIO board. It has a USB interface and API for most major programming languages, like C/C++, Java, ActionScript.

Since it has a Java API, i.e. the phidget21.jar libary, it can be easy to use it in Processing. From the example, I adopt it by placing the jar file in the code folder of the Processing sketch. The first exercise is to switch on/off an LED.
The library comes with a lot of async. features. In the exercise, I ignore them for the moment in order to simplify everything.
import com.phidgets.*;
import com.phidgets.event.*;
InterfaceKitPhidget ik;
boolean led;
void setup() {
size(200,200);
smooth();
noStroke();
fill(100);
println(Phidget.getLibraryVersion());
try {
ik = new InterfaceKitPhidget();
ik.openAny();
ik.waitForAttachment();
}
catch (Exception e) {
println(e.toString());
}
led = false;
}
void draw() {
background(0);
if (led) {
fill(255,255,0);
}
else {
fill(100);
}
ellipse(width/2,height/2,100,100);
}
void mousePressed() {
led = !led;
try {
ik.setOutputState(0,led);
}
catch (Exception e) {
println(e.toString());
}
}
void stop() {
try {
ik.close();
}
catch (Exception e) {
println(e.toString());
}
ik = null;
}
With reference to a post from Paja blog, I connect a Melexis 90217 to Arduino which can respond to a nearby magnet. It can function as a magnetic field sensor or a steel metal sensor for counting rotation speed as indicated in the reference post.
The software code adapts the ReadingRPM source from the Arduino playground. It uses the attachInterrupt function to detect the change in voltage level of a particular pin. There is no need to poll the pin status in the loop() function and works in an async fashion.


Arduino code
int inPin = 1;
int ledPin = 12;
volatile int state = LOW;
void setup() {
pinMode(ledPin,OUTPUT);
attachInterrupt(1,light_on,CHANGE);
}
void loop() {
digitalWrite(ledPin,state);
}
void light_on() {
state = !state;
}
The next step is to send the status information back to a simple Processing sketch through the serial interface.
Processing code
import processing.serial.*;
Serial port;
final int LF = 10;
boolean led;
void setup() {
size(600,600);
println(Serial.list());
port = new Serial(this,Serial.list()[1],9600);
led = false;
frameRate(15);
smooth();
noStroke();
fill(100,100,100);
}
void draw() {
background(0);
if (port.available()>0) {
String s1 = port.readStringUntil(LF);
if (s1!=null) {
s1 = trim(s1);
if (s1.equals(”1″)) {
fill(255,200,0);
} else {
fill(100,100,100);
}
}
}
ellipse(width/2,height/2,300,300);
}
I went to see the Messa di Voce in Elements at Kowloon MTR station. There were not too many visitors. And only a few of them were interested in ‘interacting’ with the artwork.
Flirting with Sound will have two interactive audio visual installations in the Elements shopping mall in Kowloon MTR station. One is the Messa di Voce by Zach Liberman and Golan Levin. The other is Henry Chu’s production.

There will be a new book on using open source libraries with Flash CS3, The Essential Guide to Open Source Flash Development by Friends of ED.

Terry sent us the news of this beautiful work. The BMW Museum in Munich opens with a very impressive kinetic sculpture, developed by the famous ART+COM in Germany.

Image from Engadget
Years ago, greyworld did a similar project The Source for the London Stock Exchange. It is more functional in a sense that the moving balls are pixels of a vertical display panel which can show text message dynamically.

Information from Create Digital Motion
I found this weird new Japanese film, Machine Girl, a comically violent and blood-filled stuff.

Image from Wikipedia
The trailer and some violent scenes can be found in YouTube.
The company ARToolworks Inc. provides the professional version of the ARToolKit and the natural feature tracking feature.

