Skip to content
No9 edited this page Oct 15, 2012 · 6 revisions

Arduino side:

  1. Download arduino software, if necessary
  2. Clone this repository
  3. Copy (and confirm to replace) all the files from your local repository to 'libraries' folder in your arduino installation folder
  4. Clone USB Host Shield library repository and copy it into 'libraries' folder in your arduino installation folder.
  5. Uncomment #define BOARD_MEGA_ADK in [avrpins.h] (https://github.com/felis/USB_Host_Shield_2.0/blob/master/avrpins.h) if you have Arduino Mega board
  6. Run Arduino IDE (If you have IDE Open then restart to import library folder)
  7. Open StandardFirmataAdk sketch (File/Examples/Firmata/StandardFirmataAdk)
  8. Choose your arduino board (Tools/Board/...), if necessary
  9. Upload sketch
  10. Plug USB Host shield in Arduino board and USB cable from android device into USB host shield (leave USB cable between PC and Arduino as is - this will be required just to see debug output)
  11. Launch COM Monitor in Arduino IDE and verify that ADK is initialized:

setup()

init ADK ...

ADK init done

firmata setup done

ADK Init

Acc.mode device detected

Configuration successful

  1. Now you can remove USB cable between PC and Arduino

Android side:

  1. Install ArduinoCommander android app, if necessary
  2. Launch application and switch to 'USB Accessories' tab
  3. Click 'Discover accessories'
  4. Click on attached android accessory

AnettoSoftware ArduinoCommander client 1.0

  1. Use ArduinoCommander as usual

Clone this wiki locally