Fire Alarm System Project by Interfacing Arduino with Temperature & Gas Sensor || TinkerCAD Projects

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024

Комментарии • 127

  • @LearnElectronicsIndia
    @LearnElectronicsIndia  3 года назад +12

    To get the code, please refer to the article link in description.

  • @user-zm2bs5vu4v
    @user-zm2bs5vu4v Год назад +1

    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.

  • @rafaelnicanorlescano2498
    @rafaelnicanorlescano2498 3 года назад +41

    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);
    }

  • @a.just.spectator
    @a.just.spectator 9 месяцев назад +1

    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!

  • @soujumulimani9065
    @soujumulimani9065 6 месяцев назад

    ---
    "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!"

  • @psh0114
    @psh0114 Год назад

    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!

  • @ashitanarvekar4249
    @ashitanarvekar4249 Год назад

    Well explained! Your video on Arduino and sensors for fire alarms is a gem.

  • @rakhidixit5010
    @rakhidixit5010 6 месяцев назад

    // 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.

  • @prathameshpoojari3845
    @prathameshpoojari3845 2 года назад +1

    Thanks for this explanation 🙌

  • @TanumayBandopadhyayasymphony
    @TanumayBandopadhyayasymphony 6 месяцев назад

    Nice work like our touch sensor 😅

  • @dr.robingeorge5605
    @dr.robingeorge5605 Год назад

    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.

  • @preciouszimucha5760
    @preciouszimucha5760 3 года назад +1

    everything worked ,thank you;)

    • @Shreyasghec
      @Shreyasghec 3 года назад

      Can u pls send me the code?

  • @sukhpreetsingh3844
    @sukhpreetsingh3844 3 года назад +1

    Hlo, Can we use tinkercad software to physically simulate the Arduino board

  • @ashyikin8773
    @ashyikin8773 3 года назад +1

    hi maam, can we connect this project with iot thingspeak?

  • @romankarki5041
    @romankarki5041 3 года назад +1

    hello, how do i find smoke sensor in fritzing?

  • @improvegk7119
    @improvegk7119 2 месяца назад

    how you do the logic of gas sensor??

  • @patrickjoseph9476
    @patrickjoseph9476 3 года назад +1

    The resolution of the LM35 temperature sensor can be improvised using an external ADC like MCP3201

  • @xouenm
    @xouenm 2 года назад +3

    Correction on the gasSensor=analogRead(A0); on the complete code in the article. It should be gasSensor=analogRead(A1);

  • @vidyatelore2175
    @vidyatelore2175 2 года назад +1

    Ye project physically work karega in sabhi chijo ke sath plz reply very urgent 🥺🥺😟😟

  • @mahinahmed9871
    @mahinahmed9871 2 года назад +1

    thanks ....joss

  • @roopeshrokade3827
    @roopeshrokade3827 2 года назад

    how does we should connect the tinkercard project to thing speak cloud platform

  • @SCRIPTFFking
    @SCRIPTFFking 7 месяцев назад

    Nice mam 😅

  • @PardeepSingh-wj8lc
    @PardeepSingh-wj8lc 2 года назад

    Nice 🙂

  • @abdelrahmannasser4367
    @abdelrahmannasser4367 3 года назад +1

    thank you, how much ohm is this resistor connected with the gas sensor please?

  • @akashlanjekar8530
    @akashlanjekar8530 2 года назад

    What is orange wire indicate?

  • @xihaddawan5317
    @xihaddawan5317 2 года назад +1

    Where is the code?
    In this article i cannot find code now

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  2 года назад

      Please refer to the article/blog link mentioned in the description it is available.

  • @AJ-hy1xn
    @AJ-hy1xn 3 года назад

    Is this related to DLD??

  • @user-ei3hl2sb5v
    @user-ei3hl2sb5v Год назад

    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

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  Год назад

      Please reach out to us at learnelectronicsindia.com@gmail.com and we will try to resolve your issue asap.

    • @Integral_MC
      @Integral_MC 2 месяца назад

      Bro in the video at the end the temperature sensor is connected to A1... Not A0

  • @tiyas1915
    @tiyas1915 3 года назад

    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"

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      You would need to connect an Arduino/NodeMCu board to the system and then only the Serial Port will be accessible.

  • @tejanaidu7174
    @tejanaidu7174 3 года назад

    nice voice madam

  • @nafizfuad7787
    @nafizfuad7787 3 года назад

    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

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      Please make sure you have made the correct connections.

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      Also, check whether you have the code working properly with all the correct formulas added as above.

    • @kiranbusa2046
      @kiranbusa2046 2 года назад

      What u have done bro same error connection and code is all right!

    • @chit932
      @chit932 Год назад

      The gas sensor might be rotated (upside down)

  • @solvesolution9109
    @solvesolution9109 Месяц назад

    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);
    }

  • @mugdhonahian7588
    @mugdhonahian7588 3 года назад

    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

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад +9

      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.

    • @mugdhonahian7588
      @mugdhonahian7588 3 года назад

      @@LearnElectronicsIndia Thanks a lot

  • @adityabuttan6072
    @adityabuttan6072 2 года назад

    mam in my circuit the alarm is continuously blinking even when the smoke has been taken away

  • @castromikelesterg.6611
    @castromikelesterg.6611 3 года назад

    whats the purpose of having an led set to high when temperature increases ?

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад +1

      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.

  • @sirishajain7699
    @sirishajain7699 Год назад

    Everything worked properly but the fire alarms is not buzzing. Can u plz slove this

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  Год назад

      Please reach out to us at learnelectronicsindia.com@gmail.com and we will try to resolve your issue asap.

  • @rajeevmishra2902
    @rajeevmishra2902 3 года назад +1

    mam how can we find code for this

  • @tanjim_khan_
    @tanjim_khan_ 3 года назад

    The code is not working. Could you please recheck?
    When I paste the code in tinkercad, the simulation doesn't work

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      Can you tell us what error do you see?

    • @tanjim_khan_
      @tanjim_khan_ 3 года назад +1

      @@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.

    • @SS-pr9nn
      @SS-pr9nn 2 года назад +1

      @@LearnElectronicsIndia Mam for me the smoke is not appearing and the led is not glowing. Can you please please say any solution

  • @vainavimdavasam866
    @vainavimdavasam866 3 года назад

    Could you please provide us with the tinkercad link... because the code doesn't seem to work.

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      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?

    • @hemanntth1348
      @hemanntth1348 3 года назад

      @@LearnElectronicsIndia code mentioned in the article is working now????

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      @@hemanntth1348 Yes

    • @vainavimdavasam866
      @vainavimdavasam866 3 года назад +1

      @@LearnElectronicsIndia yes ma'am the code works.Thank you:)

    • @nagendrasatyasai7247
      @nagendrasatyasai7247 Год назад

      Wil you please send me the code link again

  • @dragos8961
    @dragos8961 2 года назад

    i can t find the code..

  • @babashankarsn1477
    @babashankarsn1477 3 года назад

    what should be the resistance value of the resistor mam?

  • @suneethaperikala5901
    @suneethaperikala5901 3 года назад

    how to do this only with temp sensor without using gas sensor?

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад +1

      You can just interface the Temperature sensor and set a Fire Alarm if the temperature goes above the threshold value.

  • @Tradingwala77
    @Tradingwala77 2 года назад

    Raw code?

  • @RohanAtri_
    @RohanAtri_ 2 года назад +1

    Please mam provide code on box

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  2 года назад

      Please refer to the article/blog link mentioned in the description.

    • @nagendrasatyasai7247
      @nagendrasatyasai7247 Год назад

      @@LearnElectronicsIndia please send the code link there is no code in article

  • @svs2517
    @svs2517 3 года назад

    In this why code is having so much errors how can i fix them..

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      Please let us know, what is the error message that you see?

    • @svs2517
      @svs2517 3 года назад

      @@LearnElectronicsIndia its showing so many errors found in your code

    • @svs2517
      @svs2517 3 года назад

      In which article code is working?

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      @@svs2517 The article link is in the description.

  • @soumyadeepsinharoy5695
    @soumyadeepsinharoy5695 3 года назад

    ma'am how to get the document of the correct code?

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      The code is available in the article link provided in description, please check.

    • @swagatadas7046
      @swagatadas7046 Год назад

      @@LearnElectronicsIndia we need to buy it like seriously??

  • @billythekid7041
    @billythekid7041 3 года назад +1

    Mam, please. Can we get the circuit diagram of this project??

  • @bivashukchatterjee6457
    @bivashukchatterjee6457 3 года назад +2

    There's a small mistake in the code Analog read for gas sensor should be A1 and Vout should be A0.

  • @alwaysgoodvk9283
    @alwaysgoodvk9283 3 года назад

    I want fire alarm system without Arduino in tinkercad

  • @shivdattmishra666
    @shivdattmishra666 3 года назад

    WHY CODE IS NOT GETTING COPPIED ITS SHOWING COPY RIGHT

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      You must see a download file option. If not then select the code and press Ctrl + C, it will work.

  • @yontenjamtsho4315
    @yontenjamtsho4315 3 года назад

    Can I use DHT11 instead of temperature sensor?

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      Yes, since DHT11 is a Temperature and Humidity sensor itself, you can use it but it may not be available in TinkerCAD

    • @yontenjamtsho4315
      @yontenjamtsho4315 3 года назад

      @@LearnElectronicsIndia Thank you for the reply. In practical, can I used it with the same code.

  • @tanyachourasia4770
    @tanyachourasia4770 3 года назад

    code for this
    pls

  • @PardeepSingh-wj8lc
    @PardeepSingh-wj8lc 2 года назад

    🙂

  • @Sameeulla0000
    @Sameeulla0000 3 года назад

    I want that code plz paste it in message

  • @gwgauransh6790
    @gwgauransh6790 3 года назад

    pls paste the code in comment box

  • @abdelrahmannasser4367
    @abdelrahmannasser4367 3 года назад

    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

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  3 года назад

      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.

  • @vishakhatrivedi3468
    @vishakhatrivedi3468 Год назад

    CODE DOES NOT WORK

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  Год назад

      Can you tell us what error did you faced and we will try to resolve it for you?

    • @LearnElectronicsIndia
      @LearnElectronicsIndia  Год назад

      Can you tell us what error did you faced and we will try to resolve it for you?

  • @tommo.1
    @tommo.1 3 года назад

    :)

  • @nabukenyaaaliyah6647
    @nabukenyaaaliyah6647 2 года назад

    oh my gosh your accent

  • @almostmonk5523
    @almostmonk5523 2 года назад

    video is good but code is not explained properly

  • @fcmaxxis5439
    @fcmaxxis5439 Год назад

    whats your insta id?