Linking Android to Arduino
I've started our latest project (to be unveiled soon). It requires Arduino to receive commands from an Android device. It needs to be as light as possible, so ideally needs to be powered from the USB connection.
I've seen a number of solutions using Android ADK and special Arduinos, but this seems rather unnecessary. The problem seems to be the USB communication on either side, requiring USB sheilds (http://www.freetronics.com/products/usbdroid#.Upz8jx8hG1E). Alternatively there's Bluetooth (http://blog.arduino.cc/2013/07/18/how-to-control-arduino-board-using-an-android-phone/), but that would mean an external power source.
So instead, just use a Serial interface. There are Java libraries that can be used on Android. Everything including examples can be found here:
https://github.com/mik3y/usb-serial-for-android
I've hooked up my arduino Uno to an SIII using an A to B USB cable and OTG cable. It all works nicely.
Stay tuned for what we're going to use it for ;-)
No comments:
Post a Comment