Arduino + ADK first application

Finally found some time to play with my Arduino-ADK and Android phone.

The phone is a Samsung Galaxy II. I spent waaaaaay too much time trying to figure out the issue with the USB connection. The software continually threw IOException (EIO) errors.

Turned out that the board was not receiving enough power through the USB hub. I connected an external source battery (later this will be a power supply) and the application worked as expected.

The application simply runs through the range 0-180 degrees and measures the distance to the nearest object. That distance plus the degrees is sent through to the Android phone for display.

This opens up some opportunities to have the “Robot Brain” make autonomous decisions as it is moving around. This together with GPS coordinates opens up many new opportunities…

Here’s the video

Updated with the Adafruit LCD screen kit
RobotBrain3.zip