How to recieve string from USB serial device via Adobe Air and Arduino...

I'm looking for a hardware solution to communicate with a proximity sensor. I think it can be accomplished with your products.

Background: My client makes consumer products, one uses a proximity sensor to trigger the device.

My goal is to read input from a modified client product for a trade show kiosk. The product uses a proximity sensor which I must interface with Adobe Air.

The engineer says they can modify a unit to send a serial string over USB. It will have two wires coming out that can connect to a TTL to USB converter.

What I hope to find here is a product that can interface the product and produce a keyboard stroke as this is easy to listen for and react to in Adobe Air. In liue of a keyboard stroke, some other mechanism to monitor the sensor.

This is not something I am familiar with - any background information would be greatly appreciated.

I did find an AIR native extension (ANE) that provides access to serial port/RS232:

which led me to this forum.

Thanks for your advice!


Have a look at the Leonardo as it can emulate keyboard/mouse.

From the Linked Page:
The Leonardo differs from all preceding boards in that the ATmega32u4 has built-in USB communication, eliminating the need for a secondary processor. This allows the Leonardo to appear to a connected computer as a mouse and keyboard, in addition to a virtual (CDC) serial / COM port. It also has other implications for the behavior of the board; these are detailed on the getting started page.

Can be done, and isn't even very difficult. This is flash (AS3) streaming to an Arduino Mega that I did in 4 evenings starting from scratch knowing NOTHING about Arduino (it was the first thing I ever did).

But your description of what it is that you want to do is vague. Do you want 2-way or 1-way communication between the device and Adobe AIR ? Does it have to be a Wi-Fi connection, a wired connection or can it be a Bluetooth connection ?

There are many ways of getting data from a serial to Flash/Air/AS3 which you can find with Google.

For example the firmata library

Or as3glue

as3glue (youtube)

Then there's the serial to socket solution

Or then you simply could use a bluetooth serial module (you do not need even an Arduino) to route the serial to a Bluetooth wireless serial

And grab it at the other end (the PC running AIR) using Glovepie, and turn it into keyboard strokes

Sorry to reply so late, if you use Android you can also use this:

It let's an Air Android app connect to an Arduino using the USB Host, no permissions are required