Looking to use his Arduino when on-the-go, [Oleg] has been working on a way to use the Android ADK terminal emulator with the Arduino. The Android side uses ADK features along with a custom application. [Oleg] received help from his friend [Victor] when developing the program for Android (you can check out our own Android Development tutorials if you’re interested in learning how this is done). The .apk file is available for download, but they’re waiting to release the source code until they can clean it up and get some of the gnarly bugs out of the beta version.
A USB host shield for the Arduino is needed to connect to an Android hand set. You’ll be able to send and receive strings via the terminal, with support for carriage return and life feed characters. Unfortunately this doesn’t allow you to change, compile, or write sketches to the Arduino. But it might come in very handy when trouble shooting a project when a computer is not around, or just for using an Android phone as an output.
This gives me wood, and I’m not even a tArduino fan. Love Android, Atmel uCs, and open-source stuff though. :) I see some rather large potentials in this project.
if serial is all you want, why not use a bluetooth module as a virtual serial port?
I agree. Bluetooth module from ebay = $10 shipped. Hooks up to the TX/RX lines. If you set your module to 57600 and set the arduino terminal to 57600 you can also upload sketches, as well as access the terminal.
I use bluterm on my android tablet. Uploading sketches is a little tricky, some bluetooth drivers will simply not work. Others require to force a connection before compiling. Works a treat on my modded coffee machine!
So does it appear as /dev/USB/tty0 or something? Can it also be used for a real RS-232 terminal for,say modifying a switch conifg, or interfacing with WOPPR? :)
Tweeks
I’d rather have the dev board/USB Host shield than simply a bluetooth module.
Have you priced the BT modules for Arduino? Far more expensive, and far more limited vs. USB Host. Thought to be fair, USB Host and BlueTooth have different purposes…
rev.2.0 of USB Host Shield software supports multiple devices on a bus; you can have all kind of things connected to Arduino in addition to Android.
This is a really cool project… but I do not want to use my android phone for this. So my question is: has someone done this with an windows mobile device??? I have an old Acer N50 Pocket PC with windows mobile2003se, this device has an USB Host port. My problem is, how to program it. Seems there are no free tools available anymore, the only one I found was Basic4PPC but it doesnt have the libraries I need. Can someone please help???
Check out ArduinoCommander app: https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinocommander
Can you leave the source code?