processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

Processing 3 Library for Arduino USB Host Shield

Open ghost opened this issue 7 years ago • 1 comments

Greetings!

I seek some support for Arduino USB Host of an Android Accessory.
REF: https://www.arduino.cc/en/Tutorial/AndroidAccessoryDigitalWrite

Any thoughts regarding additional information regarding the ArduinoAdkUsb object? The Processing sample code from the Android Accessory Digital Write tutorial contains the following:

import cc.arduino.*;
import android.view.MotionEvent;
ArduinoAdkUsb arduino;
...
arduino = new ArduinoAdkUsb( this );
arduino.connect( arduino.list()[0] );
if ( arduino.isConnected() ) {
    if ( event.getAction() == MotionEvent.ACTION_DOWN )
      arduino.write('a');

The end goal is to use the Arduino USB Host Shield to control the Arduino I/O from cost effective Android hardware with open-source libraries for Arduino Accessory Development Kit (ADK) and Processing 3.

Thanks, coast

ghost avatar Feb 08 '18 00:02 ghost

@mancoast Thanks for bringing this up. It seems that the ADK mode is no longer available, at least through the Contributions Manager. This guide shows installation steps, but on Processing 2.x. I tried downloading the ADK Mode package from http://processing.arduino.cc/AdkMode.zip, but the link is broken, and cannot find any source code repo. It may be a good idea contacting the Arduino developers to get an update on the status of the project. I wonder if it could be possible to incorporate ADK support as a library for the latest version of the Android mode, so there is no need to have a separate mode for it.

codeanticode avatar Feb 08 '18 14:02 codeanticode