This tutorial deserves all the likes and shares it can get. Learn Electronics India has simplified the entire process, making it enjoyable and educational at the same time.
Fantastic job on the fire alarm system project! The integration of Arduino with temperature and gas sensors is a smart approach, ensuring a comprehensive and efficient detection system. Your work not only showcases technical skills but also a commitment to safety. Well done!
--- "Great demonstration of interfacing Arduino with temperature and gas sensors for a fire alarm system! The integration of these sensors adds an extra layer of safety and detection, crucial for ensuring early warning in case of fire incidents. I appreciate the thorough explanation and demonstration of how each component works together to create a reliable fire alarm system. Looking forward to trying out a similar project myself!"
Great project! Your video on interfacing Arduino with temperature and gas sensors for a fire alarm system was informative and well-explained. Keep up the good work!
// This script outlines a video tutorial for creating a fire alarm system using temperature and gas sensors with Arduino. It begins with an introduction to the project and the simulation software used (TinkerCAD), followed by component selection and placement. The script explains the working principles of the temperature and gas sensors, highlights the importance of resistors in the circuit, and details the connections between components. Additionally, it provides an overview of the Arduino code setup, including variable definitions and logic for triggering alerts based on sensor readings. Finally, the script guides viewers through project simulation and observation, concluding with gratitude for watching the tutorial.
Initially when the connections were made first, you had one of the pin from piezo at the ground. After you swayed your magic wand, that connection is else were now.
In the following code, why did you divide the output of gas sensor with 1024 and then multiply it with 5000? vout1=(vout/1023)*5000? What is the reason behind this calculation. Please explain
The whole formula is just used to convert the sensor value into voltage and then into degree celsius. vout=analogRead(A1); // We read the analog (0-1023) value of the temperature sensor. vout/1023 // here we convert the value into voltage by diving it by 1023 vout1=(vout/1023)*5000; //since the Arduino receives power supply - 5V, we multiply it with 5 to get the result in the range of 0 - 5V but we multiply it with 5000 to convert it into millivolts. temp=(vout1-500)/10; //here we subtract with 500 to remove the offset value since the TM36 reads value from -50 degree to 125. After subtraction, the temperature range will be 0 - 175 degrees. Since it is in millivolts, we divide it by 10 to convert it into a degree. You can also use the formula as: vout=analogRead(A1); vout1=(vout/1023)*5; //here we convert sensor value into voltage of range 0-5 V temp=(vout1-0.5)*100; //since in volts, we multiply the value by 100 after subtracting it with the offset value. Also, this formula/conversion varies depending upon the sensor you use.
LED & Buzzer, both are just used in the prototype project to alert us. So, if the temperature Increases LED would go High and alert the user. It is not mandatory to use both LED & Buzzer, you can just use the Buzzer both the alert.
@@LearnElectronicsIndia I implemented the whole circuit as it is (with multiple cross-checking's) and added the code to the arduino but it isn't working at all. piezo doesn't buzz when the smoke is there and the LED doesn't glow when the temperature is increased.
In the code, we have not defined as Piezo to HIGH when the temperature goes HIGH, in that case we have set the LED as HIGH. But you can instead do the same for Piezo Buzzer as well.
To get the code, please refer to the article link in description.
Do we have to pay for the code?
but i dont want to sign up
i cant find code from your preferable website.... why?
This tutorial deserves all the likes and shares it can get. Learn Electronics India has simplified the entire process, making it enjoyable and educational at the same time.
float temp;
float vout;
float vout1;
int LED=13;
int gasSensor;
int piezo=7;
void setup()
{
pinMode(A0,INPUT);
pinMode(A1,INPUT);
pinMode(LED,OUTPUT);
pinMode(piezo,OUTPUT);
Serial.begin(9600);
}
void loop()
{
vout=analogRead(A1);
vout1=(vout/1023)*5000;
temp=(vout1-500)/10;
gasSensor=analogRead(A0);
if(temp>=80)
{
digitalWrite(LED,HIGH);
}
else
{
digitalWrite(LED,LOW);
}
if(gasSensor>=100)
{
digitalWrite(piezo,HIGH);
}
else
{
digitalWrite(piezo,LOW);
}
Serial.print("in DegreeC=");
Serial.print(" ");
Serial.print(temp);
Serial.print("\t");
Serial.print("GasSensor= ");
Serial.print(" ");
Serial.print(gasSensor);
Serial.println();
delay(1000);
}
You are awesome bro....
damn man thanks
thank u bro!!!
omg thank you
Thanks bro
Fantastic job on the fire alarm system project! The integration of Arduino with temperature and gas sensors is a smart approach, ensuring a comprehensive and efficient detection system. Your work not only showcases technical skills but also a commitment to safety. Well done!
---
"Great demonstration of interfacing Arduino with temperature and gas sensors for a fire alarm system! The integration of these sensors adds an extra layer of safety and detection, crucial for ensuring early warning in case of fire incidents. I appreciate the thorough explanation and demonstration of how each component works together to create a reliable fire alarm system. Looking forward to trying out a similar project myself!"
Great project! Your video on interfacing Arduino with temperature and gas sensors for a fire alarm system was informative and well-explained. Keep up the good work!
Well explained! Your video on Arduino and sensors for fire alarms is a gem.
// This script outlines a video tutorial for creating a fire alarm system using temperature and gas sensors with Arduino. It begins with an introduction to the project and the simulation software used (TinkerCAD), followed by component selection and placement. The script explains the working principles of the temperature and gas sensors, highlights the importance of resistors in the circuit, and details the connections between components. Additionally, it provides an overview of the Arduino code setup, including variable definitions and logic for triggering alerts based on sensor readings. Finally, the script guides viewers through project simulation and observation, concluding with gratitude for watching the tutorial.
Thanks for this explanation 🙌
Glad it was helpful!
Nice work like our touch sensor 😅
Initially when the connections were made first, you had one of the pin from piezo at the ground. After you swayed your magic wand, that connection is else were now.
everything worked ,thank you;)
Can u pls send me the code?
Hlo, Can we use tinkercad software to physically simulate the Arduino board
hi maam, can we connect this project with iot thingspeak?
hello, how do i find smoke sensor in fritzing?
how you do the logic of gas sensor??
The resolution of the LM35 temperature sensor can be improvised using an external ADC like MCP3201
on my page only got TMP36
Correction on the gasSensor=analogRead(A0); on the complete code in the article. It should be gasSensor=analogRead(A1);
Oops..still not working for me😕
Thanks Bhai
Ye project physically work karega in sabhi chijo ke sath plz reply very urgent 🥺🥺😟😟
thanks ....joss
You are most welcome
how does we should connect the tinkercard project to thing speak cloud platform
Nice mam 😅
Nice 🙂
thank you, how much ohm is this resistor connected with the gas sensor please?
1K Ohms
What is orange wire indicate?
Where is the code?
In this article i cannot find code now
Please refer to the article/blog link mentioned in the description it is available.
Is this related to DLD??
The piezo is buzzing but no smoke appeared. Plus, the led is not on
The degreeC put -0.64 and Gassensor put 153 no smoke any help please
Please reach out to us at learnelectronicsindia.com@gmail.com and we will try to resolve your issue asap.
Bro in the video at the end the temperature sensor is connected to A1... Not A0
Mam,plzz this code is not running in Aurduino IDE,after compiling when I upload in that IDE it shows an error that "serial port is not selected"
You would need to connect an Arduino/NodeMCu board to the system and then only the Serial Port will be accessible.
nice voice madam
mam its working the code also correct but my value is shown in degreeC=-50.00 GasSensor=0 and its not change gassensor value is 0
Please make sure you have made the correct connections.
Also, check whether you have the code working properly with all the correct formulas added as above.
What u have done bro same error connection and code is all right!
The gas sensor might be rotated (upside down)
float temp;
float tempout;
float tempincrease;
int led=13;
int gassensor;
int buzzer=7;
void setup()
{
pinMode(A0,INPUT);
pinMode(A1,INPUT);
pinMode(led,OUTPUT);
pinMode(buzzer,OUTPUT);
Serial.begin(9600);
}
void loop()
{
tempout=analogRead(A1);
tempincrease=(tempout/1023)*5000;
temp=(tempincrease-500)/10;
gassensor=analogRead(A1);
if(temp>=80)
{
digitalWrite(led,HIGH);
}
else
{
digitalWrite(led,LOW);
}
if(gassensor>=100)
{
digitalWrite(buzzer,HIGH);
}
else
{
digitalWrite(buzzer,LOW);
}
Serial.print("Increase Temp. = ");
Serial.print(" ");
Serial.print(tempout);
Serial.print("\t");
Serial.print("Gas sensor= ");
Serial.print(" ");
Serial.print(gassensor);
Serial.println();
delay(1000);
}
In the following code, why did you divide the output of gas sensor with 1024 and then multiply it with 5000? vout1=(vout/1023)*5000?
What is the reason behind this calculation. Please explain
The whole formula is just used to convert the sensor value into voltage and then into degree celsius.
vout=analogRead(A1); // We read the analog (0-1023) value of the temperature sensor.
vout/1023 // here we convert the value into voltage by diving it by 1023
vout1=(vout/1023)*5000; //since the Arduino receives power supply - 5V, we multiply it with 5 to get the result in the range of 0 - 5V but we multiply it with 5000 to convert it into millivolts.
temp=(vout1-500)/10; //here we subtract with 500 to remove the offset value since the TM36 reads value from -50 degree to 125. After subtraction, the temperature range will be 0 - 175 degrees. Since it is in millivolts, we divide it by 10 to convert it into a degree.
You can also use the formula as:
vout=analogRead(A1);
vout1=(vout/1023)*5; //here we convert sensor value into voltage of range 0-5 V
temp=(vout1-0.5)*100; //since in volts, we multiply the value by 100 after subtracting it with the offset value.
Also, this formula/conversion varies depending upon the sensor you use.
@@LearnElectronicsIndia Thanks a lot
mam in my circuit the alarm is continuously blinking even when the smoke has been taken away
Please check your code, precisely the if-else loop.
whats the purpose of having an led set to high when temperature increases ?
LED & Buzzer, both are just used in the prototype project to alert us. So, if the temperature Increases LED would go High and alert the user. It is not mandatory to use both LED & Buzzer, you can just use the Buzzer both the alert.
Everything worked properly but the fire alarms is not buzzing. Can u plz slove this
Please reach out to us at learnelectronicsindia.com@gmail.com and we will try to resolve your issue asap.
mam how can we find code for this
Please check the article link in Description.
The code is not working. Could you please recheck?
When I paste the code in tinkercad, the simulation doesn't work
Can you tell us what error do you see?
@@LearnElectronicsIndia I implemented the whole circuit as it is (with multiple cross-checking's) and added the code to the arduino but it isn't working at all.
piezo doesn't buzz when the smoke is there and the LED doesn't glow when the temperature is increased.
@@LearnElectronicsIndia Mam for me the smoke is not appearing and the led is not glowing. Can you please please say any solution
Could you please provide us with the tinkercad link... because the code doesn't seem to work.
We have modified the code again and this time it should work for you. Please try and let us know if it is working or not?
@@LearnElectronicsIndia code mentioned in the article is working now????
@@hemanntth1348 Yes
@@LearnElectronicsIndia yes ma'am the code works.Thank you:)
Wil you please send me the code link again
i can t find the code..
Please refer to the article/blog link mentioned in the description.
what should be the resistance value of the resistor mam?
1K Ohms.
@@LearnElectronicsIndia the piezo buzzer is not working mam
The value of gasSensor always shows zero
how to do this only with temp sensor without using gas sensor?
You can just interface the Temperature sensor and set a Fire Alarm if the temperature goes above the threshold value.
Raw code?
Please mam provide code on box
Please refer to the article/blog link mentioned in the description.
@@LearnElectronicsIndia please send the code link there is no code in article
In this why code is having so much errors how can i fix them..
Please let us know, what is the error message that you see?
@@LearnElectronicsIndia its showing so many errors found in your code
In which article code is working?
@@svs2517 The article link is in the description.
ma'am how to get the document of the correct code?
The code is available in the article link provided in description, please check.
@@LearnElectronicsIndia we need to buy it like seriously??
Mam, please. Can we get the circuit diagram of this project??
Please check the article link in the description.
There's a small mistake in the code Analog read for gas sensor should be A1 and Vout should be A0.
Thanks fam.
its still not working temp goes -50 and gas sensor goes 158
I want fire alarm system without Arduino in tinkercad
Sure, will try to create a project and upload it asap.
WHY CODE IS NOT GETTING COPPIED ITS SHOWING COPY RIGHT
You must see a download file option. If not then select the code and press Ctrl + C, it will work.
Can I use DHT11 instead of temperature sensor?
Yes, since DHT11 is a Temperature and Humidity sensor itself, you can use it but it may not be available in TinkerCAD
@@LearnElectronicsIndia Thank you for the reply. In practical, can I used it with the same code.
code for this
pls
Please check the article link in Description.
🙂
I want that code plz paste it in message
Please check the article link in Description.
@@LearnElectronicsIndia k
How to get smoke on gas sensor
@@Sameeulla0000 You need to click on "Start Simulation" on TinkerCAD and then click on the sensor.
pls paste the code in comment box
Please check the link in the description.
why does the piezo did not work when the temperature is high? the piezo should work if the temp is high and if there is a gas
In the code, we have not defined as Piezo to HIGH when the temperature goes HIGH, in that case we have set the LED as HIGH. But you can instead do the same for Piezo Buzzer as well.
CODE DOES NOT WORK
Can you tell us what error did you faced and we will try to resolve it for you?
Can you tell us what error did you faced and we will try to resolve it for you?
:)
oh my gosh your accent
video is good but code is not explained properly
whats your insta id?