(1) HOW CAN THE SMART FIRE DETECTION BE USED ?
Read moreThe owners of clothing and plastic industries in Kolkata usually face frequent fires in their industry, so in order to prevent this and take quick actions this fire detection system can be useful.
Link to the recent fire in Kolkata
FUNCTIONALITIES OF THE PROJECT
- The project senses if there is fire via the LM35 Temperature Sensor
- On sensing fire it sends mail and a sms to the user.
- This functionality can be extended by sending alerts to the Fire Department
For safety reasons I have kept the limit of the temperature as twenty eight degree celsius.
(3) ABSTRACT OF THE PROJECT- The LM35 Temperature sensor, senses the value and the value is read via the analog pin A0 of the Bolt Wifi Module.
- Threshold value of the temperature can be set using this line in the code.
maximum_limit = 28.0
- The temperature sensed is converted to celsius for better understanding using the following link of the code.
temp = (100*sensor_value)/1024
- If the temperature exceeds the threshold temperature the user get a sms and an alert mail.
Circuit Diagram :
LM35- Temperature Sensor
- Positive Leg(Green Wire) -- 5V
- Output Leg(Yellow Wire) -- A0
- Ground(Orange Wire) -- GND
Buzzer
- Positive/Longer Leg(Blue Wire) -- GPIO 2 Through 10k Ohm Resister
- Negative/Shorter Leg(Purple Wire) -- GND
LED
- Positive/Longer Leg(Black Wire) -- GPIO 1
- Negative/Shorter Leg(Short Red Wire) -- GND
- Creating account on Twilio
- Replace the following lines of code with your API token and phone number.
SID = 'TWILIO SID'
AUTH_TOKEN = 'TWILIO AUTH TOKEN'
FROM_NUMBER = 'NUMBER GIVEN BY TWIILIO'
TO_NUMBER = 'YOUR NUMBER WHICH IS VERIFIED IN TWILIO'
- Creating account on Mailgun
- Replace the following lines of code with your Mailgun API
MAILGUN_API_KEY = 'MAILGUN API KEY'
SANDBOX_URL= 'SANDBOX URL'
SENDER_EMAIL = 'test@' + SANDBOX_URL # No need to modify this. The sandbox URL is of the format test@YOUR_SANDBOX_URL
RECIPIENT_EMAIL = 'YOUR MAIL ID'
- Replace the following lines with your Bolt API and Bolt Device id.
API_KEY = 'BOLT API KEY'
DEVICE_ID = 'BOLD DEVICE ID'
(6) IMAGE OF THE CONNECTED CIRCUITTHANK YOU FOR THE PATIENCE , HAVE A GREAT DAY :)
Comments