Arduino Mega ADK + Processing 2.1 + Android

Hello everyone,

For over a week I have been searching the Internet, looking for solution about how to connect my Arduino Mega ADK to my 4.1.2 Android device using Processing 2.1. I need to be abel to read analog pins and transvere data flow into the Android device.

So far I have tried many thing of whitch most promising seemed to be this official tutorial : http://labs.arduino.cc/ADK/AccessoryMode

and this Tellar tutorial:

http://stream.tellart.com/controlling-arduino-with-android/

However I keep getting this error message:

TEST TEST: 4
Arduino_ADK 0.1a
by D. Cuartielles, A. Goransson
at http://arduino.cc, http://1scale1.com
    Exception in thread "Thread-13" java.lang.NoClassDefFoundError: processing/mode/android/AndroidPreprocessor
        at cc.arduino.adk.processing.MyCompileThread.compileAndUpload(Unknown Source)
        at cc.arduino.adk.processing.MyCompileThread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: processing.mode.android.AndroidPreprocessor
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 2 more

I followed instruction tutorials several times very carefully and downloaded everything what was needed. Arduino Mega ADK transveres readings (USB monitor) works fine. I am usin Arduino IDE 1.0.5. As well I was able to run working sketches from procesing 2.1 (in Android mode) on my Android device. However I cant figure out a way for both of them communicating together.

Any advice will be greatly appreciated. Best regards, Dominik.

Answers

  • I think arduino has totally ignored this mega adk board as majority of the public has failed to get this working with processing for android!

  • I made all sort of changes in sdks and the libraries but it did not work for me too.

Sign In or Register to comment.