DIY Android controlled robot car

Share on FacebookShare on Google+Tweet about this on TwitterShare on RedditShare on StumbleUponPin on Pinterest

android-operated-wireless-robot

Smartphone operated appliances and applications are getting popular now a days since the increase in usage of smartphones and people likes to get things done using their smartphones. Here is we are going to see a similar smartphone based wireless robot car controlled by famous smartphone platform Android. These kind of systems can be widely used for surveillance and other tracking stuffs.

CIRCUIT DESIGN OF ANDROID CONTROLLED ROBOT CAR:

circuit-diagram-bluetooth-operated-robot

 

The above Circuit diagram shows the design of the robot car we are about to build. The design shows it uses a simple Bluetooth Module HC05 to establish connection with a Android smartphone. On the other hand a motor drive IC L293D was used to drive the motors of the car since Microcontroller cannot drive a motor directly. These two motors form the left and right wheel of the robot as shown in the picture.

PARTS REQUIRED:

NAMECOUNTLINK TO BUY
AT89C511
HC051Buy Here 
Android Mobile Phone1Buy here
DC motor2Buy here
Robot wheel2Buy here
Batteries1Buy here

HC05:

bluetooth-module-hc05

HC05 is a bluetooth serial transceiver which is capable of providing connection between devices through serial communication or UART protocol. This module consists of a TX and RX pins like we see in other UART enabled devices and through these pins the BT communication will take place.

ANDROID APPLICATION:

bluecontrol-android-app

Now the robot part is ready and we need to set up our android phone to control the robot we build. For that we need to install a specific application that could transmit bytes of data serially through bluetooth. This in turn received by the controller via BT and move according to the command given by the smartphone. Here we are using an application called “Bluecontrol” which is provided with Graphical interfaces like buttons which will transmit a specific character to Microcontroller via Bluetooth. For example if i press the Up arrow it transmits the character ‘U’ to the Mc which will be programmed to make the robot move forward then. You can download this Bluecontrol application in Google play.

CODE :

#include<reg52.h>
sbit motor_pin_1 = P1^0;
sbit motor_pin_2 = P1^1;
sbit motor_pin_3 = P1^2;
sbit motor_pin_4 = P1^3;
unsigned char c;
void main()
{
P1=0x00; //set Port 1 to low
TMOD=0X20;
TH1=0XFD;
TL1=0X00;
SCON=0X50;
TR1=1;
while(1)
{
while(RI==0);
c=SBUF;
RI=0;
if(c=='U')      //move forward
{
motor_pin_1 = 1;
motor_pin_2 = 0;
motor_pin_3 = 1;
motor_pin_4 = 0;
}
else if (c=='D')     //move backward
{
motor_pin_1 = 0;
motor_pin_2 = 1;
motor_pin_3 = 0;
motor_pin_4 = 1;
}
else if (c=='R')
{
motor_pin_1 = 1;
motor_pin_2 = 0;
motor_pin_3 = 0;
motor_pin_4 = 0;
}
else if (c=='L')
{
motor_pin_1 = 0;
motor_pin_2 = 0;
motor_pin_3 = 1;
motor_pin_4 = 0;
}
else if (c=='C')
P1=0x00; // motor stop
}
}

WORKING VIDEO:

Related Designs and Schematics

Share on FacebookShare on Google+Tweet about this on TwitterShare on RedditShare on StumbleUponPin on Pinterest
The following two tabs change content below.
Murugan Bala
I'm an electronics enthusiast, I have a master's degree in Electronics and communication engineering (ECE) from the christ college of engineeering ,pondicherry universityI love to explain things in simple ways

Ask your query

11 Comments on "DIY Android controlled robot car"

Notify of
avatar
Sort by:   newest | oldest | most voted
Harima
Guest

how do i program the microcontroller ?what app should I use?help me please admin..

Frank Donald
Admin

Harima,
We have used Keil software for the coding.

Harima
Guest

Hi Admin ,can i have the source file,tsk

PARITOSH
Guest

dear sir,
can you tell me to simulate this program in protius ,
best regard,
PARITOSH KUMAR
email id;- paritoshkumar0001@gmail.com

akhilesh
Guest

do i need to program the bluetooth module to connect it to 8051 microcontroller?

Frank Donald
Admin

Hi Akhilesh,

The BT module will be controlled using your MCU. It cannot be programmed.

akhilesh
Guest

can you please send me program source file for 8051?
at this address
akhilemaurya@gmail.com

Harima
Guest

sir.can i have the assembly programming code for 8051…i donno how to write c code..im good at assembly..can u send me the code to my email.
harimakenjiutawa@gmail.com

Frank Donald
Admin

Hi Harima,
We don’t have the assembly code.

deepak
Guest

sir.can i have the assembly programming code for 8051…i donno how to write c code..im good at assembly..can u send me the code to my email.

gunadeepak.143@gmail.com

muddasir
Guest

can u send source file of project at atmega16 at muddasirminhas@gmail.com…plzzz

wpDiscuz