AS3 and Arduino

It took some doing, but we got the Arduino to talk to Flash CS3 in a neat way. I’ve compiled that information here because I think it is useful and not explained well anywhere else.

First, you need to get Standard_Firmata.pde onto your Arduino. This is done just like any other Arduino sketch. Firmata provides the framework necessary to have read/write access the ports of the Arduino over the Serial connection. You can use any number of different programming languages to talk to the Arduino board without having to upload a different program to the board’s memory. Firmata rocks!

Second, (at least for Flash) you need to have a Serial Proxy running in the background. SerProxy functions as go-between for Arduino and Flash. Arduino speaks Serial messages, Flash speaks Socket Connection messages, and SerProxy acts as the bi-directional translator. SerProxy rocks!

Third, you need a Socket Connection in Flash. AS3Glue is a library of AS3 classes designed with this in mind, and includes built-in methods, properties and events for communicating with Arduino over the Socket-to-Serial path. The people over at protolab have adopted AS3Glue for their work, and have made a bunch of neat .fla files using the library.

At the end of this post, I’ve provided a screen shot of the base setup working, as well as a zip archive of the software you need to get started. It includes a quick readme to get you up to speed! Enjoy!

Flarduino ScreenShotFlarduino Archive

10 Comments »

  1. Jon said,

    April 8, 2009 @ 9:42 am

    Tahnk you very much for this post!!! :)
    it´s great!!! very very useful information!

  2. ArduinoとFlashの通信 : circumstance evidence said,

    May 24, 2011 @ 9:52 am

    [...] ArduinoとFlashの通信をトライしてみました。 もう3年前の記事だけどJoeさん(誰?)のブログ記事がわかりやすかったので意訳しつつ引用します。 [...]

  3. blogs said,

    July 10, 2013 @ 7:55 am

    Nice weblog here! Additionally your site lots up fast!
    What web host are you the use of? Can I get your associate hyperlink to your host?
    I want my web site loaded up as fast as yours lol

  4. Finlay said,

    May 21, 2014 @ 8:02 am

    Thanks for ones marvelous posting! I truly enjoyed reading it, you might be a great author.I will make certain to bookmark your blog and will come back
    down the road. I want to encourage yourself to continue your great work, have a
    nice morning!

  5. marketing quiz questions said,

    July 5, 2014 @ 2:44 am

    I’m truly enjoying the design and layout of your website. It’s a
    very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a designer to create your
    theme? Fantastic work!

  6. Ichoule said,

    July 12, 2014 @ 9:54 pm

    Hey there superb website! Does running a blog such as this
    take a great deal of work? I’ve absolutely no understanding of coding but I had been hoping to start my
    own blog in the near future. Anyways, if you have any suggestions or
    tips for new blog owners please share. I know this is off subject however
    I just had to ask. Thank you!

  7. gucci handbags said,

    August 31, 2014 @ 5:31 am

    Good day! I could have sworn I’ve been to this website bwfore but after going through some of the
    articles I rewalized it’s new to me. Anyhow, I’m definitely
    delighted I came across it and I’ll be bookmarking it and
    checking back regularly!

  8. car-sharing.bookmarking.site said,

    April 30, 2021 @ 7:20 pm

    car-sharing.bookmarking.site…

    Joe Pietruch's Blog…

  9. xanh villa thạch thất said,

    June 13, 2021 @ 6:25 pm

    xanh villa thạch thất…

    Joe Pietruch's Blog…

  10. păcănele la aparat said,

    January 14, 2022 @ 12:04 pm

    păcănele la aparat…

    Joe Pietruch's Blog…

RSS feed for comments on this post · TrackBack URI

Leave a Comment