Arduino & Flash AS3 (part 1)

At my last interactive exhibition, I was asked how would a Flash engineer get started with tinkering with the Arduino. Well, it’s fairly simple, their are a few caveats to overcome, but for the most part all you have to do is acquire the hardware and install some open source software, and oh yeah own a copy of flash or an ActionScript compiler. This post will be covered in 5 parts to help you get Flash talking to Arduino using a quick button created on a breadboard.

Before we get started you will need the following software and hardware:

Download the necessary files:

(1) The Arduino integrated development environment (IDE).
(2) The FTDI Serial driver (MAC OSX Intel 10.4 +)
(3) The SerialProxy application. (Scroll down to the bottom of the Arduino page)
(4) AS3Glue. (Featured downloads)
(5) A copy of Flash CS4 (trial version will work also) or an actionscript compiler which can compile Actionscript 3
(6) A plain text editor – Notepad will do, but I prefer TextMate.

Now for hardware….

I have provided links to SparkFun and Radio Shack for each component. I would advise you to buy your supplies online, but if you are impatient, you can go down to your local Radio Shack and purchase some of the components. For the provided Radio Shack links its important to take note of the catalog number, this is the number that Radio Shack provides to access its inventory. When I’m in need of a simple component, I usually go online to, check to see if they have the component, log the catalog number and then call up my local Radio Shack(s) and track down the component. Granted their components are a bit on the pricey side, but its an instant gratification and beats waiting a few days for a pack of resistors to arrive in the mail.

The example in this post uses the following hardware and components:

(1) An Arduino Duemilanove board, you can pick one up at Sparkfun or Adafruit.
(2) A USB cable. (you probably already have one of these laying around)

(3) A basic LED, so you can test if the board is actually working. (online SparkFun or Radio Shack)
(4) A breadboard. (online SparkFun or RadioShack)
(5) A momentary button. (online SparkFun or RadioShack )
(6) Jumper Wire. (online SparkFun or RadioShack)

(6) 1 10Kohm 1/2W 5% Carbon Film Resistor. (online Futurlec or RadioShack)

Once you have gathered all the materials and downloaded the required software, we are ready to get tinkering.

Move onto (part2) of this post.

6 Responses to “Arduino & Flash AS3 (part 1)”

  1. […] + Flash AS3 By d.g. Very interesting & simple 5-part tutorial on how to hook up Arduino and […]

  2. This is a beneficial publish, im happy I recently found it. Ill be back in the future to check out other posts that you have on your blog.

  3. HotAirRaccoon says:

    Thanks for the sweet post. I’m a flash developer, artist, and graduate student, and I’ve been itching to move into using the arduino. I’m pretty good at AS3 so now I can focus on the creative part of the project, instead of the learn-to-code in other languages part!!

  4. Zik Uralov says:

    That’s awesome! Can’t wait for my fresh ordered arduino board.

  5. Wendell says:

    Hey, I think your site might be having browser compatibility issues.
    When I look at your website in Safari, it looks fine but when opening in Internet Explorer, it
    has some overlapping. I just wanted to give you a quick
    heads up! Other then that, superb blog!

  6. admin says:

    Thanks, I’ll look into it.

Leave a Reply

Coding Color | 2009 All Rights Reserved.