DIY Android controlled robot car

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:

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:

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.

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


13 Comments

  1. Meet

    Can't download app

    Reply
    1. Frank Donald Frank Donald

      Hi Meet,

      Unfortunately the above app is removed from the Playstore.Alternatively you can try other Bluetooth control apps from playstore.

      Reply
  2. Harima

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

    Reply
    1. Frank Donald Frank Donald

      Harima,
      We have used Keil software for the coding.

      Reply
  3. Harima

    Hi Admin ,can i have the source file,tsk

    Reply
  4. PARITOSH

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

    Reply
  5. akhilesh

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

    Reply
    1. Frank Donald Frank Donald

      Hi Akhilesh,

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

      Reply
  6. akhilesh

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

    Reply
  7. Harima

    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

    Reply
    1. Frank Donald Frank Donald

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

      Reply
  8. deepak

    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

    Reply
  9. muddasir

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

    Reply

Leave a Comment

Your email address will not be published.Required fields are marked*

Baidu
map