Introduction: AUTOMATIC FIRE EXTINGUISHER

  1. In this project I will show you how to create a Automatic Fire Extinguisher. The point of this project is to teach you basic Arduino skills and how to write relatively complex code in the Arduino IDE language.


Step 1: WHAT IS AN ARDUINO

So what is an Arduino? An Arduino is a small, cheap and portable micro controller that allows anyone to make interactive, useful and amazing products very easily. How do they work? Take the Arduino Uno for example, It uses a chip in the middle of the board called an ATmega 328 that has the ROM, RAM and memory all in one. Then the rest of the board 'ports out' the pins and allows you to connect Input and Output devices such as an LED or a push button.

Step 2: ABOUT THE PROJECT

What is the purpose of this project? This project can be used as a simple temperature display that for every 5 degree increase another LED lights up as and if temperature rises till last light then then the water pump will be automatically started will be fire extinguised and buzzer is seted so that it can alert the people. I will show you or it could be changed and modified into a more complex project than could become a smart thermostat by using an xbee and another arduino wired into your boiler. Or even better it could be used as a networked device in a home automation system. I may do another Instructable on this. Why should I follow your tutorial? Ever since I was very young I have been fascinated by electronics and how electronic devices work, I spent hours coming up with my own projects and couldn't really find any good tutorials out there for beginners so I decided I would make some to help others who are like me.

WHAT YOU WILL NEED FOR THIS PROJECT


3 green led
2 yellow led

3 orange led

3 red led

1 breadboard

1 Arduino Uno

1 LM35Temperature Sensor

15 jumper cables (male to male)

1 Buzzer

1 Water pump

Step 3:

YOU SHOULD USE THIS CODE FOR PROGARAMMING

float temp;
int tempPin = 0;

int pin2 = 2;

int pin3 = 3;

int pin4 = 4;

int pin5 = 5;

int pin7 = 7;

int pin8 = 8;

int pin9 = 9;

int pin10 = 10;

int pin11 = 11;

int pin12 = 12;

int pin13 = 13;

void setup()

{

pinMode(pin2, OUTPUT);

pinMode(pin3, OUTPUT);

pinMode(pin4, OUTPUT);

pinMode(pin5, OUTPUT);

pinMode(pin7, OUTPUT);

pinMode(pin8, OUTPUT);

pinMode(pin9, OUTPUT);

pinMode(pin10, OUTPUT);

pinMode(pin11, OUTPUT);

pinMode(pin12, OUTPUT);

pinMode(pin13, OUTPUT);

Serial.begin(9600);

}

void loop()

{

temp = analogRead(tempPin);

temp = (5.0 * temp * 100.0)/1024.0;

Serial.print(temp);

Serial.println();

if(temp>=25.00){digitalWrite(pin2,HIGH);}

if(temp>=30.00){digitalWrite(pin3,HIGH);}

if(temp>=35.00){digitalWrite(pin4,HIGH);}

if(temp>=40.00){digitalWrite(pin5,HIGH);}

if(temp>=45.00){digitalWrite(pin7,HIGH);}

if(temp>=50.00){digitalWrite(pin8,HIGH);}

if(temp>=55.00){digitalWrite(pin9,HIGH);}

if(temp>=60.00){digitalWrite(pin10,HIGH);}

if(temp>=65.00){digitalWrite(pin11,HIGH);}

if(temp>=70.00){digitalWrite(pin12,HIGH);}

if(temp>75.00){digitalWrite(pin13,HIGH);}

delay(4000);

digitalWrite(pin10,LOW);

digitalWrite(pin9,LOW);

digitalWrite(pin8,LOW);

digitalWrite(pin7,LOW);

digitalWrite(pin5,LOW);

digitalWrite(pin4,LOW);

digitalWrite(pin3,LOW);

digitalWrite(pin2,LOW);

delay(1);

}

Brave the Elements Contest

Participated in the
Brave the Elements Contest

Arduino All The Things! Contest

Participated in the
Arduino All The Things! Contest