Introduction: Fire Alarm System

Note: My English language is not good enough. I can read and understand but I do not speak much.

Sorry ;)

Step 1: Materials for Project

We will do a fire alarm system in our project. So let's start!

Here is what you need to make a fire alarm system:

  • Arduino ( I had the Arduino Uno)
  • lm35 Temperature Sensor
  • 3 Leds (Different Colors)
  • Buzzer
  • Cables (Jumper Cables)
  • USB Cable for connection to PC

You just need this materials. And we're ready for the next step; connection.

Step 2: How Can We Establish a Connection?

First of all, we keep together all this materials. And we are ready to begin.

  • led red; pin 2
  • led yellow; pin 3
  • led green; pin 4
  • Buzzers inputs brought an input plus pole and another input negative pole.
  • The sensor is also connected in a similar manner. But the middle sensor input brought pin A0 or Anolog 0.

And we established a connection with all this materials. Next step is Fire Alarm System Projects Code.

note for this code; "void_t" fonction is for buzzers working.

led_k=red, led_s=yellow, led_y=green

int led_k = 2;
int led_s = 3; int led_y = 4;

void setup() { Serial.begin(9600); pinMode (led_y, OUTPUT); pinMode (led_s, OUTPUT); pinMode (led_k, OUTPUT); } void loop() { float temp = (5.0 * analogRead(A0) * 100.0) / 1024; if(temp>30) { digitalWrite (led_y, LOW); digitalWrite (led_k, HIGH); digitalWrite (led_s, LOW); t(); } else { if(temp>26) { digitalWrite (led_y, LOW); digitalWrite (led_k, LOW); digitalWrite (led_s, HIGH); t1(); } if(temp<26); { digitalWrite (led_y, HIGH); digitalWrite (led_k, LOW); digitalWrite (led_s, LOW); noTone(7); } Serial.print ("Temperature Value: ");

Serial.print (temp); delay(500); } } void t() { tone(7, 494, 500); delay(1000); } void t1() { tone(7, 494, 500); delay(2000); }

Comments

author
amberrayh (author)2015-06-10

This is an interesting project. Thank you for sharing!

author
rabiadelpueblo (author)amberrayh2015-06-11

thanks for comment. I also upragede this project with arduino robot. coming soon!

author
surajr14 (author)rabiadelpueblo2015-12-17

Hey I tried to do this project but for some reason it isn't working.....I followed the circuit diagram n put it together properly (I Checked 5 times). I also copied your code but it aint working. Only the green led is glowing all the time.

author
JohnS304 (author)2015-10-13

A fire alarm system is responsible for regulating an entire system of fire alarm modules within a building and can operate through mechanical or electronic activation.