The project aims in designing a Robot that can be operated using Android mobile phone. The controlling of the Robot is done wirelessly through Android smart phone using the Bluetooth feature present in it. Here in the project the Android smart phone is used as a remote control for operating the Robot. . This isa Fire Fighting Robot which is used for prevent our houses, offices and shops fromFire. . It will find the existence of fire using IR sensor and when the fire is detected by robot ,it will try to fight with fire using water pump.
Android is a
software stack for mobile devices that includes an operating system, middleware
and key applications. Android boasts a healthy array of connectivity options,
including Wi-Fi, Bluetooth, and wireless data over a cellular connection (for
example, GPRS, EDGE (Enhanced Data rates for GSM Evolution), and 3G). Android
provides access to a wide range of useful libraries and tools that can be used
to build rich applications. In addition, Android includes a full set of tools
that have been built from the ground up alongside the platform providing
developers with high productivity and deep insight into their applications.
Bluetooth is an
open standard specification for a radio frequency (RF)-based, short-range
connectivity technology that promises to change the face of computing and
wireless communication. It is designed to be an inexpensive, wireless
networking system for all classes of portable devices, such as laptops, PDAs
(personal digital assistants), and mobile phones. It also will enable wireless
connections for desktop computers, making connections between monitors,
printers, keyboards, and the CPU cable-free. The controlling device of the
whole system is a Microcontroller. Bluetooth module, DC motors are interfaced
to the Microcontroller. The data received by the Bluetooth module from Android
smart phone is fed as input to the controller. The controller acts accordingly
on the DC motors of the Robot. The robot in the project can be made to move in
all the four directions using the Android phone. The direction of the robot is
indicated using LED indicators of the Robot system. In achieving the task the
controller is loaded with a program written using Embedded ‘C’ language.
BLOCK DIAGRAM
CIRCUIT DIAGRAM
PROGRAM
void setup()
{
pinMode(13,OUTPUT);
Serial.begin(9600);
pinMode(5,
OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
}
void loop()
{
if
(Serial.available() > 0)
{
int
b=analogRead(A5);
int
c=analogRead(A4);
char a
=Serial.read();
if((b>995)||(c>995))
{
digitalWrite(13,HIGH);
delay(2000);
digitalWrite(13,LOW);
}
else if(a=='F')
{
FRD();
}
else if(a=='B')
{
BACK();
}
else if(a=='R')
{
RIGHT();
}
else if(a=='L')
{
LEFT();
}
else
{
STOP();
}
}
}
void FRD(void)
{
digitalWrite(5,HIGH);
digitalWrite(6,LOW); digitalWrite(7,HIGH); digitalWrite(8,LOW);
}
void BACK(void)
{
digitalWrite(5,LOW);
digitalWrite(6,HIGH); digitalWrite(7,LOW); digitalWrite(8,HIGH);
}
void RIGHT(void)
{
digitalWrite(5,HIGH);
digitalWrite(6,LOW); digitalWrite(7,LOW); digitalWrite(8,LOW);
}
void LEFT(void)
{
digitalWrite(5,LOW);
digitalWrite(6,LOW); digitalWrite(7,HIGH); digitalWrite(8,LOW);
}
void STOP(void)
{
digitalWrite(5,LOW);
digitalWrite(6,LOW); digitalWrite(7,LOW); digitalWrite(8,LOW);
}
PCB LAYOUT