Arduino Projects

Fire Alert System Using Arduino & GSM

step by step guide for Fire Alert System Using Arduino

Introduction

In this article, we will guide you through the process of building a fire alert system using the Arduino and GSM modules. This system will provide real-time call and SMS alerts, ensuring the response is damaged. Fire accidents can have devastating consequences, making it crucial to have an efficient fire alert system in place.

Components Required

S.N

Component's

Quantity

Link to Buy

1

Arduino Nano

1

2

GSM module (SIM800l)

1

3

LM2596 Step Down Conveter

1

4

Flame Sensor

1

5

Red Led

1

6

Green Led

1

7

Zero PCB

1

8

9v Power Supply

1

Arduino Nano

  • The Arduino Nano has used an ATmega328P microcontroller chip.
  • The ATmega328P operates at a clock speed of 16 MHz.
  • Flash memory 32KB.
  • SRAM of 2KB.
  • 1KB of EEPROM.

Medicine Reminder With Arduino0

GSM module (SIM800l)

  • The GSM module is a compact device that enables communication over the GSM network. It uses a Subscriber Identity Module (SIM) card to establish a connection with the cellular network.

Components1 2

  • The SIM800L GSM module requires a stable and regulated power supply of around 3.7-4.2V.

LM2596 Step Down Conveter

  • LM2596 Step-Down Converter: The LM2596 is a popular step-down (buck) voltage regulator IC that can efficiently convert a higher input voltage to a lower, regulated output voltage. It is capable of handling input voltages higher than the desired output voltage, making it suitable for a wide range of power supply applications.

Components2

  • Voltage Regulation: The LM2596 Step Down Converter can regulate the output voltage using a potentiometer to set the desired voltage level.
  • Adjust the output voltage to match the required voltage range of the SIM800L GSM module (3.7-4.2V) by turning the potentiometer.

Flame Sensor

  • The working flame sensor, at the top, is a photodiode available and detects the fire. if the fire is detected the photodiode anode pin is high and is given to the signal of LM393 IC.

Flame Sensor 1

  • If the fire is detected The Digital value is LOW(0v) and if not detected any fire the output value is HIGH(5v) and the output pin is connected to any digital pin of a microcontroller like Arduino.
  • if you are more interested to know how the flame sensor work just go through the article.

IR Flame Sensor Pinout

The Flame Sensor typically has three pins: VCC, GND, and OUT.

  • VCC: The pin to connect to a positive terminal (5V).
  • GND: The pin to connect to a ground terminal (0V).
  • OUT: The pin to connect to a digital input pin of the microcontroller.
  • This pin outputs a digital signal (HIGH or LOW) based on the presence or absence of flames.

Circuit Diagram

circuit diagram 25

Arduino Nano

    • Connect the power (VCC) and ground (GND) pins of the Arduino Nano to the respective power and ground rails of the breadboard or power supply.
    • Connect pin 2 of the Arduino Nano to the RX pin of the GSM SIM800L module.
    • Connect pin 3 of the Arduino Nano to the TX pin of the GSM SIM800L module.
    • Connect pin 6 of the Arduino Nano to the signal pin of the fire sensor.
    • Connect pin 3 of the Arduino Nano to the LED for SMS indication.
    • Connect pin 4 of the Arduino Nano to the LED for call indication.

GSM SIM800L Module

    • Connect the power (3.7V for LM2596) and ground (GND) pins of the GSM SIM800L module to the respective power and ground rails of the breadboard or power supply.
    • Connect the TX pin of the GSM SIM800L module to pin 2 of the Arduino Nano.
    • Connect the RX pin of the GSM SIM800L module to pin 3 of the Arduino Nano.

Fire Sensor

    • Connect the VCC pin of the fire sensor to the power rail of the breadboard or power supply.
    • Connect the GND pin of the fire sensor to the ground rail of the breadboard or power supply.
    • Connect the signal pin of the fire sensor to pin 6 of the Arduino Nano.

LEDs

    • Connect the positive leg (anode) of the SMS LED to pin 3 of the Arduino Nano.
    • Connect the positive leg (anode) of the call LED to pin 4 of the Arduino Nano.
    • Connect the negative leg (cathode) of both LEDs.

Code

GitHub e1697076839430

Libraries and Definitions

The code includes the necessary libraries.

  • EEPROM.h
  • SoftwareSerial.h

Variable Declaration and Initialization

  • Various variables are declared to store the status of SMS and call functions.

Setup Function

    • Pin modes are set for the flame sensor input and LED outputs.
    • The initial SMS is sent to the specified phone number to indicate the start of the system.
    • The previous status of SMS and call functionalities is retrieved from EEPROM memory.

Loop Function

    • readSMS() the function is called to check for incoming SMS messages and process them.
    • The value of the flame sensor input is read.

send sms Function

    • This function is responsible for sending an SMS to the specified phone number.

callUp Function

    • This function is responsible for making a call to the specified phone number.
    • AT commands are sent to the GSM module to initiate the call to the recipient number.

read sms Function

    • This function is used to read incoming SMS messages.
    • It checks if the received SMS contains a specific keyword.

Video

Conclusion

Fire alert system using the Arduino Nano can significantly improve response times and reduce the damage caused by fire accidents. With real-time call and SMS alerts, emergency contacts can be immediately notified, allowing them to take prompt action.

More Arduino Tutorial

Prateek

Hi, Prateek Here I’m interested in Electronics That's why I Make Soo Many Projects, I’m currently Pursuing M Tech.. if you Relay Like To My Blog Plz Comment Below...Thanks To All Electronics Lover...❤️

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker