Android Open Accessory Mode is a feature of Android OS 3.1 (back
portable to version 2.3.4) whereby an external USB host controller may
enumerate the Android USB peripheral port and create a two way data port
to allow external hardware to control the Android platform or for the
Android platform to control external hardware. A typical application may
be buttons, LEDs, or joystick as found on a games controller.
For more information on Open Accessory Mode in Android platforms see:
http://developer.android.com/guide/topics/usb/accessory.html
FTDI offer a solution for connecting to the Open Accessory Mode via
the Vinculum-II device. Examples may be found on this page.
 |
Example 1 - Buttons and LEDs
Controller |
In this example the Vinculum-II evaluation board (V2EVAL) is used to communicate with an Android platform via the Vinculum-II USB host port 1.
VNC2 GPIO lines are used to drive LEDs in
response to commands from the application running on the Android
platform and to read other GPIO lines in response to button presses on the V2EVAL hardware to control software LEDs in the Arduino application.
A fifth LED will flash at a variable rate as
a slider on the Android application controls the VNC2 PWM interface.
This gives the
appearance of an LED dimmer switch.
Source code and a precompiled ROM file for running on the Vinculum-II may be downloaded from here:
http://www.ftdichip.com/Support/SoftwareExamples/Android/vinco_android_acc.zip
Source code and a precompiled application file to run on the Android platform may be downloaded from here:
http://www.ftdichip.com/Support/SoftwareExamples/Android/android_acc_appl.zip
For more information on the
project see:
AN_181_ Accessing Android Open Accessory Mode with Vinculum-II
|