Sunday, July 26, 2009

Arduino-Flash communication

This week, we worked on connecting Arduino with Adobe Flash CS3 as well. Arduino cannot directly communicate with Flash. A communication protocol is needed which can create sockets for communication and can translate messages between the two. "Serial Proxy" is used for creating sockets. It is basically an XMLSocket server, a small program that runs
on pc and keeps a live connection between the serial port and Flash. This serial porxy server can be found at http://www.arduino.cc/en/Main/Software. A library of routines provides a wrapper around XMLSocket for making the communication code cleaner (
More information can be found at http://www.arduino.cc/playground/Interfacing/Flash). Communication between Flash and Arduino takes place on virtual serial port COM3 with port number 5333. Strings can be transmitted back and forth between Arduino and Flash. For our case, we are transmitting the sensor number as string -- the sensor which is hit by the ball. This string is converted to integer in Flash porgram and is utilized to kill an animal.


No comments:

Post a Comment