RSS
 

Adobe AIR Accent [mood] Light

18 Feb

I’m posting a small AIR project I did a while back. In fact, this was my first AIR app. To that end, there’s no reason this couldn’t be compiled as a Flex app, the use case made more sense as a desktop app and I wanted to get my feet wet with AIR.

Source Code for AirRGB

The application allows the user to select the color displayed of some attached (via serial connection) tri-color LEDs. The program also has the ability to randomly pick two colors and “transition” from one color to the next over a user specified amount of time.

Flash / Air doesn’t allow read / writing to serial ports. The program uses a serial proxy by by Stefano Busti(1999) and David A. Mellis(2005) found at http://www.arduino.cc/en/Main/Software to make this possible. The AIR app then can utilize a socket connection to the proxy.

For those interested here’s a list of the parts used for the light itself:

Arduino USB Board $34.95
LED Light Bar (Tri-Color) $4.95
Darlington Driver 8-Channel ULN2803 DIP $1.95
USB Cable A-B $6.95

 

Leave a Reply

 

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

 
  1. David Wertheimer

    March 24, 2008 at 3:59 pm

    Loved the AIR app for the colored LED’s. I want to build one! Can you drop me a line with the connections you made from the Arduino board to the Darlington Driver and then to th LED? That would be super cool. Thanks for posting this example!!!

     
  2. Aldo

    June 28, 2009 at 6:55 pm

    Hello…!

    nice app!

    One question… can you send me the arduino code?

    Thanks for the source!

    Bye!

    :)