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:
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:
NAME | COUNT | LINK TO BUY |
AT89C51 | 1 | – |
HC05 | 1 | Buy Here |
Android Mobile Phone | 1 | Buy here |
DC motor | 2 | Buy here |
Robot wheel | 2 | Buy here |
Batteries | 1 | Buy here |
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:
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.
UPDATE: Unfortunately the above mentioned app is removed from the Playstore. However there are plenty of free apps in Playstore which will do the job for this application.
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 } }
Can’t download app
Hi Meet,
Unfortunately the above app is removed from the Playstore. Alternatively you can try other Bluetooth control apps from playstore.
how do i program the microcontroller ?what app should I use?help me please admin..
Harima,
We have used Keil software for the coding.
Hi Admin ,can i have the source file,tsk
dear sir,
can you tell me to simulate this program in protius ,
best regard,
PARITOSH KUMAR
email id;- paritoshkumar0001@gmail.com
do i need to program the bluetooth module to connect it to 8051 microcontroller?
Hi Akhilesh,
The BT module will be controlled using your MCU. It cannot be programmed.
can you please send me program source file for 8051?
at this address
akhilemaurya@gmail.com
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
Hi Harima,
We don’t have the assembly code.
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
can u send source file of project at atmega16 at muddasirminhas@gmail.com…plzzz