Arduino Mega ADK demo kit on Xoom and Nexus S

androidarduino

I have an Arduino Mega ADK board. I am trying to make the sample project that is distributed with the ADK, but I can's seem to get any devices to detect my board.

I have installed the firmware on the ADK board with arduino, and it compiles and transfers with no errors.

I have the DemoKit application installed on device (tried both Xoom and Nexus S). I never get past the first screen that says please plug in the adk board.

I have tried powering the board via USB and with a 9v, didn't make a difference.

Beyond installing the android apk, and the arduino firmware on the board is there something else I need to do in order to get this sample program working?

Best Answer

I went back and added some log outputs to the ADK code and figured out that the demokit software was not making it through the setup method. Turns out it was hanging on this line:

init_joystick( 5 );

I commented this line out and all works well. I don't know if it matters but while I was doing all of this I had no components plugged in to my ADK board.