Android controlled robot via bluetooth

Introduction

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.

Required equipment

A 8051 robot “Robo-51” (could be a robot with any other micrcontroller) with ZX-Bluetooth module, running a firmware for bluetooth control, and an account with App Inventor.

Robo-51
8051-based robot “Robo-51″
Serial bluetooth module “ZX-Bluetooth”

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):

New screenAndroid Screen of Bluemote Application

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.

Conclusion

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.

——————————————

Update

The layout has been improved as can be screen on the image above . The new source file is Bluemote_1_0_a.zip, kept at Bitbucket, an unlimited free private repositories’ site.

Advertisements

About Tayeb

Electronics engineer, part-time webmaster and owner of "Aliatron", a tech-oriented company registered in Portugal and Mozambique.
This entry was posted in Mobile Apps, Programming, Robotic Projects and tagged , , , , , , , . Bookmark the permalink.

2 Responses to Android controlled robot via bluetooth

  1. Pingback: Android Basic Gestures of Swipe to Control a Robot | RedAcacia

  2. chinna says:

    Iam doing same project but blutooth controlled solar powered robot. working on atmega8.I need details about android controlling robot via bluetooth.how to develop application for it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s