Pages

22 March 2011

Exhibition Room Layout

Mock Ups by Alannagh




Illustration ii

REplay Forest is taking shape. Click to enlarge.

Night and day forest scenes
by Alannagh.

The vines on the baron tree will animate when a visitor begins to engage with our project.










Illustration i

This is how our graphics are shaping up. Click to enlarge.

Butterflies, flowers and fish
by Alannagh.


21 March 2011

Arduino - Look Who's Talking

Connecting the Arduino to Flash from scratch was a success :)

First of all, we downloaded and installed the Arduino software and a USB-to-serial driver. The Arduino IDE expects a serial connection to the Arduino. Since our Duemilanove ATmega328 connects to a computer via USB, we need to install a FTDI driver so the Arduino IDE will find it.

1. Code to run on the Arduino ✔
Standard Firmata sketch uploaded in the Arduino IDE so we never have to upload code to Arduino again. Just as well since we don't know Java. Now we will use Flash with ActionScript 3 to send commands that will get the Arduino to do what we need, and visa versa.
'Firmata is a generic protocol for communicating with microcontrollers from software on a host computer.' firmata.org
2. Serial to Socket Server ✔
Serproxy configured correctly to connect Flash and the Arduino board using Arduino2Flash. After editing the serproxy.cfg file with our baud number and serial device name it worked straight away, and displayed a command prompt.

3. Flash Socket Library ✔
Next we need to add a software library to Flash that understands the Firmata protocol so that Flash will communicate with the Arduino board. For this we used the as3glue.

4. Flash Code ✔
The video below features an example that came with the glue library. Our own code is a work in progress.
So, it works! Check it out...

Look Who's Talking from rePLAY on Vimeo.


Many thanks to Jean-Philippe Cote for his step-by-step tutorial.

Annie.