Having recently bought an Android phone, I thought it would be a nice endeavour to control a robot with such a device.
Android being open-source, attracts a large following, and hence there are many different ready-made solutions that can be hacked into.
- 8051-based robot “Robo-51″
App Inventor Code
The code is based on BennyBlue made with App Inventor. After being able to control the robot you will need to download the file Bluemote_1_0_a.zip (check the end of the article under the heading Update) that you need to upload in App Inventor’s Invent to see the full code and to compile the apk application for your Android device. For absolute beginners the excellent resources and tutorials found in App Inventor Explore, are very good and easy to follow.
The control program
The Android application controls Robo-51 from Inex, with the commands:
Key letter “d” foward, “a” backwards, “c” turn leftwards, “b” turn rightwards and “s” stop. The following image shows how the application looks like in my Android device(with new update – check at the end of the post under Update):
Before running the application you will need to pair the serial device on Robo-51 with your Android’s bluetooth. On connecting with the robot, you will hear “I’m robo-51… I’m at your command!”. On controlling the robot, you will hear in your Android device “forward”, “backward”, “turning left” etc.
This project adds into existing projects in this blog, with Robo-51 and bluetooth serial control. The main aim of this project was to achieve, with little work, similar results to those obtained with Java-based Nokia N97 and Blackberry Bold 9700. Effectively I can tick this project as successful.