Sim800l | GSM Home Security using Arduino | PIR Motion Sensor Alarm

Sdílet
Vložit
  • čas přidán 12. 09. 2024
  • In this video tutorial, I will show you how to make GSM Home Security using Arduino UNO , SIM800L GSM Module and PIR Motion Sensor. This gsm based burglar alarm system detects motion by using pir motion sensor and sends data to arduino and then arduino microcontroller sends call alert to the emergency number through the sim800l GSM module.
    This is a very simple and easy to build home security system with just few lines of code. you can build this security system at home with a little efforts.
    --------------------------------------------------------------------------------------------------------------------
    Hardware Components
    --------------------------------------------------------------------------------------------------------------------
    1. Arduino UNO - amzn.to/3ZWKAz2
    2. SIM800L GSM Module - amzn.to/3l6rKGP
    3. PIR Motion Sensor - amzn.to/3l5WQhW
    4. 18650 3.7v Rechargeable Battery - amzn.to/3ZAxV51
    --------------------------------------------------------------------------------------------------------------------
    Useful Video Links
    --------------------------------------------------------------------------------------------------------------------
    Send GPS Data To Server Using Arduino and PHP
    • SIM800L GPS Tracker | ...
    GPS GSM Not Just Tracker
    • Arduino Sim800L GPS Tr...
    Arduino Sim800l Relay Control
    • Arduino Sim800l Relay ...
    --------------------------------------------------------------------------------------------------------------------
    Social Media Links
    --------------------------------------------------------------------------------------------------------------------
    GitHub:
    github.com/ahm...
    CZcams:
    www.youtube.co...
    --------------------------------------------------------------------------------------------------------------------
    Download Code
    --------------------------------------------------------------------------------------------------------------------
    github.com/ahm...
    --------------------------------------------------------------------------------------------------------------------
    Disclaimer
    --------------------------------------------------------------------------------------------------------------------
    Disclaimer: All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.
    Warning: In some countries it is required to register gsm module from govt authorities before using it. So, get proper understanding of govt laws related to gsm technologies.
    #sim800l #arduino #PirMotionSensor

