Flashduino!
I have been working with Arduino lately. I must say it has made me really excited about technology again. There is something about creating physical devices that is more rewarding then always working on virtual projects. Having said that, ever since I started working with Arduino I have wanted to make interfaces for it with Flash. The tutorials I have found for connecting the two all exploited the XMLSocket object in AS2. Using the XMLSocket has some small issues to it, namely it needs a null byte on the end of each message. ActionScript 3 fixes this little speed bump by including a binary socket that does not need a null byte to end a message. I had to try it out for myself so I put together a small demo of serial communication between Flash and Arduino using the TinkerProxy.
November 4th, 2007 at 11:07 pm
Very cool. I’ve passed this along to the coworkers and am going to have us take a look at this platform. Had not heard about it before. I hear you re: the physical realm. I’d kill to build some cool things, combined with some wood work and nice milling.
March 18th, 2008 at 3:04 pm
[...] make sure that the socket is working correctly, you can quickly download and run the Flashduino Flash demo by Brett Forsyth (just make sure you change the port in the code as that one’s made for [...]
March 23rd, 2008 at 4:48 am
[...] espically when people have done it already, and you can copy and paste their code! Thanks Beltran, Brett, and Aral for sharing your code! In no time I had a potentiometer controlling the brightness of an [...]
August 28th, 2008 at 8:25 am
Hey, thanks for your code, I used it in my Trimphone project, have a look!
http://rmx.cz/trimphone/
August 28th, 2008 at 8:51 pm
Hey no problem you should also check out as3glue http://code.google.com/p/as3glue/ It works really well.
August 13th, 2009 at 6:58 am
[...] Flashduino! [...]
December 13th, 2009 at 12:12 am
Thank you so much,
I’m trying about this.
March 31st, 2010 at 6:49 am
[...] Arduino Microcontroller for physical interaction with flash media [this prototype is in my opinion the easiest to get started with, there are many others to look at as [...]
April 1st, 2010 at 8:24 am
Hi there, I’ve been using an AS2 socket to access the values from some accelerometers and and a gyro but would really rather use AS3.
Your sample code works great, but I’m experiencing the same problems that Iestyn describes on his blog i.e, the data from the arduino is split into two lines. Do you have any suggestions on how to avoid this? I don’t want to have to restart with AS3glue unless I have to.
Many thanks for sharing,
David
April 2nd, 2010 at 9:42 am
Ok, so I’ve sort of found a solution to my problem…by using a different computer (xp instead of vista) and changing the baud rate in the device manager settings too…this seems to make the data stay on just one line.
Unfortunately when running in the Flash environment the code eventually slows down and then hangs (I have to close serproxy in order to unfreeze things) any ideas what might be causing this? Is there any kind of flow control that I might need to implement?
Thanks again,
David