-
Notifications
You must be signed in to change notification settings - Fork 11
Installation
No9 edited this page Oct 15, 2012
·
6 revisions
- Download arduino software, if necessary
- Clone this repository
- Copy (and confirm to replace) all the files from your local repository to 'libraries' folder in your arduino installation folder
- Clone USB Host Shield library repository and copy it into 'libraries' folder in your arduino installation folder.
- Uncomment
#define BOARD_MEGA_ADKin [avrpins.h] (https://github.com/felis/USB_Host_Shield_2.0/blob/master/avrpins.h) if you have Arduino Mega board - Run Arduino IDE (If you have IDE Open then restart to import library folder)
- Open StandardFirmataAdk sketch (File/Examples/Firmata/StandardFirmataAdk)
- Choose your arduino board (Tools/Board/...), if necessary
- Upload sketch
- 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)
- 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
- Now you can remove USB cable between PC and Arduino
- Install ArduinoCommander android app, if necessary
- Launch application and switch to 'USB Accessories' tab
- Click 'Discover accessories'
- Click on attached android accessory
AnettoSoftware ArduinoCommander client 1.0
- Use ArduinoCommander as usual