Komentáře • 216

  • @jimmyelectronics2264
    @jimmyelectronics2264 Před 2 lety

    No youtuber answers the way you do. Keep it up

  • @faroekjuthan89
    @faroekjuthan89 Před 3 lety +2

    A very nice project with a working code. Thanks for sharing, transferring knowledge to others is a noble task. Thanks again.

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      thanks you soooo much

    • @user-kl8ow4ku1i
      @user-kl8ow4ku1i Před 10 měsíci

      kindly shere with me the code

    • @KanuChinasa
      @KanuChinasa Před 5 měsíci

      I love this project so much. Please can you help me with the code. Thank you

  • @aedrianefabian9513
    @aedrianefabian9513 Před 3 lety +2

    If I'll be using the barrel plug in Arduino Uno, do I still need to change something in the code? Thank you for your answer

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      no need to change the code. because barrel plug is just for powering the project.

  • @KanuChinasa
    @KanuChinasa Před 5 měsíci

    I love this work. Please I'm confused on how to get the code for programming the Arduino. Thanks your answer

  • @vainavihome6743
    @vainavihome6743 Před 11 měsíci +1

    Can the same program be used for Arduino Nano

  • @Rahul-bk3fq
    @Rahul-bk3fq Před 3 lety +2

    Kya ham 3.3 volt zenre diaode use kar sakte hai gsm module ko power supply Karne ke liye aurdino se

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      you may use 1n4001 diode with 5v power supply

    • @Rahul-bk3fq
      @Rahul-bk3fq Před 3 lety +2

      Maine ln4007 diode use ki kyuki shopkeeper ne bola dono same hai lekin use kar raha hu toh gsm ki light hi blink nahi kar rahi

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      @@Rahul-bk3fq Check you voltages using multimeter

    • @Rahul-bk3fq
      @Rahul-bk3fq Před 3 lety +2

      Apke jaisi battery se hi karta hu waise confirm usse ho jayega na

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      @@Rahul-bk3fq yes

  • @MuhaimenSalik-o3o
    @MuhaimenSalik-o3o Před 8 měsíci

    hey sir ahmad i used tilt ball switch instead of PIR sensor and it works but there’s seems a delay like it is not consistent, sometimes it works and sometimes it’s not please i need help for my project

  • @034-santhoshca2
    @034-santhoshca2 Před 6 měsíci

    By using the sim 800l RX pin cannot handle the Arduino TX pin you can't stepdown the power why?

  • @DejanAcimovic-w2s
    @DejanAcimovic-w2s Před rokem

    Hi, thanks for video. How to use this system when electrical power lost in my house? What type of sensor to use? thanks.

  • @yipyap4743
    @yipyap4743 Před rokem +1

    If i change sa pir senor to sound sensor do i need to change the code?
    Hoping for imidiate response 🙏

  • @rishabhpatle5468
    @rishabhpatle5468 Před 2 lety

    Bhai hr isme laptop ko on rkhna pdega kya?? Automatic call lgne k liye??

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      it is just demonstration.
      power your project using battery and step up buck converter.

  • @johnackles7897
    @johnackles7897 Před 3 lety +1

    Bro can i use vibration sensor rather than motion sensor? Need help for my project please!!

  • @0124akash
    @0124akash Před 3 měsíci

    How to measure battery voltage using Arduino UNO, sim800l and LCD

  • @realexposer
    @realexposer Před 10 měsíci

    Will it work with nano?

  • @allenmofada2303
    @allenmofada2303 Před rokem

    hello, what did you do to the battery holder? how did you connect it with female jumper wire?

  • @nimsarayurantha2124
    @nimsarayurantha2124 Před 7 měsíci

    Thank you 💖❤️‍🔥

  • @mustafaerdekli5954
    @mustafaerdekli5954 Před 2 lety +1

    Dear Ahmed, I tried to adapt the millis code you gave to my own code, but it doesn't work, I couldn't. So I could not remove the delay command and replace it with the millis command. Although I failed, I will write the code I worked on below. I'm asking you, what could be the problem in this code? I would be glad if you help.
    ''''
    #include
    long previousMillis = 0;
    long interval = 20000;
    SoftwareSerial mySerial(3, 2);
    int pirsensor = 11;
    void setup() {
    randomSeed(analogRead(0));
    Serial.begin(9600);
    mySerial.begin(9600); // original 19200. while enter 9600 for sim900A
    Serial.println(" logging time completed!");
    pinMode(pirsensor, INPUT);
    delay(100);
    }
    void loop() {
    unsigned long currentMillis = millis();

    if(currentMillis - previousMillis > interval) {

    previousMillis = currentMillis;
    }

    if ( digitalRead(pirsensor) == HIGH)
    {
    Serial.println("making call");
    mySerial.println("AT"); //Once the handshake test is successful, i t will back to OK
    updateSerial();
    mySerial.println("ATD+ +90xxxxxxxxxxxx;"); // change ZZ with country code and xxxxxxxxxxx with phone number to dial
    updateSerial();

    mySerial.println("ATH"); // hang up
    updateSerial();
    delay(2000);
    mySerial.println("AT"); // SEEKING 2nd TEL
    updateSerial();
    mySerial.println("ATD+ +90xxxxxxxxxxxxx;"); // change ZZ with country code and xxxxxxxxxxx with phone number to dial
    updateSerial();

    mySerial.println("ATH"); // hang up
    updateSerial();
    delay(2000);
    }
    if ( digitalRead(pirsensor) == LOW)
    {
    ;
    delay(1000);
    }
    }
    void updateSerial()
    {
    delay(500);
    while (Serial.available())
    {
    mySerial.write(Serial.read());//Forward what Serial received to Software Serial Port
    }
    while(mySerial.available())
    {
    Serial.write(mySerial.read());//Forward what Software Serial received to Serial Port
    }
    }
    ''''
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    original version of software
    ''''
    #include
    SoftwareSerial mySerial(3, 2);
    int pirsensor = 11;
    void setup() {
    randomSeed(analogRead(0));
    Serial.begin(9600);
    mySerial.begin(9600); // original 19200. while enter 9600 for sim900A
    Serial.println(" logging time completed!");
    pinMode(pirsensor, INPUT);
    delay(100);
    }
    void loop() {
    if ( digitalRead(pirsensor) == HIGH)
    {
    Serial.println("making call");
    mySerial.println("AT"); //Once the handshake test is successful, i t will back to OK
    updateSerial();
    mySerial.println("ATD+ +90xxxxxxxxxxxxxx;"); // change ZZ with country code and xxxxxxxxxxx with phone number to dial
    updateSerial();
    delay(20000); // wait for 20 seconds...
    mySerial.println("ATH"); // hang up
    updateSerial();
    delay(2000);
    mySerial.println("AT"); // SEEKING 2nd TEL
    updateSerial();
    mySerial.println("ATD+ +90xxxxxxxxxx;"); // change ZZ with country code and xxxxxxxxxxx with phone number to dial
    updateSerial();
    delay(20000); // wait for 20 seconds...
    mySerial.println("ATH"); // hang up
    updateSerial();
    delay(2000);
    }
    if ( digitalRead(pirsensor) == LOW)
    {
    ;
    delay(1000);
    }
    }
    void updateSerial()
    {
    delay(500);
    while (Serial.available())
    {
    mySerial.write(Serial.read());//Forward what Serial received to Software Serial Port
    }
    while(mySerial.available())
    {
    Serial.write(mySerial.read());//Forward what Software Serial received to Serial Port
    }
    }
    ''''

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      try this
      if(currentMillis - previousMillis > interval) {
      previousMillis = currentMillis;
      mySerial.println("ATH"); // hang up
      updateSerial();
      }

  • @biswa69
    @biswa69 Před 2 lety +1

    i am using ir sensor instead of pir sensor and using the same code as given below. but after completing all the steps , call as going automatically without even sensing something, even after I disconnect my my ir sensor output to arduino , still it calls automatically , please help me out , I am stuck

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      I think the same code will not work with ir sensor

  • @mrogaming3083
    @mrogaming3083 Před rokem

    Uno cable project ke time connect hi rkhna padta hai kya

  • @prestazitutoring-bimbingan2262

    How to make the alarm sound louder on the device (alarm sound isnot only in the Phone)

  • @mehreenfatima9929
    @mehreenfatima9929 Před 2 lety

    Aslamuailkum sir
    One dout
    in place of antenna of sim800l wt you solderd pls can uh tell because i'm doing this as project ...
    Mashallah videos... Jazakallah ♥

  • @shuvojitbarman9378
    @shuvojitbarman9378 Před rokem

    Where does the cable goes from arduino uno

  • @devbhodia1283
    @devbhodia1283 Před 2 lety

    Is it alright if i use normal generic uno and not arduino uno
    for the project

  • @Rahul-bk3fq
    @Rahul-bk3fq Před 3 lety +1

    Waise sir apne Kya use Kiya hai ye

  • @z2islash406
    @z2islash406 Před rokem

    Sir instead of battery can i use a adapter of 12V?? Hoping for ur reply sir

    • @AhmadLogs
      @AhmadLogs  Před rokem

      The SIM800L module requires a power supply voltage between 3.4 volts and 4.4 volts to operate correctly. If you are using a 12 volt power adapter, you will need a step-down buck converter to convert the voltage from 12 volts down to 4.4 volts in order to power the SIM800L module properly.

    • @z2islash406
      @z2islash406 Před rokem

      @@AhmadLogs on sir but what is that on sim800L something which is of black colour and has a rectangle shaped something at the end

    • @AhmadLogs
      @AhmadLogs  Před rokem

      @@z2islash406 are you talking about the antenna?

    • @z2islash406
      @z2islash406 Před rokem

      @@AhmadLogs yes sir does it come with gsm module 800L??

    • @AhmadLogs
      @AhmadLogs  Před rokem

      @@z2islash406 no. you will have to buy it separately

  • @devbhodia1283
    @devbhodia1283 Před 2 lety

    can i turn off when at home and turn on when i am not
    also will it eork if i use sim 800l evb

    • @AhmadLogs
      @AhmadLogs  Před 2 lety +1

      yes you can by updating the code. you might also use sim800l evb

  • @aby7742
    @aby7742 Před rokem

    Hello can i connect a buzzer to the circuit? Do i need to change the code...may i kñow that ...

    • @AhmadLogs
      @AhmadLogs  Před rokem

      it is required to change in the code.

  • @Rahul-bk3fq
    @Rahul-bk3fq Před 3 lety

    Kya ham gsm module ke sath Jo antina jaisa milta hai wo use kar sakte hai?

  • @commandolee3608
    @commandolee3608 Před 2 lety

    A grateful thanks to "AHMAD LOGS", you are a great teacher. It works, but how can I delay the ring for at least 5seconds...???

    • @commandolee3608
      @commandolee3608 Před 2 lety

      The call(0.8seconds) doesn't stay long like the one you demonstrated, how can that be done(ringing (5seconds)) ?????

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      it rings for 15 seconds. what is the output in serial monitor?

  • @PersianEngineering
    @PersianEngineering Před měsícem

    it doesn't work for me 🙁
    Help please

  • @meetbundela
    @meetbundela Před rokem

    Sir is it possible to use ultrasonic sensor instead of pir sensor?

    • @AhmadLogs
      @AhmadLogs  Před rokem

      watch this video czcams.com/video/wYxnpwkHvGU/video.html

    • @meetbundela
      @meetbundela Před rokem

      @@AhmadLogs thank you very much sir

  • @shahriarizadi9049
    @shahriarizadi9049 Před rokem

    I have a question ... I have " Serial port not selected " problem in upload , and " board at null is not available" problem while clicking Serial monitor option. what should I do ? thanks for your help.

  • @marioledesma8739
    @marioledesma8739 Před 2 lety

    I already follow the steps and code. But why I can't receive calls? The codes are correct. Does it need a load to make a phone call allert?

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      no need any load to make a phone call. when the pir motion sensor detects the motion it will call automatically.

    • @marioledesma8739
      @marioledesma8739 Před 2 lety

      Same problem. What is the solution for this

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      @@marioledesma8739 if your sim800l is working then the project will must worked.
      1. please test your gsm module.
      2. check the led status of your sim800l module. 3.
      make a call to sim800l to see if it is responding or not

  • @electricalworld3339
    @electricalworld3339 Před 3 lety

    Very good
    Can add at send sms active any sound

  • @KayrandDesigns
    @KayrandDesigns Před 2 lety +1

    Nice job. I tried it out. The code loaded successful but not working. Pls what could be the possible problems

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      what is the LED light status of sim800l

    • @KayrandDesigns
      @KayrandDesigns Před 2 lety

      @@AhmadLogs It's a led red light that blinks every 3 seconds

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      @@KayrandDesigns can you please tell me that what is displaying in serial monitor.

    • @KayrandDesigns
      @KayrandDesigns Před 2 lety

      @@AhmadLogs Its an inverted question mark

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      @@KayrandDesigns 1. as I know, it is a boudrate issue. please check the baudrate from bottom right corner of serial monitor. it must be 115200.
      2. please check the rx and tx connection. use good quality wires for rx and tx.
      3. if there is still isssue. then you need a voltage divider (3.3v) for tx pin of sim800l gsm module.

  • @Rahul-bk3fq
    @Rahul-bk3fq Před 3 lety +1

    Bhai apne ye Battery kaha se li?

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      18650 3.7 volt. you may buy it from amazon or aliespress

    • @Rahul-bk3fq
      @Rahul-bk3fq Před 3 lety +1

      @@AhmadLogs Maine 2400 mah and 3.7 volt battery use ki but it doesn't works

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      @@Rahul-bk3fq it must work. you need to test some other sim800l module. I think some pins of your module may faulty

  • @techwithalan7554
    @techwithalan7554 Před rokem

    It can work without laptop

  • @birukgetu3345
    @birukgetu3345 Před 3 lety

    dear sir, how i incorporate multiple other alarm sensors, please help me i have a project with that within this two weeks

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      I will try to make a video on this topic soon

  • @ShubhamPandey-ej3bk
    @ShubhamPandey-ej3bk Před 11 měsíci

    Sur everything is working properly getting call but on serial monitor it's showing?¿???

    • @KanuChinasa
      @KanuChinasa Před 5 měsíci

      Greetings dear can I know how you did it

  • @joyalfred6542
    @joyalfred6542 Před 3 lety

    Is it possible to receive alarm on two different mobile number?

  • @CagatinJumelA
    @CagatinJumelA Před rokem

    why does mine failed uploading when im going to click the serial monitor? Hoping for your response sir.

  • @lazylloydie287
    @lazylloydie287 Před 3 lety

    bro can I use sim800a rather than sim800l? please reply bro. I need this for my project thanks.

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      yes, you may use

    • @lazylloydie287
      @lazylloydie287 Před 3 lety

      @@AhmadLogs last question bro. does the programming code still the same?

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      @@lazylloydie287 yes, because all sim800x module uses the same AT Commands Set.

    • @lazylloydie287
      @lazylloydie287 Před 3 lety

      @@AhmadLogs thanks bro. youve got a new subscriber

  • @dolar7949
    @dolar7949 Před 6 měsíci

    it doesn't work, the phone rings by itself without detecting motion

  • @Rahul-bk3fq
    @Rahul-bk3fq Před 3 lety +1

    Code me kisi library ki jarurat hai ?

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      no library needed.

    • @Rahul-bk3fq
      @Rahul-bk3fq Před 3 lety +1

      Lekin code me to #include likha hai iska matlab

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      @@Rahul-bk3fq it is a built-in library. you dont need to install it.. used for serial communication between arduino and sim800l.

  • @praveensharma673
    @praveensharma673 Před 3 lety

    sir mujhe isme 4 pir sensor lagane hai to code me kya kya change krna hai pls bataiye

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      repeat the pir code for all the sensors. when motion detect from any pir sensor then use a variable pir_sense = true. then checks
      if(pir_sense == true)
      {
      make_call();
      }

  • @azamjahangir3071
    @azamjahangir3071 Před rokem

    Hello sir how to add 3 phone no in ardiuno code

  • @mcichy10
    @mcichy10 Před 2 lety

    I am wondering how to do this project using esp8266 instead of arduino and power it with esp8266 module instead of battery. Could you please show me how to connect it?

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      you can use this code of esp8266. but sim800l cannot work if you power it from esp8266. sim800l required 3.4 to 4.4v.

  • @user-qy8rj9uo6l
    @user-qy8rj9uo6l Před 3 lety

    Is the number that I write in the code the number of the card inside the sim 800 or my phone number?

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      that will be your mobile phone number.

    • @user-qy8rj9uo6l
      @user-qy8rj9uo6l Před 3 lety

      @@AhmadLogs And the card number where I put it in the code

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      @@user-qy8rj9uo6l no need to add the gsm module sim card number in the code. just add you mobile phone number on which you need to get the response call

    • @user-qy8rj9uo6l
      @user-qy8rj9uo6l Před 3 lety

      @@AhmadLogs Do you have Insta to contact you

  • @14mohanraj65
    @14mohanraj65 Před 3 lety

    Can i use any other battery than this?

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      you may use mobile phone battery

  • @user-vm9eb4lx7o
    @user-vm9eb4lx7o Před 8 měsíci

    It showing no carrier pls help

  • @BhumiharHarsh9693
    @BhumiharHarsh9693 Před 10 měsíci

    Link sa kux aur open ho gaya hai

  • @rks4610
    @rks4610 Před 3 lety

    Awesome bro...can we make this whitout ardunio

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      to control sim800l micro controller is required

    • @rks4610
      @rks4610 Před 3 lety

      @@AhmadLogs thanks Ahmad share your insta I'd plz

  • @vincegalido3689
    @vincegalido3689 Před 2 lety

    Sir I've followed your procedures and goes up to "Motion Detected" then it says "NO DIALTONE" what does it mean? Hoping for your response Sir.

  • @farukm5742
    @farukm5742 Před 3 lety

    Agar motion detect ho jata hai to kitane bar repeat call aata hai?

  • @winxflynn1375
    @winxflynn1375 Před rokem

    hello! what programming app did you use for this project or what programming app can I use for windows in this project? thank you!

  • @sahilbhambure5821
    @sahilbhambure5821 Před 3 lety

    What changes do I make in the code
    if I want to send sms instead of a phone call?

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      Serial.println("Motion detected!");
      delete the code after line number 40.
      and add the following code
      sim800.print("AT+CMGF=1
      ");
      delay(1000);
      sim800.print("AT+CMGS=\""+PHONE+"\"
      ");
      delay(1000);
      sim800.print("Enter_your_message_here");
      delay(100);
      sim800.write(0x1A); //ascii code for ctrl-26 //sim800.println((char)26); //ascii code for ctrl-26
      delay(1000);
      Serial.println("SMS Sent Successfully.");

    • @sahilbhambure5821
      @sahilbhambure5821 Před 3 lety

      @@AhmadLogs Thank you so much😊

    • @subhendumondal7784
      @subhendumondal7784 Před 2 lety

      Hello Dear, I want to put this statement under a void function (void Reply(), for example ),,, but it didn't work, can you help me

  • @pruthvirajjagtap4752
    @pruthvirajjagtap4752 Před rokem

    Can it work with gsm800c ?

    • @AhmadLogs
      @AhmadLogs  Před rokem

      yes

    • @pruthvirajjagtap4752
      @pruthvirajjagtap4752 Před rokem

      @@AhmadLogs but I am not receiving any SMS or call ....but code runs ....please explain ....i use Vodafone idea sim ...it also works fine

  • @pfgdanish8852
    @pfgdanish8852 Před rokem

    Bhai sim 800l short ho gaya hai mera 2 basr kuch solution batao please urgent hai

  • @huzaifaaziz4605
    @huzaifaaziz4605 Před 2 lety

    can i run it direcly from usb connected to PC?

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      yes you can use a 1n40007 diode to step down the voltages for the sim800l. because sim800l does not work with 5v. So, you need to step down the voltages between 3.4v to 4.4v.

    • @huzaifaaziz4605
      @huzaifaaziz4605 Před 2 lety

      @@AhmadLogs okay so i did exactly as you did, SIM800l is blinking every second but there is not call

    • @huzaifaaziz4605
      @huzaifaaziz4605 Před 2 lety

      serial monitor shows this only
      SIM800L sof⸮⸮⸮⸮⸮⸮⸮⸮⸮

    • @huzaifaaziz4605
      @huzaifaaziz4605 Před 2 lety

      @@AhmadLogs okay so I now know the issue, the sim800l is blinking every second, means it has not connected to a network. how do fix it ? I have antenna too

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      @@huzaifaaziz4605 most of the time it is powering issue. to proper power supply

  • @Rahul-bk3fq
    @Rahul-bk3fq Před 3 lety +1

    Gsm module me light 7 times blink kar rahi hai 3s delay ke sath

  • @universalsolution6412
    @universalsolution6412 Před 2 lety

    please how can we make it to send sms alert instead of call

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      a lot of changes are required. you need to check my sim800l fire alarm video. In that project code, I have added both sms and call function

  • @Sajanepal24
    @Sajanepal24 Před rokem

    Hello brother i use this code in arduino nano the call was gone while motion is detect but i install a mic in Sim800l and when i receive the call the call was gone on hold.plz help me give me a new code by solve this problem 😢😢

    • @AhmadLogs
      @AhmadLogs  Před rokem

      I think you have modified the code

    • @Sajanepal24
      @Sajanepal24 Před rokem

      @@AhmadLogs bhai i need your help to complete my project how can i contact you?

  • @im_beezoy
    @im_beezoy Před 2 lety +4

    Okay! The main problem in this project is when you leave the system for few times it will call you automatically because this pir sensor comes without emi and rfi filter so radio signals coming from sim 800l will auto trigger pir sensor to high. I also made pcb and the isolated system, it failed.

    • @AhmadLogs
      @AhmadLogs  Před 2 lety +2

      can you give me some suggestions.
      to solve this issue you need to make changes in the code.
      like.... if motion is detected then read pir sensor pin for 1000 milliseconds. and then calculate an average motion. then make a decision (use if statement) according to the result of the calculation.

    • @techedgeict
      @techedgeict Před 2 lety +1

      please what was the final solution? bijay Acharya did you attempt his currection and implement it? if yes, does it work properly?

    • @im_beezoy
      @im_beezoy Před 2 lety

      Attepted ferrite beads failed.
      Isolated all system wiring but failed,
      Found out the pir sensor we use as module have high rate of accepting RFI coming out from sim800l or other modules like your phone as well, the only solution i got was to separate pir and sim module at least 8m and sim module must be kept inside black box but it's not a proper solution yk. Last but not least I gave up on this and ended up working on pir and this product. I hade made intruder alert system with pir where you can register 5 number on ATMEGA 328p at a time via text message saving to eeprom.
      don't use these module for commercial use.

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      @@im_beezoy can you give some suggestions about the some better pir sensor.

    • @prashantchaudhary5711
      @prashantchaudhary5711 Před 2 lety

      @@im_beezoy wahh daju, fire🤣

  • @mumukshuneve180
    @mumukshuneve180 Před 3 lety

    Mene PIR ki jagah flame sensor use kiya h is h code ko edit kr le bs call nhi aaraha haii

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      can I see your code?

    • @mumukshuneve180
      @mumukshuneve180 Před 3 lety

      @@AhmadLogs Sir project complete I make smart fire alerting system.
      Company me jha fire lagne ke jaga chances hote h wha is device ko laga do agar ye fire catch karega to direct mess fire station me chala jayegaa

    • @AhmadLogs
      @AhmadLogs  Před 3 lety +1

      @@mumukshuneve180 So nice of you

    • @mumukshuneve180
      @mumukshuneve180 Před 3 lety

      @@AhmadLogs thanku sir

  • @BhumiharHarsh9693
    @BhumiharHarsh9693 Před 10 měsíci

    Bhi code kasa nikal

  • @kalindukr343
    @kalindukr343 Před 2 lety

    isnt work for me
    why??

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      give me the full issue you are facing?

  • @virtuallearningpoint1430

    I have 4g vodafone sim
    It is not working when we check bY writing AT then OK COMES but after calling" no dialler tone" Is comes on serial screen .
    Is 4g not working here??

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      sim800l is only works with 2g. you need 4g module if you want to work with 4g

    • @virtuallearningpoint1430
      @virtuallearningpoint1430 Před 3 lety

      @@AhmadLogs yes bro but I think presently there is hard to have 2g sim so may be 4g module

    • @virtuallearningpoint1430
      @virtuallearningpoint1430 Před 3 lety

      @@AhmadLogs how you get 2g SIM

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      @@virtuallearningpoint1430 all 4g and 3g sim also have 2g support. ask your service provider for more detail. If AT command sends OK its mean it support 2g. have you balance in sim. f call is not working try to send sms. and tell me what happens

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      @@virtuallearningpoint1430 all of 4g sims support 2g. just ask for your service provider for more detail

  • @techwithalan7554
    @techwithalan7554 Před 2 lety

    In this code the the mobile number enter with country code

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      yes, mobile number with country code

  • @x3ater410
    @x3ater410 Před rokem

    I'm doing this project at school could you help me on discord on some mistakes

  • @user-qy8rj9uo6l
    @user-qy8rj9uo6l Před 3 lety

    مشاء الله

  • @adhiahmed3191
    @adhiahmed3191 Před rokem

    Give me a code

  • @Musicians_Iran
    @Musicians_Iran Před 2 lety

    Please linke site download code arduino sending

  • @mustafaerdekli5954
    @mustafaerdekli5954 Před 2 lety

    Ahmad, thank you very much for your help. Your code you specified but it didn't work. I'm not sure if I'm writing these codes in the right place, but it just doesn't work. It looks like it's not making a call from the serial port somehow, i.e. not making a call. This is the code I edited.
    ''''
    #include
    long previousMillis = 0;
    long range = 20000;
    SoftwareSerial mySerial(3, 2);
    int pirsensor = 11;
    invalid setup() {
    randomSeed(analogRead(0));
    Serial.start(9600);
    mySerial.begin(9600); // original 19200. enter 9600 for sim900A
    Serial.println("Registration expired!");
    pinMode(pirsensor, INPUT);
    delay(100);
    }
    void loop() {
    unsigned long streamMillis = millis();

    if(currentMillis - previousMillis > interval) {

    previousMillis = currentMillis;
    mySerial.println("ATH"); // hang up
    updateSeries();
    }

    if ( digitalRead(pirsensor) == HIGH)
    {
    Serial.println("searching");
    mySerial.println("AT"); //When the handshake test is successful, I won't go back to OK
    updateSeries();
    mySerial.println("ATD+ +90xxxxxxxxxxxx;"); // replace ZZ with country code and xxxxxxxxxxx with phone number to call
    updateSeries();

    mySerial.println("ATH"); // hang up
    updateSeries();
    delay(2000);
    mySerial.println("AT"); // SEEKING 2nd WIRE
    updateSeries();
    mySerial.println("ATD+ +90xxxxxxxxxxxx;"); // replace ZZ with country code and xxxxxxxxxxx with phone number to call
    updateSeries();

    mySerial.println("ATH"); // hang up
    updateSeries();
    delay(2000);
    }
    if ( digitalRead(pirsensor) == LOW)
    {
    ;
    delay(1000);
    }
    }
    void updateSeries()
    {
    delay(500);
    while (Serial. available())
    {
    mySerial.write(Serial.read());//Forward what Serial received to Software Serial Port
    }
    while(mySerial.available())
    {
    Serial.write(mySerial.read());//Forward Serial Software received to Serial Port
    }
    }
    ''''

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      when motion is detected then what is displayed in the serial monitor

  • @mustafaerdekli5954
    @mustafaerdekli5954 Před 2 lety

    Hello there . Thank you very much for your work. I have a request from you.
    "mySerial.println("ATD+ +9++++++++++;");
    updateSeries();
    delay (20000); " . Among these command information, if the called number is busy or rejects the call, it must end the call without waiting for 20 seconds. What kind of code should be written for that.

    • @AhmadLogs
      @AhmadLogs  Před 2 lety

      if you don't want to add delay then you must used milli timer. you have every seen the code like.
      before the setup function
      long previousMillis = 0;
      long interval = 20000;
      in the loop function
      unsigned long currentMillis = millis();
      if(currentMillis - previousMillis > interval) {
      // save the last time you blinked the LED
      previousMillis = currentMillis;
      //here do whatever you want
      }
      so, use the above code for reference

    • @mustafaerdekli5954
      @mustafaerdekli5954 Před 2 lety

      Mr. Ahmad, thank you very much for your help. I failed to do this. When the other party rejects the call made via Sim800l, it waits for 20 seconds. However, when the other party refuses, the call must be terminated immediately. Below I am sending you my own code. I would be very grateful if you could make this code the way I want it.
      //SL IDEAS
      #include
      SoftwareSerial mySerial(3, 2);


      int pirsensor = 11;

      void setup() {
      randomSeed(analogRead(0));
      Serial.begin(9600);
      mySerial.begin(9600); // original 19200. while enter 9600 for sim900A
      Serial.println(" logging time completed!");
      pinMode(pirsensor, INPUT);


      delay(100);

      }

      void loop() {


      if ( digitalRead(pirsensor) == HIGH)
      {
      Serial.println("making call");

      mySerial.println("AT"); //Once the handshake test is successful, i t will back to OK
      updateSerial();

      mySerial.println("ATD+ +905+++++++++;"); // change ZZ with country code and xxxxxxxxxxx with phone number to dial
      updateSerial();
      delay(20000); // wait for 20 seconds...
      mySerial.println("ATH"); // hang up
      updateSerial();

      delay(2000);
      mySerial.println("AT"); // SEEKING 2nd TEL
      updateSerial();

      mySerial.println("ATD+ +905+++++++++;"); // change ZZ with country code and xxxxxxxxxxx with phone number to dial
      updateSerial();
      delay(20000); // wait for 20 seconds...
      mySerial.println("ATH"); // hang up
      updateSerial();

      delay(2000);
      }
      if ( digitalRead(pirsensor) == LOW)
      {

      ;
      delay(1000);
      }

      }




      void updateSerial()
      {
      delay(500);
      while (Serial.available())
      {
      mySerial.write(Serial.read());//Forward what Serial received to Software Serial Port
      }
      while(mySerial.available())
      {
      Serial.write(mySerial.read());//Forward what Software Serial received to Serial Port
      }
      }

    • @subhendumondal1682
      @subhendumondal1682 Před 2 lety

      @@AhmadLogs Hello Mr. Ahmad, Could you please guide me where to put the script in the loop function?
      long previousMillis = 0;
      long interval = 20000;
      void loop(){
      while(sim800.available()){
      Serial.println(sim800.readString());
      }
      while(Serial.available()) {
      sim800.println(Serial.readString());
      }
      int val = digitalRead(pir_sensor); // read sensor value
      Serial.print("Sensor Value is: ");
      Serial.println(val);
      if (val == HIGH) { // check if the sensor is HIGH
      Serial.println("Motion detected, Theft Alert !!!");
      Serial.println("Calling....");
      delay(1000);
      sim800.println("ATD"+PHONE+";");
      delay(20000); //20 sec delay
      sim800.println("ATH");
      delay(1000); //1 sec delay
      }
      else
      {
      val = LOW;
      Serial.println("You are Safe...");
      }
      }

  • @arvinddrvin8897
    @arvinddrvin8897 Před 3 lety +1

    Bro, can I use sim 900a for this project?

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      yes you can use without need to make any change in the code

    • @arvinddrvin8897
      @arvinddrvin8897 Před 3 lety

      @@AhmadLogs thank you so much bro

  • @chakradharreddychandu760

    Bro can I use Arduino nano instead of uno and ir sensor instead of pir sensor

  • @sherifadekunle4452
    @sherifadekunle4452 Před 3 lety

    Can I use 9v battery to power the Sim board?

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      Never, you sim800l will blast

  • @joydipraj6210
    @joydipraj6210 Před rokem

    Sir I am using 4g sim so it is not taking network sim800L what should I do

  • @birukgetu3345
    @birukgetu3345 Před 3 lety

    dear sir, how i incorporate multiple other alarm sensors with this project, please help me i have a project with that within this two weeks

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      you need to update the sketch to use multiple sensors

    • @birukgetu3345
      @birukgetu3345 Před 3 lety

      @@AhmadLogs how, please help

    • @AhmadLogs
      @AhmadLogs  Před 3 lety

      @@birukgetu3345 you need to make functions for each sensor. After making all sensor functions you need to add that functions to my sketch

    • @birukgetu3345
      @birukgetu3345 Před 3 lety

      @@AhmadLogs thank you very much sir, a working with it