smoke Detection in Home Automation with Arduino using IoT

Sandeep
5 min readJul 12, 2020

--

ABSTRACT :

Internet of things is used to connect existing network for physical world and computer based system. The Internet of Things is driven by an extension of the Internet through the consideration of physical items consolidated with a capacity to give more quick witted administrations to nature as more information gets to be accessible.

The introduced Fire alarm system is a real-time controlling system that explore the presence of smoke by a limit if the limit was crossed the smoke sensor alrets the fire and the buzzer will on and it send a message. This system used to develop this fire detection in Home Automation with Arduino Uno using IOT

INTRODUCTION :

The Internet of Things(iot) is a ever-growing network of natural items that feature an IP address for internet valency, and the communication that happen between these items and other Internet-enabled devices and systems.

Home automation is the use and control of home appliances remotely or automatically as well as fire detection. Fire is an unexpected event that could fetch a big loss of social assets and human life. To obviate this losses, several alarm systems have been evolved such as smoke detectors, temperature sensor based systems etc,

circuit connections

MAKING OF PROJECT

softwares used :-

Tinkercad,Thingspeak

SOFTWARE COMPONENTS:-

Arduino UNO, Temperature Sensor, Wifi Module, Buzzer,Resistors

system architecture

  • the gas sensor is connected with arduino, it collects the concentration of gases in the atmosphere ,generally the concetration of air is 85 if it detects more than 85 then buzzer tones
  • the arduino callects the value of smoke from smoke detector and it sends to thingspeak by a platform of wifimodule(ESP8266),the thingspeak collects the information and it sends a mail to the fire department

MODULE DESCRIPTION

A) smoke detector

A smoke is a device that senses smoke, typically as an indicator of fire. Commercial security devices issue a signal to a fire alarm control panel as part of a fire alarm system while household smoke detectors.And sends the detected value to the arduino.

A) arduino uno:-

The arduino uno is an open-source microcontroller board based on the Microchip ATmega328P microcontroller .it is used as a platform of storing and transfering information.

B) smoke detector

A smoke is a device that senses smoke, typically as an indicator of fire. Commercial security devices issue a signal to a fire alarm control panel as part of a fire alarm system while household smoke detectors.

C) wifi module(esp8266)

The ESP8266 single-chip device capable of connecting to WiFi and updates the sensor value to the website (here we used thingspeak).

D) buzzer

A buzzer is an audio signalling device .this buzzers when smoke is detected.

THE CODING OF TINKERCAD:-

Void setup() consists :

  • This function only runs once, after each powerup or reset of the Arduino board.
  • the Serial.begin() contains the baud rate which is required for speed of transmission. Here we have used 115200 so that the transmission becomes faster as it is a larger code.
  • AT+CWJAP -This is an AT command which is used to connect the wifi module to the server . Simulator WiFi is the WAN name (default WiFi in tinkercad) and it doesn’t have any password so that we didn’t mention anything between “”.
  • delay() function is used to reduce the traffic between the code.
  • Here by using pinMode() function A0 is defined as input and pin 7 is defined as output.

Void loop() consists :

  • Here , by using analogRead() the values are read by sensor.
  • AT+CIPSTART — Establish TCP connection or register UDP port and start a connection. Here 80 is the HTTP port number , api.thingspeak.com is the website to which the wifi module gets connected and sends value.
  • the len variable is intialized with 60 is the length of command which is send .
  • AT+CIPSEND -Set length of the data that will be sent.
  • if () function is used to buzz the piezo buzzer when the concentration is higher than the normal.i.e, when fire accident occurs or someone smoke
  • The AT+CIPCLOSE is used to close the TCP connection which is established.

THE SENSOR VALUES ARE PLOTTED IN THE FORM OF GREPH IN THINGSPEAK

TO SEND MAIL :

open thingSpeak → Apps →MATLAB Analysis → NEW

Now select Read channel to Trigger Email and then click create.

Now, make the following changes as shown in figure. You have to mention your channel and write key available on Thingspeak for data send and receive.

and now create a react to send mail immediately when smoke is detected.

Apps →React→ NEW and make the following changes and finally Save React.

The output of Smoke detector:-

COMPATIBILITY :-

in the modern era the quantity of brilliant home gadgets keep on rising various companies aretrying to make a product compatible and simple for those automations, for iot in-house devices the pathways like Arduino and Raspberry Pi are simple to utilize

COMPLEXITY :-

Complicated applications code can be difficult to understand. This makes it buggy and hard to test, purification, fix, maintain, and develop. A common part of this problem is one of the significance that make Arduino so easy to use for simple programs: the functions setup () and loop ()

FUTURE SCOPE:-

Sooner rather than later the InternThe smoke sensor MQ2 is used in this system to find the presence of smoke in the atmosphere ,by making the automations and upgrading of things from the base levels leads to become a smart homes and towns ,in this project The selection of the gas sensor(mq2) was made because of its high sensitivity for poisonous gas, long inductive time and long life span., logistic applications,

the presence of automatic fire &smoke detector is very useful to send the message to fire station to prevent the unnecessary fire accidents .

PROJECT LINK:-

https://www.tinkercad.com/things/1gliuw21VBc

--

--