Vous êtes sur la page 1sur 15

MPI Lab Project Final report

Android Mobile Bluetooth


Controlled Fire Fighting Robot

Submitted by:-

Hassan Tariq Majeed

Ali Hassan Khan

Submitted to:-

Miss Fazeelat Mazhar

Department of Electrical Engineering

FAST National University of Computer & Emerging Sciences

Chiniot Faisalabad Campus

1
Objectives:-
To build a fire fighting robot who respond and work quickly in emergency
conditions.
Water Flow through wireless RF technology.
Movement of the Robot in all directions.

Description:-
This project is designed to develop a fire fighting robot using Bluetooth module for
remote operation. The robotic vehicle is loaded with water tank and a water tank, which is
controlled over wireless communication to throw water. When the robot faces a fire then it
extinguishes fire with the help of pump motor connected to a water tank mounted on its body.

Block Diagram:-

2
Circuit Diagram:-

Components:-
Bluetooth Module
Decoder
8051 Microcontroller
Batteries
Motor Driver L293d
Dc Motor
Android App
Resistors
Capacitors
Xeltex Universal Burner

3
Working:-
There are several possibilities a fire can start in any remote area or in an industry.
For instance, in garments, cotton mills, fuel storages electric leakages will result in immense
harm. Also, its a worst case scenario, causing heavy losses not only financially, but also
conjointly destroying areas surrounding it. Robotics is the rising answer to guard the human
lives, wealth and surroundings. A Firefighting robot is designed and built will be designed with
an embedded system. It should be able to separately navigate through a modeled floor plan,
whereas actively scanning for a flame. The robot will even act as a path guide in normal case
associated as a fireplace device in an emergency

The intention of this project is to design a fire fighting robot using android application
for remote operation. The fire fighting robot includes a water tanker, that is used to pump the
water on fire and it is controlled over wireless communication.

The main goal of this project is to design a fire fighting robot using Bluetooth technology for
remote operation. This robot is loaded with a water tanker with a pump which is controlled over
wireless communication to sprinkle water. For the desired operation, an 8051 MC is used. At the
transmitter end, Android app is used to send commands to the receiver end to control the robot
movement, either to forward, backward &right or left. The mobile phone acts as Bluetooth
remote control that has the benefit of adequate range up to 10 meters with apposite antenna,
while the decoder decode before feeding it to another microcontroller to drive DC motors via
motor driver IC for necessary work. A water tank with pump is placed on the robot body and its
operation is carried out from the microcontroller o/p through the proper signal from the
transmitting end. The entire operation is controlled by a microcontroller. A motor driver IC is
interfaced to the microcontroller through which the controller drives the motor.

Code:-

#include<reg51.h>

sbit output=P1^0;

sbit m1p = P2^0; // Motor 1 positive P2.0

sbit m1n = P2^1; // Motor 1 negative P2.1

sbit m2p = P2^2; // Motor 2 positive P2.2

sbit m2n = P2^3; // Motor 2 negative P2.3

4
sbit m3p = P2^4; // Motor 3 positive P2.4

sbit m3n = P2^5; // Motor 3 negative P2.5

sbit m4p = P2^6; // Motor 4 positive P2.6

sbit m4n = P2^7; // Motor 4 negative P2.7

sbit pumpp=P1^1; // Motor 5 (Pump)

/////////////////////////////

void forward(); //Move Forward

void backward(); //Move Backword

void left(); //Move Left

void right(); //Move Right

void stop(); //Stop All Motors, Pump, Servo

void up(); //Rotat servo in clockwise

void down(); //Rotat servo in anticlockwise

void on();

void off();

void start_pump(); //Pump On

void stop_pump(); //Pump Off

unsigned char password();

unsigned char n=13;

void msdelay(unsigned int time) // Function for creating delay in milliseconds.

unsigned i,j ;

for(i=0;i<time;i++)

for(j=0;j<1275;j++);

5
void servo_delay(unsigned char times) // Creating Delay in multilple of 50us using 8051 Timers

int m;

for(m=0;m<times;m++)

TH0=0xFF;

TL0=0xD2;

TR0=1;

while(TF0==0);

TF0=0;

TR0=0;

//////////////////////

void main()

unsigned char mybyte;

unsigned char flag=1;

TMOD=0x21; //use Timer 1, mode 2

TH1=0xFD; //9600 baud rate

SCON=0x50;

TR1=1; //start timer

output=0;

stop();

while(flag==1)

6
{

flag=password();

SBUF='A';

while(TI==0);

TI=0;

while (1)

while (RI==0); //wait to receive

mybyte=SBUF; //save value

RI=0;

if(mybyte=='F')

forward();

else if(mybyte=='B')

backward();

else if(mybyte=='L')

left();

else if(mybyte=='R')

right();

else if(mybyte=='U')

stop();

up();

else if(mybyte=='D')

7
{

stop();

down();

else if(mybyte=='S')

stop();

start_pump();

else if(mybyte=='T')

stop();

stop_pump();

else

stop();

mybyte=0;

unsigned char password()

unsigned char mybyte;

unsigned char s;

unsigned char c=6;

while (RI==0); //wait to receive

8
mybyte=SBUF; //save value

RI=0;

s=mybyte;

if(s=='A')

while (RI==0); //wait to receive

mybyte=SBUF; //save value

RI=0;

s=mybyte;

if(s=='L')

while (RI==0); //wait to receive

mybyte=SBUF; //save value

RI=0;

s=mybyte;

if(s=='I')

return 0;

else

return 1;

else

return 1;

9
else

return 1;

void start_pump()

pumpp=1;

void stop_pump()

pumpp=0;

void up()

n++;

if(n==29)

n=13;

output=1;

servo_delay(n);

output=0;

servo_delay(260);

msdelay(200);

void down()

n--;

10
if(n==12)

n=28;

output=1;

servo_delay(n);

output=0;

servo_delay(260);

msdelay(200);

void forward() // Robot forwarding function

m1p = 1;

m2p = 1;

m3p = 1;

m4p = 1;

m1n = 0;

m2n = 0;

m3n = 0;

m4n = 0;

void backward() // Robot backward function

m1p = 0;

m2p = 0;

m3p = 0;

m4p = 0;

11
m1n = 1;

m2n = 1;

m3n = 1;

m4n = 1;

void left() // Robot left turning function

m1p = 1;

m1n = 0;

m2p = 1;

m2n = 0;

m3p = 0;

m3n = 1;

m4p = 0;

m4n = 1;

void right() // Robot right turning function

m1p = 0;

m1n = 1;

m2p = 0;

m2n = 1;

m3p = 1;

m3n = 0;

m4p = 1;

12
m4n = 0;

void stop() // Robot stop function

m1p = 0;

m1n = 0;

m2p = 0;

m2n = 0;

m3p = 0;

m3n = 0;

m4p = 0;

m4n = 0;

pumpp=0;

13
Hardware Circuit Diagram:-

Advantages:-

Capability of sensing accurately.


Not sensitive to light.
Not weather sensitive.
Reduce human effort and reliable.

14
Disadvantages:-

High Cost
Communication devices mostly use similar frequency, so interference
occurs if the address is not specified.
It cannot be work beyond limit.
It is not used to put in large fires.

Future Scope:-

Camera and video transmission can be added.


Improve weight capacity of robot.
Use RF modules to increase the range of motion of robot.

Cost:-
The cost of this project is around Rs 3000 only.

15

Vous aimerez peut-être aussi