ArduinoCommander and the ArduinoBT
After a brief poke around in the Android Market I found ArduinoCommander.
Unfortunately the instructions for ArduinoCommander are based around using a bluetooth shield rather than the fully integrated ArduinoBT, so needless to say I hit a few bumps along the way getting it to work. Luckily the developer for ArduinoCommander was very responsive and helpful, and eventually I got it working. I promised him I would put together a quick walk through, so here it is:
The ArduinoBT seems to have some trouble with the latest Firmata design v2.2 at the time of this article. I followed the instructions by the developer to get ArduinoCommander working, but the app would never connect to my ArduinoBT board. The big issues seems to be the baud rate. The arduinoBT runs at 115200, versus the app authors shield running at 9600.
Luckily Firmata provides older versions of firmata on their site. So I tried downloading one after seeing a couple forum posts on Arduino.cc indicating a similar issue. However the older versions of the firmata library will not compile correctly on the latest Arduino software v1.0.
So in order to get ArduinoCommander working, I downloaded an older version of the Arduino Software (0017) that included an older version of Firmata (v2.1).
Make sure if you follow this method that you use the standardFirmata sketch as a base that is included with the older version of the Arduino Software. Or Download here!
You will still need to change the baud rate to 115200 to match the arduinoBT.
Now that you have your Arduino Sketch ready to go, you will need to compile it first using the verify button. Once your sketch is compiled its time to upload. Don’t forget to pair your board to your PC/MAC/*nix machine first.
For those familiar with the ArduinoBT you know it takes proper timing to upload your sketches. You need to hit the reset button on the board just before the sketch is uploaded.
In the newer versions of the Arduino software it seems pretty easy to get sketches to upload, however on this older version your timing has to be more specific. I’ve had the most luck, holding the rest button, and then clicking the upload button on my computer then releasing the reset button.
Once you have the sketch uploaded, its time to load up ArduinoCommander on your android device. Assuming you’ve done the above correctly, you should be able to pair your device, and ArduinoCommander goes into full color pretty quickly. It will even indicate that you are using Firmata v2.1 at the top of the application.
Good luck and Happy Prototyping.