Android + Arduino + USB Host + Sensor Graph
A simple app to visualize analog sensor input with Android and Arduino.
For additional background information on interfacing Android with the real world, check out my other introductory tutorials:
- Android Device (1.6+)
- Power supply
- Hook-up wire
- Android ADK Board*
- – OR –
- Arduino compatible and USB Host shield
*Supported boards include:
Connect the two sides of the potentiometer to 5v and ground, and the center wiper to analog input pin A0. Here is a diagram of the completed circuit (created with Fritzing):
Next, upload the Arduino sketch to the microcontroller. The sketch uses the Microbridge implementation by Niels Brouwers. Microbridge uses Android Debug Bridge (ABD) forwarding over TCP, rather than the official Google Android ADK. You can checkout the source for the Arduino sketch from Github, or just copy and paste the following into the Arduino IDE.
git clone git://github.com/mitchtech/android_adb_sensor_graph.git
Finally upload the app to the device (or browse to this page on the device and download the apk above). Connect the Android device to the USB Host board/shield, and start up the app.