Arduino Gas leakage detection and sms alert using Gsm sim900A and smoke Gas sensor MQ2 Sensor Module

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2018
  • download link:
    www.electroniclinic.com/ardui...
    Lilygo SIM7600G-H 4G LTE:
    • SIM7600G - H 4G LTE ES...
    SIM7600G and ESP32 getting started tutorial:
    • SIM7600G LTE GSM with ...
    Real-Time GPS Tracker using SIM7600G and Adafruit Map:
    • Real Time GPS Tracker ...
    ESP32 GPS Tracker using SIM7600G-H 4G LTE module and Google Maps
    • GPS Tracking System us...
    SIM900A GSM module:
    • GSM based Home Automat...
    SIM800L GSM/GPRS module getting started video:
    • Sim800L GSM GPRS Modul...
    SIM800L with Blynk IoT Cloud:
    • SIM800L Blynk, Arduino...
    Subscribe to my New TH-cam Channel, if you want to watch my videos in Hindi/Urdu
    / @letsgetstartedd
    Project Description:
    ********************
    In today's episode, I will show you have to make your own Smoke/ gas leakage detection and SMS alert system. When a Gas or smoke is detected a message will be sent to the desired person using a gsm module. For this project, we will be needing
    1. Arduino Uno/ Mega.
    I will be using Arduino Uno, but the same program can also be run on Mega. As every program that is written for Arduino can also run on mega.
    2. GSM sim900A/Sim900D
    3. Gas/Smoke Sensor Module MQ-2.
    4. power supply for GSM Module.
    These components can be purchased from Amazon. I will provide links in the description. I Select the best components with the best prices. I am also providing links for free E-books and other Amazon special offers.
    1. Gsm sim900A:
    This is the GSM module, in market, we have different types of gsm modules, the one I will be using today is sim900A if you want you can also use sim900D the same code is also tested using sim900D but with a different baud rate, the rest of the program remains the same.
    ****************
    Amazon Purchase links:
    ********
    Arduino Nano USB-C Type ( recommended):
    amzn.to/4ahGLdk
    ESP32 WiFi + Bluetooth Module for iOT Projects (recommended), more IO pins, improved speed, and supports a Lipo Battery:
    amzn.to/3v40DkE
    Sim900A GSM Module:
    amzn.to/3davTS9
    DC 5V 2A Adaptor
    amzn.to/3w9oWJB
    Solenoid Valve:
    amzn.to/3ftKxH3
    MQ135 Gas Sensor:
    amzn.to/3u7w3kb
    Other Must-Have Tools and Components:

    Top Arduino Sensors:
    amzn.to/3vZbnfM
    Super Starter kit for Beginners
    amzn.to/3cq56C5
    Top Oscilloscopes
    amzn.to/3ctF3d8
    Variable Supply:
    amzn.to/2PEAqE7
    Digital Multimeter:
    amzn.to/2QGRPg1
    Top Soldering iron kits: "best"
    amzn.to/39nqDtb
    Top Portable drill machines:
    amzn.to/3suQMh7
    Jumper Wires:
    amzn.to/2NYPEDA
    3D printers:
    amzn.to/3ruG1dt
    CNC Machines:
    amzn.to/3cuZWVv
    Electronics Accessories:
    amzn.to/3sueV7z

    Hardware Tools:
    amzn.to/3m9UhaN
    DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I will receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for your support!
    ****************
    Follow me on Facebook:
    / 190031841821771
    About the Electronic Clinic:
    Electronic Clinic is the only channel on TH-cam that covers all the engineering fields. Electronic Clinic helps the students and other professionals to learn electronics designing and programming. Electronic Clinic has tutorials on
    electronics projects
    wheelchair projects
    robots
    image processing
    security systems
    PCB designing
    schematics designing
    final year engineering projects and ideas
    electronic door locks projects
    automatic watering systems.
    Nodemcu esp8266 wifi module projects
    computer desktop applications designing.
    email systems.
    and much more.
    #gsmproject #gasleakage #sim900A
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 132

  • @adelectricscience3383
    @adelectricscience3383 2 ปีที่แล้ว +1

    Full electronic work good 👍👍

  • @anokhautomation4453
    @anokhautomation4453 3 ปีที่แล้ว +1

    Very useful project👍

  • @purity6541
    @purity6541 5 ปีที่แล้ว

    Nice bro

  • @shreesoni4300
    @shreesoni4300 ปีที่แล้ว +1

    Hello sir, can you add a buzzer directly on the Arduino board that beeps when gas is detected?

  • @vannamnguyen8515
    @vannamnguyen8515 4 ปีที่แล้ว

    Hi sir. After receiving messages. We must be reset adruino for next use? How to make auto use. .my English language very bad. Thank you so much

  • @mitiadhikary2426
    @mitiadhikary2426 4 ปีที่แล้ว

    Dear sir, can i use SIM800A Quad Band GSM/GPRS Module in this project ?

  • @fadeblack4361
    @fadeblack4361 3 ปีที่แล้ว

    How will you add led lights abd buzzer in your projwct sir?? How would u include that in your codings? Please answer sir.. please.. i need that coding

  • @Gary-ts6dh
    @Gary-ts6dh 3 ปีที่แล้ว

    I was interested in your content; but, I couldn't watch it to the end. Please. Mount your camera. Also, ditch the background noise. The volume of your voice is lower than the background in many spots making it difficult to focus on the content. You speak English very well; but, I could not hear the word you were saying in some places. I'm looking forward to an update to this video. I work a bit with leak detection, so it would be useful to me. Thanks. I'll keep an eye out for your update.

  • @nishajagtap3285
    @nishajagtap3285 4 ปีที่แล้ว

    sir i want to send the values of mq2 and mq7 sensor from one trasmitting arduino to the lcd display on another receiving arduino using bluetooth module and also send sms using gsm 800A module .
    plz help

  • @rolandmclean9954
    @rolandmclean9954 7 หลายเดือนก่อน +1

    Sir please I need this for my project work now 😢

  • @KarthikR-lu4pr
    @KarthikR-lu4pr 2 ปีที่แล้ว

    Recently I gone through your gas leakage and detection video using GSM module. But instead of GSM module is there any other way to create a mobile application and control it. If it's there can you help us to make a video on it bro.
    Hello bro, we're doing an IOT project named Gas Leakage Monitoring System using Arduino. We know how to do hardware part but the problem here is we have to create either a web application or mobile application on our own and we need to link it with our IOT project. We don't know how to do it because we're new to this branch. I hope you will help me to solve this problem. Hoping for your good reply!

  • @renzocorcuera6811
    @renzocorcuera6811 4 ปีที่แล้ว

    sir, in this code it can detect smoke too?

  • @hasnanasrin8173
    @hasnanasrin8173 ปีที่แล้ว

    If we using gsm SIM800L ?? ITS support 4g sim and snd msg

  • @mhamedhamadaembaby2502
    @mhamedhamadaembaby2502 3 ปีที่แล้ว

    Sir, what i can add to this code if i want when the gas detected the fan is turn on

  • @angryboy00
    @angryboy00 3 ปีที่แล้ว

    hello, can sim 900 use the same coding?

  • @bhavya6725
    @bhavya6725 3 ปีที่แล้ว +2

    Thank you sooooooooo much sir.
    I was in 11th and doing this project so I was completely new to this.
    But it worked really good.
    I was struggling since a week watching so many videos but not worked.
    Thank you so much sir.
    Sir can I add auto call feature to it??
    If can then where and what command is required?

    • @ElectroniClinic
      @ElectroniClinic  3 ปีที่แล้ว

      you can use the ATD command.

    • @bhavya6725
      @bhavya6725 3 ปีที่แล้ว

      Sir where should I add ATD command

    • @ElectroniClinic
      @ElectroniClinic  3 ปีที่แล้ว

      you can use this command in the sendsms function too. when a message is sent then it will make a call. or you can make another function for it and call it whenever needed.

    • @ElectroniClinic
      @ElectroniClinic  3 ปีที่แล้ว

      this depends on you. when you wana make the call?

    • @bhavya6725
      @bhavya6725 3 ปีที่แล้ว

      #include
      SoftwareSerial SIM900(7, 8); // gsm module connected here
      String textForSMS;
      int smokeS = A1; // smoke / gas sensor connected with analog pin A1 of the arduino / mega.
      int data = 0;

      void setup() {

      randomSeed(analogRead(0));
      Serial.begin(9600);
      SIM900.begin(9600); // for sim900D 19200. while enter 9600 for sim900A
      pinMode(smokeS, INPUT);
      }
      void loop() {
      data = analogRead(smokeS);
      Serial.print("Smoke: ");
      Serial.println(data);

      if ( data > 230) //
      {
      textForSMS = "
      Gas Or Smoke Detected";
      sendSMS(textForSMS);
      Serial.println(textForSMS);
      Serial.println("message sent.");
      delay(5000);
      while(1)
      {
      }
      }
      }

      void sendSMS(String message)
      {
      SIM900.print("AT+CMGF=1
      "); // AT command to send SMS message
      delay(1000);
      SIM900.println("AT + CMGS = \"+923171956677\""); // recipient's mobile number, in international format
      delay(1000);
      SIM900.println(message); // message to send
      delay(1000);
      SIM900.println((char)26); // End AT command with a ^Z, ASCII code 26
      delay(1000);
      SIM900.println();
      delay(100); // give module time to send SMS
      // SIM900power(); // turn off module
      }
      Sir this is the code in which place and how should I add within loop and format??

  • @marcpaolodayag7960
    @marcpaolodayag7960 2 ปีที่แล้ว

    I tried your code but it didn't work, in serial monitor it says message sent but I didn't receive any, i already changed the recipient. Please help me.

  • @hassansedaqat3525
    @hassansedaqat3525 5 ปีที่แล้ว +1

    hi please upload the burglar alarm tutorial that can send sms and call with pir sensor or help me how to I make it

    • @ElectroniClinic
      @ElectroniClinic  5 ปีที่แล้ว

      I already have a tutorial on this...check playlist

  • @maker-bot7777
    @maker-bot7777 4 ปีที่แล้ว

    CAN I USE SIM808

  • @sanjayshivagange7218
    @sanjayshivagange7218 5 ปีที่แล้ว +1

    i want to build a same sms system for my emergency alarm light system,
    that is like when the emergency light is on ,light sensor should sense and send a text message to 5 mobie phone indicating that emergency light is on. please help me, plzzz

  • @karthikak8834
    @karthikak8834 3 ปีที่แล้ว

    Dear sir
    If want to send the message to the number which I stored in eeprom then how I need to change AT+CMGS command?

    • @ElectroniClinic
      @ElectroniClinic  3 ปีที่แล้ว

      visit my website and read my article on eeprom, in that article i have explained how to store cell numbers and then how to use them.

  • @abdulrazack6909
    @abdulrazack6909 3 ปีที่แล้ว +1

    Hello sir, I need LPG gas leakage detector with using GSM module+solenoid valve combining project, I need detailed video sir please... Reply me... Sir please..

  • @zakirjaufer2951
    @zakirjaufer2951 4 ปีที่แล้ว +1

    Can we use the Arduino 5V to power the GSM module

  • @esakkiappanthevar3320
    @esakkiappanthevar3320 4 ปีที่แล้ว

    Sir,Aurdino needs to be always connected with laptop?

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว

      no. you can power up the arduino using a 12v adopter.

    • @esakkiappanthevar3320
      @esakkiappanthevar3320 4 ปีที่แล้ว

      @@ElectroniClinic 12v ,2amps or 1amps Sir?

  • @sagarmohanan.k.392
    @sagarmohanan.k.392 3 ปีที่แล้ว

    Sir can you provide the link of circuit diagram & program code to my mail id

  • @FestiveScene
    @FestiveScene ปีที่แล้ว

    Hello sir I want to add a screen to display the amount of gas in a 16x2 lcd screen and a buzzer, how will I do that?

  • @adithyasipkaduwa354
    @adithyasipkaduwa354 2 วันที่ผ่านมา

    can you shr source ode?

    • @ElectroniClinic
      @ElectroniClinic  2 วันที่ผ่านมา

      The article link is in the description.

  • @yugandharnallabatti887
    @yugandharnallabatti887 9 หลายเดือนก่อน

    Can i have code for Power failure alert to multiple numbers

    • @ElectroniClinic
      @ElectroniClinic  9 หลายเดือนก่อน

      You can watch my videos on the zmpt ac voltage sensor and there is another video in which I have demonstrated; how to send a message on multiple numbers.

  • @esakkiappanthevar3320
    @esakkiappanthevar3320 4 ปีที่แล้ว

    Sir ,i am facing a problem , everytime i have to click on serial monitor inorder to send the messag , Plz help me

  • @rahiahmad3801
    @rahiahmad3801 4 ปีที่แล้ว

    brother I want to make project.. home automation, smoke detector & home security system....these 3 project impelment in one project... how?

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว

      Check playlist. Its already available. Just set it as per ur requirment

    • @rahiahmad3801
      @rahiahmad3801 4 ปีที่แล้ว

      @@ElectroniClinic sir I can't find.. but 1 qus sir.. can I complete these 3 projects using 1 arduino,1 gsm 900A module?
      how can I upload these 3 code in one arduino?

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว

      Yes you can combine even more. Simply copy and paste the codes in one sketch and change the variable names if incase the names are same

    • @rahiahmad3801
      @rahiahmad3801 4 ปีที่แล้ว

      sir plz give me automation, home security,gas leakage system these 3 systems combined code...plzz sir..

  • @rahiahmad3801
    @rahiahmad3801 4 ปีที่แล้ว

    sir which libraries can I download for this code? plz can u give me libraries download link for this code?
    if I use 0,1 pin for gms tx,rx. which problem I will faced?

  • @vivekdas4073
    @vivekdas4073 4 ปีที่แล้ว

    sir it sends blank message and taking too much time to send and another problem is that it the condition is satisfy then the serial monitor gets stop it does not print there after value
    please help me i am making smoething using ultrasonic and gsm module please help me i need your help urgently

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว

      this project is been done by so many students. Did you change the code?

    • @vivekdas4073
      @vivekdas4073 4 ปีที่แล้ว

      sir no i did not change code i replaced gas sensor code with ultrasonic code
      sir could you please check my code i am sending to you
      #include
      SoftwareSerial SIM900(7,8);
      String textForSMS;
      const int trigPin =12 ;
      const int echoPin = 11;
      long duration;
      int distance;
      void setup()
      {
      pinMode(trigPin, OUTPUT);
      pinMode(echoPin, INPUT);
      Serial.begin(9600);
      SIM900.begin(9600);
      }
      void loop() {
      // Clears the trigPin
      digitalWrite(trigPin, LOW);
      delayMicroseconds(2);
      digitalWrite(trigPin, HIGH);
      delayMicroseconds(10);
      digitalWrite(trigPin, LOW);
      duration = pulseIn(echoPin, HIGH);
      distance= duration*0.034/2;
      Serial.print("Distance from the object = ");
      Serial.print(distance);
      Serial.println(" cm");
      delay(1000);
      if(distance

    • @vivekdas4073
      @vivekdas4073 4 ปีที่แล้ว

      @@ElectroniClinic sir please reply

  • @achyuth9908
    @achyuth9908 4 ปีที่แล้ว +1

    please reply sir

  • @dvnovov7850
    @dvnovov7850 5 ปีที่แล้ว +3

    serial port show msg was sent , but in mobile it didn't received, how to solve this prb?

    • @ElectroniClinic
      @ElectroniClinic  5 ปีที่แล้ว +1

      check wiring. make sure you connect the txd of the gsm module with pin number 7 and connect the rxd of the gsm module with pin 8

    • @dvnovov7850
      @dvnovov7850 5 ปีที่แล้ว

      @@ElectroniClinic i checked it then too...its not sending msg to mobile. txd-7, rxd-8 and gnd-gnd

    • @dvnovov7850
      @dvnovov7850 5 ปีที่แล้ว

      @@ElectroniClinic please help me ....!

    • @dvnovov7850
      @dvnovov7850 5 ปีที่แล้ว +1

      @@ElectroniClinic i just changed the sim card which had balance(hehe) in it, then it worked fine , thanks for helping by the way :-)

    • @ElectroniClinic
      @ElectroniClinic  5 ปีที่แล้ว +1

      hahahaha. well done you did it.
      for more projects and tutorial you can visit my website
      www.electroniclinic.com

  • @abhisheknaik4589
    @abhisheknaik4589 3 ปีที่แล้ว

    Can we use 2 mobile num on which we get sms of gas leakage???

    • @ElectroniClinic
      @ElectroniClinic  3 ปีที่แล้ว

      yes of course you can. watch my other video in which i used multiple cell phones

  • @zakiransari5714
    @zakiransari5714 3 ปีที่แล้ว

    Sir I am making my fyp on this topic please help me......
    need your contact....

  • @akhilkumarkar9112
    @akhilkumarkar9112 5 ปีที่แล้ว

    can i use sim800l . plz help me

    • @ElectroniClinic
      @ElectroniClinic  5 ปีที่แล้ว

      You can use any gsm module, but make sure you use the correct baud rate

  • @wwewrestling170
    @wwewrestling170 5 ปีที่แล้ว

    sir ye to jali hoye kaghaz ka doowa detect nhi krta q

    • @wwewrestling170
      @wwewrestling170 5 ปีที่แล้ว

      kindly help me sir

    • @ElectroniClinic
      @ElectroniClinic  5 ปีที่แล้ว +1

      my dear ye detect kerta hai . tum sensor ki predefined value adjust kar lo. screen pe value deikho kis value tak ye smoke ko detect kerta hai. phir usi range mei pre defined value adjust kar lo.

  • @kylehidaka723
    @kylehidaka723 ปีที่แล้ว +1

    Can i use alcohol sensor?

    • @ElectroniClinic
      @ElectroniClinic  ปีที่แล้ว +1

      Of course you can

    • @kylehidaka723
      @kylehidaka723 ปีที่แล้ว

      My i ask what material do i need to build you're project

    • @ElectroniClinic
      @ElectroniClinic  ปีที่แล้ว

      @@kylehidaka723 Arduino uno or Arduino nano, sim900A, and a gas sensor. You can check product links in the description.

    • @kylehidaka723
      @kylehidaka723 ปีที่แล้ว

      okok Ty love u hihihi

  • @goldysingh9342
    @goldysingh9342 4 ปีที่แล้ว +1

    message sent on serial monitor but sms not receved

    • @adeebsden1216
      @adeebsden1216 3 ปีที่แล้ว

      Check the phone number in that program.

  • @joshuacasuga2604
    @joshuacasuga2604 5 ปีที่แล้ว

    Can you put the code in the description box sir?

    • @ElectroniClinic
      @ElectroniClinic  5 ปีที่แล้ว

      you can download the programming from my blog page. link is given in the description.

  • @purity6541
    @purity6541 5 ปีที่แล้ว

    I want to use sim 800l help me bro

  • @faouzigourgour8562
    @faouzigourgour8562 5 ปีที่แล้ว

    Plss give me codes and library

  • @esakkiappanthevar3320
    @esakkiappanthevar3320 4 ปีที่แล้ว +1

    Sir ,as soon as upload the code without even smoke ,it sends a message to me

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว

      check the pre-defined value.

    • @esakkiappanthevar3320
      @esakkiappanthevar3320 4 ปีที่แล้ว

      @@ElectroniClinic sir i didn't get u

    • @esakkiappanthevar3320
      @esakkiappanthevar3320 4 ปีที่แล้ว

      Sir ,i just copy pasted ur code as it is given

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว

      it's not only about copying and pasting, you need to set few things. you know the message sending thing depends on the threshold value. check how much value are you getting when there is no smoke. then adjust the predefined value. watch complete video you will understand.

    • @esakkiappanthevar3320
      @esakkiappanthevar3320 4 ปีที่แล้ว

      @@ElectroniClinic got it sir ,i changed the value according to the threshold one ,
      But now only after i click the serial monitor it shows message sent .
      Why do i need to click the serial monitor everytime sir , please help me sir ,i need to submit on Monday.
      Please sir

  • @achyuth9908
    @achyuth9908 4 ปีที่แล้ว

    Send the all details of this project

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว

      everything is available on my website. check the link in the description.

  • @xh.b5909
    @xh.b5909 4 ปีที่แล้ว

    Hi. This did not work for me. Could you please help me, because I need it for a college project? If we could talk on instagram or facebook?

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว

      Facebook page link is given in description

    • @xh.b5909
      @xh.b5909 4 ปีที่แล้ว

      @@ElectroniClinic If you could please check your personal facebook dm, I would appreciate it.

    • @rolandmclean9954
      @rolandmclean9954 7 หลายเดือนก่อน

      Sir, please I ran this code but it’s not working
      I’m using google a gsm module sin800L and get its not working
      I keep trying Sir 😢

  • @eramali3237
    @eramali3237 2 ปีที่แล้ว

    Kindly give me coding of this SMS

    • @ElectroniClinic
      @ElectroniClinic  2 ปีที่แล้ว

      the is available on my website. check link in the description.

  • @piashmondal6693
    @piashmondal6693 5 ปีที่แล้ว

    textForSMS error! Help please

    • @ElectroniClinic
      @ElectroniClinic  5 ปีที่แล้ว +1

      its a string. check programming. you might be missing something.

    • @piashmondal6693
      @piashmondal6693 5 ปีที่แล้ว

      It works after I just change the capital F to small f

    • @piashmondal6693
      @piashmondal6693 5 ปีที่แล้ว +2

      Now I'm facing another problem
      It's says message sent but I don't receive any message

  • @agastyak840
    @agastyak840 4 ปีที่แล้ว

    Sir there is one problem, sir it print that msg is sent but i didn't get any msg why?? Pls sir give me reply its urgent plsss

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว +1

      Which gsm module are you using?

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว +1

      Double check ur wiring and also the power supply.

    • @agastyak840
      @agastyak840 4 ปีที่แล้ว

      @@ElectroniClinic sir its GSM 900A, with power supply 9v, 1A And sir I'm using 3g sim with them. And i have checked all connection too. But it always print msg sent but i didn't get it.

    • @agastyak840
      @agastyak840 4 ปีที่แล้ว

      @@ElectroniClinic and sir when i called on number which i set to gsm it rings. And sim is working but prblm is that no msg receive

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว +1

      4.7v to 5v is recommended. I have explained this in video.

  • @albertaluekebenle8317
    @albertaluekebenle8317 2 ปีที่แล้ว

    good morning can l please get the code for this project

    • @ElectroniClinic
      @ElectroniClinic  2 ปีที่แล้ว

      code is available on my website. check link in the description.

  • @tarunanandrao
    @tarunanandrao 4 ปีที่แล้ว

    Can we put 3g sim or 4g sim

    • @ElectroniClinic
      @ElectroniClinic  4 ปีที่แล้ว

      yes, you can use. it has nothing to do with the 3g or 4g sim. so far you have SMS package and you can send a message that's all you need.

  • @hasnanasrin8173
    @hasnanasrin8173 ปีที่แล้ว

    If we using gsm SIM800L ?? ITS support 4g sim and snd msg

    • @ElectroniClinic
      @ElectroniClinic  ปีที่แล้ว

      U need to check if your sim800L supports 4g