Anda di halaman 1dari 6

Automatic Fire Control System using GSM & Microcontroller

Sharmila.S,Swetha.S
ECE Department,Anna University
Easwari Engineering College
Bharathi Salai,Ramapuram,
Chennai-600089
login2sharmila@gmail.com
swethasankar91@gmail.com

Abstract 8. Dc Motor

Aim.
Keywords.
Designing Automatic Fire Control System using GSM and
Microcontroller. Project is used for intimating and controlling fire Accident
in industry / office/ Home immediately after the fire break out
Description. without any delay by sending SMS using GSM MODEM and
pumping water.
This project is used for intimating and controlling fire in Fully Automated using Microcontroller.
industries / offices/Home immediately after the fire break out GSM technique is employed.
without any delay. As soon as fire breaks out the sensor
detects the fire and sends a message to the programmed
number ( can be the control room of the industry,a nearby fire Introduction.
station , ambulance etc., ). It helps the fire service to arrive
to the spot immediately without any delay thus saving lives The security of home, laboratory, office, factory and
and property. Then it moves to the fire sensed place and building is important to human life .Most of the accidents
pumps water so that it can keep the fire under control till the can be stopped from causing severe damage when the
fire service reachs the place. appropriate service is Sought without delay. Fire can be
brought to control if the control room is intimated
Working Principle. immediately about the break out without any delay.
Manual work always take more time. Hence we use a
system with light sensor which can sense the FIRE
The device is placed in production units, canteens, immediately once the fire breaks out and it
manufacturing units, inside the office rooms etc.. When fire spontaneously sends a SMS message to the control room
breaks out the sensor senses the fire , automatically sends the of the industry or company and to the fire station using
message “ fire fire-location/address” to the control room or GSM technology.
to the nearby fire station using GSM technology. For sending
the message we use a GSM modem RS232 SERIAL
Background Of the Project .
COMMUNICATION, through microcontroller to perform
these operations.Then it moves to the fire sensed place to
pump the water. In this project the robot senses the FIRE with the help of
light sensor placed in the device. +12V battery is used to
supply voltage. Microcontroller can work only with +5V.
Hardware Requirement. Hence IC 7805 is used to convert +12V to +5V.Max
232CPE is used to convert the 5V to TTL. RS232 is used
1. PIC 16F877A Micro Controller for serial communication and it is connected to the
2. IC232CPE modem through which message is sent through the GSM
3. RS-232 Interface. modem.
4. A Modem
5. +5V Power Supply Components Motor Driver IC L293D.
6. FIRE SENSOR. The L293 and L293D are quadruple high-current drivers.
7. Water Pump The L293 is designed to provide bidirectional drive
currents of up to 1 A at voltages from 4.5 V to 36 V. The
L293D is designed to provide bidirectional drive currents • It is 8-bit Microcontroller
of up to 600-mA at voltages from 4.5 V to 36v. The pin • System is RISC Architecture
numbers 3 and 6 are connected to one motor while the • It has 35-Instructions only
pins 11 and 14 are connected to the other motor. The • Compatibility: avail 28/40 Pin ICs
power supply to the motors is also given through the
• Operating Speed Max 20 MHz, Voltage-(2-5.5V).
motor driver IC. The pins 1,2,5,7 are enable pin.

Fire Sensor. Features of Microcontroller.

• It has 5 Ports for Internal and External usage


