Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

DIY Android controlled robot car

DIY Android controlled robot car

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

The post DIY Android controlled robot car appeared first on Gadgetronicx.

Read more Here







 

More Articles to Read

App note: EPIC: Electro-Pyrotechnic Initiator Chip Resistor
App note: EPIC: Electro-Pyrotechnic Initiator Chip Resistor
App note: Noise analysis for high-speed op amps
App note: Noise analysis for high-speed op amps
Skill Sunday: Arrays
Skill Sunday: Arrays
App note: Infrared remote control implementation with MSP430FR4xx
App note: Infrared remote control implementation with MSP430FR4xx
Gesture Controlled Smart Home
Gesture Controlled Smart Home
Design for a Wideband, Differential Transimpedance DAC Output
Design for a Wideband, Differential Transimpedance DAC Output
Wrist thrusters let you fly through the water effortlessly
Wrist thrusters let you fly through the water effortlessly
Bertan/Spellman 225-20R HV power supply teardown
Bertan/Spellman 225-20R HV power supply teardown
Blinking Christmas Lights
Blinking Christmas Lights
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adding an “extra sense” with rangefinders
Adding an “extra sense” with rangefinders
This wireless game controller looks like a rug
This wireless game controller looks like a rug
How to run your ESP8266 for years on a battery
How to run your ESP8266 for years on a battery
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Making beats on a tiny Arduino DJ controller
Making beats on a tiny Arduino DJ controller
Qinsi-QS5100 Sn63Pb37 solder profile
Qinsi-QS5100 Sn63Pb37 solder profile
Water Detection System
Water Detection System
Professional Hi-Fi 15W Tube Amplifier circuit
Professional Hi-Fi 15W Tube Amplifier circuit
This Arduino machine will judge how sick your ollies are
This Arduino machine will judge how sick your ollies are
Turn an old payphone into a boombox for ’90s hits
Turn an old payphone into a boombox for ’90s hits

Top


Shares