Fire sensor comes with IR receiver. This IR receiver will • It has on chip Timers. 3 Timers are avail
give output based on the fire. The output of IR receiver is • It has in built Analog to Digital Converter
connected to instrumentation amplifier to amplify the • In built Multiplexer availability for signal Selection
signal. And the instrumentation amplifier output is given • It has serial as well as Parallel Communication
to comparator finally comparator output is connect to I/O facilities
port of PIC 16F877A micro controller. According to • In built Capture, Compare and Pulse width
changes in the light intensity the fire sensor IR receiver modulation
will give analog voltage. The sensing range of the fire
sensor is up to half meter. This IR Receiver output Program.
voltage is amplified through instrumentation amplifier
and is compared. According to sensor voltage the void main()
comparator will give output. This final output is {
connected to micro controller. trisc=0x00; // PORC OUTPUT FOR SMS TRANSMIT
trisa=0x00; // PORTA AS OUTPUT FOR MOTOR
Power Supply. DRIVE
porta =0x20;
Voltage regulators comprise a class of widely used ICs. //OPTION_REG =0x80;
The series 78 regulators provide fixed positive regulated ccp1con = 0x00;
voltages from 5 to 24 volts. A fixed three-terminal trisc = 0x00; // SMS TRANSMIT TO GSM MODEM
voltage regulator has an unregulated dc input voltage, Vi, AS OUTPUT
applied to one input terminal, a regulated dc output trisd = 0xFF; // PORTD AS INPUT FOR FIRE
voltage, Vo, from a second terminal, with the third SENSOR
terminal connected to ground. trise = 0x00; // control for lcd
• For ICs, microcontroller, LCD 5 DC volts trisb = 0x00; // data bits fOR LCD
• For sensor, motors 12 DC volts trisa = 0x00; //
trise = 0x00;
bit_clear(porte,2); // to select command register
GSM Technology. delay_ms(150);
lcdcmd(0x38); // 2 lines and 5x7 matrix
GSM (Global System for Mobile Communications: delay_ms(150);
originally from Group Special Mobile) is the world's most lcdcmd(0x0E); // display on cursor blinking
popular standard for mobile telephony systems. delay_ms(15);
Subscribers can use their phones throughout the world, lcdcmd(0x01); // clear display
enabled by international roaming arrangements between delay_ms(15);
mobile network operators. GSM differs from its //lcdcmd(0x01);
predecessor technologies in that both signaling and //delay_ms(15);
speech channels are digital, and thus GSM is considered a lcdcmd(0x06); // increment cursor
second generation (2G) mobile phone system. This also delay_ms(15);
facilitates the wide-spread implementation of data lcdcmd(0x80); // display first line FIRST COLUMN
communication applications into the system.GSM also delay_ms(15);
pioneered low-cost implementation of the short message lcddata ('F');
service (SMS), also called text messaging, which has delay_ms(15);
since been supported on other mobile phone standards as lcddata('I');
well. delay_ms(15);
lcddata ('R');
Micro controller. delay_ms(15);
lcddata ('E'); set_tris_c(0xC0); //SET TX_PIN & CLEAR
delay_ms(15); RC_PIN;
lcddata ('R'); set_tris_b(0x00);
delay_ms(15); printf("AT\r\n"); //CHECK WHETHER
lcddata('O'); COMMUNICATION IS ESTABLISHED
delay_ms(15); delay_ms(1000);
lcddata ('B'); printf("ATE0\r\n"); //ECHO OFF
delay_ms(15); delay_ms(1000);
lcddata ('O'); printf("AT+CMGF=1\r\n"); // SWITCH TO TEXT
delay_ms(15); MODE
lcddata ('T'); delay_ms(1000);
delay_ms(15); printf("AT+CMGS=\"+919841604007\"\r\n"); //SEND
trisd=0xFF; SMS TO THE MOBILE NUMBER
x=portd; // X BECOME PORTD CONTENT delay_ms(1000);
while(1) printf("FIRE AT production fire \r\n",v);
{trisa = 0x00; delay_ms(1000);
porta = 0x20; //printf("AT\r\n");
trisd = 0xff; printf(v);
x= portd; putc(0x1A);
trisc = 0x00; putc(0xE5);
portc = 0x00; //delay_ms(500);
if ( x==0xFD) // printf("%x",v);
{porta = 0x00; putc(0X1A);
bit_clear(porte,2); // to select command register trisa = 0x00;
delay_ms(150); porta = 0x01; // ROBOT TURN RIGHT DIRECTION
lcdcmd(0x38); // 2 lines and 5x7 matrix delay_ms(5000);
delay_ms(150); porta = 0x00;
lcdcmd(0x0E); // display on cursor blinking delay_ms(100);
delay_ms(15); porta = 0x05; // BUZZER ON AND ROBOT MOVE
lcdcmd(0x01); // clear display FORWARD DIRECTION
delay_ms(15); delay_ms(2800);
//lcdcmd(0x01); porta = 0x00;
//delay_ms(15); delay_ms(300);
lcdcmd(0x06); // increment cursor porta = 0x01;
delay_ms(15); delay_ms(1000);
lcdcmd(0x80); // display first line porta = 0x30; //WATER PUMP MOTOR ON BY
delay_ms(15); SWITCHING THE RELAY
lcddata ('P'); delay_ms(5000);
delay_ms(15); porta = 0x00; // WATER PUMP MOTOR WILL STOP
lcddata('R'); delay_ms(100);
delay_ms(15); porta = 0x01;
lcddata ('O'); delay_ms(3500);
delay_ms(15); porta = 0x05;
lcddata ('D'); delay_ms(2200);
delay_ms(15); porta = 0x20; //ROBOT REACH THE STARTING
lcddata ('U'); PLACE
delay_ms(15); x=0x00;}
lcddata('T'); else if( x==0xFE)
delay_ms(15); {
lcddata ('I'); trisa = 0x00;
delay_ms(15); porta = 0x00;
lcddata ('O'); v = 0x1A;
delay_ms(15); i=5;
lcddata ('N'); set_tris_c(0xC0); //SET TX_PIN & CLEAR RC_PIN;
delay_ms(15); set_tris_b(0x00);
v = 0x1A; printf("AT\r\n");
i=5; delay_ms(1000);
printf("ATE0\r\n"); porta = 0x05;
delay_ms(1000); delay_ms(1800);
printf("AT+CMGF=1\r\n"); porta = 0x00;
delay_ms(1000); delay_ms(100);
printf("AT+CMGS=\"+919841604007\"\r\n"); // porta = 0x2A;
delay_ms(1000); // delay_ms(1700);
printf("FIRE AT OFFICE fire \r\n",v); porta = 0x20;
delay_ms(1000); x=0x00;
//printf("AT\r\n"); }
printf(v); }
putc(0x1A); }
putc(0xE5); Summary Of the Project.
//delay_ms(500);
// printf("%x",v); The basic idea is to automatically intimate the control room
putc(0X1A); about the break out of fire in their units without any delay.
delay_ms(150); Fire sensor will give appropriate analog voltages to the
lcdcmd(0x38); // 2 lines and 5x7 matrix microcontroller immediately after the fire is sensed. Then the
delay_ms(150); microcontroller sends the message “Fire Fire-Address ” to the
lcdcmd(0x0E); // display on cursor blinking preprogrammed mobile/phone number.
delay_ms(15);
lcdcmd(0x01); // clear display .
delay_ms(15);
//lcdcmd(0x01);
//delay_ms(15);
lcdcmd(0x06); // increment cursor
delay_ms(15);
lcdcmd(0x86); // display first line
delay_ms(15);
lcddata ('O');
delay_ms(15);
lcddata('F');
delay_ms(15);
lcddata ('F');
delay_ms(15); Fig.1 Block diagram of Automatic Fire Control System
lcddata ('I');
delay_ms(15);
lcddata ('C');
.
delay_ms(15);
lcddata('E');
delay_ms(15);
trisa = 0x00;
porta = 0x01;
delay_ms(2350);
porta = 0x00;
delay_ms(100);
porta = 0x25;
delay_ms(1800);
porta = 0x00;
delay_ms(300);
porta = 0x30;
delay_ms(5000);
porta = 0x00;
delay_ms(100);
Fig. 2 Circuit Diagram of Sensors
porta = 0x01;
delay_ms(4500);
porta = 0x00;
delay_ms(100);
Fig 3 PIC16F877A Micro Controller

Fig .6 Automatic Fire Control System using GSM & μC

Fig. 4. Pin Diagram of PIC16F877A

Fig 7 Motor Driver L293D

TABLE 1. M emory

Flash Program 8Kx14 Words

RAM 368 Bytes,

EEPROM Data 256 Bytes


Fig. 5. GSM Modem
I take immense pleasure in thanking my institution for their
guidance and support for my project on “Automatic Fire
Control System using GSM & Microcontroller”.

REFERENCES

Thus this project is used for intimating and controlling 1. Douglas V Hall, “Microprocessor and interfacing,
fire in industry / office/Home immediately after the fire programming and hardware” TMH, 2006
break out without any delay. Since manual work always 2. Muhammad Ali Mazidi, Janice Gillispie Mazidi,
take more time, automation is the smarter way of Rolin D.MCKinlay The 8051
handling FIRE BREAK OUTS.. 3. Microcontroller and Embedded Systems, Second
Edition, Pearson Education 2008.
4. Kenneth J. Ayala, “The 8086 Microprocessor:
ACKNOWLEDGMENT Programming & Interfacing The PC”, Delmar
Publishers, 2007.
5. A K Ray, K M Bhurchandi, Advanced
Microprocessors and Peripherals, TMH, 2007.

Anda mungkin juga menyukai