SIM800L Programming With Arduino - GSM Module Arduino UNO

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ค. 2022
  • The goal of this video is to write an efficient code to control SIM800L using Arduino UNO. The code will be able to solve the common issues of SIM800L that you have faced while working with SIM800L. The code will ensures that the SIM800L will work all the time. If it got stuck in between a process then the code will restart the module to make it ready again.
    Buy SIM800L - amzn.to/3J48mlW
    --------------------------------------------------------------------------------------------------------------------
    Useful Video Links
    --------------------------------------------------------------------------------------------------------------------
    How to Use SIM800L With Arduino
    • How to Use SIM800L Wit...
    Home Automation Using NodeMCU ESP32 and Firebase | MIT App Inventor
    • Home Automation Using ...
    Advanced RFID Based Attendance System Using NodeMcu Version 2
    • Advanced RFID Based At...
    --------------------------------------------------------------------------------------------------------------------
    Social Media Links
    --------------------------------------------------------------------------------------------------------------------
    GitHub:
    github.com/ahmadlogs/
    TH-cam:
    th-cam.com/users/ahmadlogs?sub...
    --------------------------------------------------------------------------------------------------------------------
    Download Code
    --------------------------------------------------------------------------------------------------------------------
    github.com/ahmadlogs/arduino-...
    --------------------------------------------------------------------------------------------------------------------
    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.
    #Arduino #SIM800L #ArduinoProgramming

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

  • @hnmscreentech5680
    @hnmscreentech5680 5 หลายเดือนก่อน

    Excellente pédagogie. Travail remarquable de présentation de la vidéo. MERCI (de France)

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

    This is a nice snippet of code with a superb explanation to help us repurpose it easily

  • @PradeepKumar-ce6qb
    @PradeepKumar-ce6qb ปีที่แล้ว +1

    Thank you brother for the video. You are a best programmer and a best Teacher as well.

  • @allumolusrinivasu1529
    @allumolusrinivasu1529 10 หลายเดือนก่อน

    I am from India..you are a best programmer brother ..thank you.

    • @AhmadLogs
      @AhmadLogs  10 หลายเดือนก่อน

      So nice of you

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

    Sir your explanations are very much clear and easy to understanding !!!

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

      Thanks and welcome

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

    thank you Ahmad !! fantastic logic and great explenation . thank you once again..

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

      You are very welcome

  • @peraxoritis
    @peraxoritis 4 หลายเดือนก่อน

    Thanks for sharing with us you are the best developer thank you.

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

    Excellent video Ahmad!

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

      thank you so much

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

    Masha' Allah, excellent explanation ♥♥♥

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

      Many many thanks

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

    Very understandable 👍 thankyou

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

    Hello, the circuit I made when connected to the computer in the serial monitor receives and sends messages, but when it works alone, only SMS messages are received, and by pressing the reset button esp32 is fixed and sends messages too.??!!

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

    Excellent explanation sir. Sir we are waiting for your 4 in 1 gsm project with eeprom option in future thanks for sharing great ideas

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

      I will try my best

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

      @@AhmadLogs thanks sir appreciate

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

    Thank you very much Sir Ahmad.

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

      thanks for the visit

  • @ammarchebbi1546
    @ammarchebbi1546 3 หลายเดือนก่อน

    Great. Thank you.

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

    I'm going to buy sim800L but I can't decide. There 2 version of SIm800L. Red and Blue.
    Which one should I get for Arduino UN0?
    Is sim900A newer than sim800L?

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

    In Iran, to send a text message in Persian, you must hex the mode of sending the text message and after sending it, convert it to gsm to receive it again.
    Sometimes the sim settings are converted to hex again and it does not receive distorted text messages in English
    I used a millis function to fix these bugs like you
    👍

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

      that's great

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

    i really like your video.

    • @AhmadLogs
      @AhmadLogs  11 หลายเดือนก่อน

      thanks

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

    Your explanation is some sir ,do some more video and explain every concepts sir please eeeeeeeee

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

    Wow gr8 bro...

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

    Very good , nice job.

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

      Thank you very much!

  • @alektronix
    @alektronix 6 หลายเดือนก่อน

    In my case it is showing angstrom and reverse question mark instead of AT and OK

  • @karthik.g5154
    @karthik.g5154 ปีที่แล้ว

    Awesome 👌

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

      Thank you! Cheers!

  • @PradeepKumar-ce6qb
    @PradeepKumar-ce6qb ปีที่แล้ว

    Looking for more such videos

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

      give me some suggestions

  • @lamlastemela5343
    @lamlastemela5343 11 หลายเดือนก่อน

    Amazing explanation and thanks for that. How can I use a stand alone ATmega328P to drive a relay without the ARDUINO board itself but using the same code. In other words , shrinking the whole setup to GSM800l , ATmegs328P , Relay and Power Supply.

    • @AhmadLogs
      @AhmadLogs  11 หลายเดือนก่อน

      the same code will be used for ATmegs328P. just connect a 16mhz crystal to ATmegs328P.

  • @kitkirkyen2002
    @kitkirkyen2002 4 หลายเดือนก่อน

    SIR, YOU ARE REALLY AMAZING ANG GREAT! I ALWAYA FOLLOW YOUR VIDEOS AND WATCH IT.. THE ONLY PROBLEM THAT I HAVE NOW IS TO EXTRACT THE SENDER NUMBER AND COMPARE IT TO THE MY NUMBER IN SIMPLER CODING UF POSSIBLE. CAN YOU PLEASE SHARE SOME. THANK YOU ONCE AGAIN..

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

    Hello, i would send a Sms to my Smartphone with the command AT+CMGS, but i dont know, what the expected answer ist... Could you help me?

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

    Thanks for the effort

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

    Hi i want to send my sensor data on google spread sheet have u any idea just tell me how to write code

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

    Hello, in the first connection, sms read and call read messages appear on the computer monitor serial and after resetting esp32, everything is fixed.

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

      it required to update the code and we also need current and voltage sensor. I will try

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

    You are master.بارک الله

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

    Hello thank you for the tutorials it helps a lot by the way i am currently working on an IOT project with an ESP32 SIM7000G card i followed your example of GPS with sim800l but i have a problem i want to send the sensor data to firebase via sim7000g but i can't connect to the apn the apn connection fails i really need your help please

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

      ask for your sim card provider for the apn setting

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

    Good job. 👍

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

    crystal clear explanation !! ..
    I wanted to ask you ... what is the best and most efficient way to send the location from arduino ? ..
    if we connect a GPS and send the location in SMS by making a google maps link each time we recieve an sms.. will be okay ..
    but.. what if we want a real time tracking ? ..

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

      The best way to send the location using sim800l by send sms. sim800l has slow speed internet. so, it is not reliable for real time location, you need some stable internet connection for realtime tracking

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

      @@AhmadLogs thanks 🙏

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

      @@AhmadLogs what type of connection does it have? Like 3g? 4g?

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

    hello mr. Ahmad. will u be adding the new sim800l code to old codes? I mean I want to combine your old sim800l+esp32 relay controler code with the new code you wrote. Please record a video that combines old code with new works.

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

      I will definitely use the updated code in my new projects. I will try to update the code for my old project. but I have a very little times so I dont know when?

  • @luciafatima7229
    @luciafatima7229 3 หลายเดือนก่อน

    Can you make tutorial aboun when receive sms the sms will display in dot p10 and sms is scroling when midul sim800l receive new sms will clear the previous sms that displai in p10 display and show the new sms in p10 display... 🙏🙏🙏

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

    THANKS BRO

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

      also watch this th-cam.com/video/lYN8hqNAKbU/w-d-xo.html

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

    Hello, help me. I made the circuit, everything works well when connected to the computer, but when the battery or external power is used, everything is fine and it just doesn't send SMS. Look at my code in the gate.

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

      I am facing the same problem...you rectified the issue? Pls let me know how to solve

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

      @@asadeeshprabhakar There was an antenna problem, I connected it to an external antenna and the problem was solved

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

    sir is there any video describing how to read response of outgoing call?

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

      sir please make next video on this topic, it is very important. Thanks.

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

    Sir i have a nodemcu but I'm using it with blynk iot can you please tell me which pin of nodemcu is equal to which pin like A1 A2 A3 a full chart

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

      Loke pin2 is D4 of nodemcu

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

      you must have a look on it i0.wp.com/randomnerdtutorials.com/wp-content/uploads/2019/05/ESP8266-NodeMCU-kit-12-E-pinout-gpio-pin.png?quality=100&strip=all&ssl=1

  • @s.husain6125
    @s.husain6125 2 ปีที่แล้ว

    Thank you sir please make viedo on sleep mode and wake up the sim800l module to save battery

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

      hmmmm. trying

    • @s.husain6125
      @s.husain6125 2 ปีที่แล้ว

      @@AhmadLogs ok sir thanx

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

    thank you for the great job i understood every thing but in my project i need to get the sender number to resend a sms to him , their is any method for that??

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

      Glad it helped

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

    Hi can I ask a question? How to program limited sms in sim800L.

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

      please explain

  • @audreymirindi3186
    @audreymirindi3186 10 หลายเดือนก่อน

    Hello sir... Can the sim800l work with a 3G and 4G sim card?? If it doesn't support it please tell me I need an answer... I need an help sir

    • @AhmadLogs
      @AhmadLogs  10 หลายเดือนก่อน

      sim800l not work with 3g or 4g. you can use sim7600

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

    Hello Ahmad, good morning
    great job
    I am programming for esp32 with Micropyton. And I use Thonny ide.
    How can I protect the app from being accessed after uploading?

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

      you must have a look. docs.espressif.com/projects/esp-idf/en/latest/esp32/security/flash-encryption.html

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

    Hi, I actually wanted to ask that I'm using sim800l with Arduino uno to send SMS and make call simultaneously one after another but the problem is that after connecting to network call function is working really fine but SMS are not sent somehow,.... I've tried tons of code but SMS are not being sent please help if anyone can ! I would be really thankful

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

      I'd be happy to help you with this issue. use the following code to test the sim800l
      #include
      SoftwareSerial sim800l(2, 3); // RX, TX pins for SIM800L module
      void setup() {
      // initialize serial communication for debugging purposes
      Serial.begin(9600);
      while (!Serial);
      // initialize SIM800L module
      sim800l.begin(9600);
      delay(1000);
      // wait for network connection
      while (!sim800l.available()) {
      Serial.println("Waiting for network connection...");
      delay(1000);
      }
      // successful network connection
      Serial.println("Network connected.");
      }
      void loop() {
      // make a call
      callNumber("1234567890");
      // wait for call to end
      delay(10000);
      // send an SMS
      sendSMS("1234567890", "Hello World!");
      // wait for SMS to send
      delay(5000);
      }
      void callNumber(String number) {
      sim800l.println("ATD" + number + ";");
      Serial.println("Calling " + number);
      }
      void sendSMS(String number, String message) {
      sim800l.println("AT+CMGF=1"); // set SMS text mode
      delay(1000);
      sim800l.println("AT+CMGS=\"" + number + "\""); // send SMS to number
      delay(1000);
      sim800l.print(message); // send SMS message
      delay(1000);
      sim800l.write(26); // send CTRL+Z to end SMS message
      Serial.println("Sending SMS to " + number + " with message: " + message);
      }

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

    Hi Ahmad! Thank you very much for this tutorial, it's been really helpful!
    I wanted to ask you something: The main functions work flawlessly with an Arduino UNO, but I cannot make it work with a NodeMCU (ESP32). I'm using Serial2 instead of software serial, but I get an infinite loop with the getResponse or tryATcommand funcionts. The response is OK, but there is something with the function that cannot take the value and get the correct flag. Do you know how to solve this?
    I'm using exactly the same program in both, but replacing sim800l with Serial2 and not including the softwareSerial library. Thanks again!!

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

      its OK to use hardware serial ports of the esp32 instead of using any softwareSerial library. I have built this code on the Arduino UNO. I never tested it on the esp32. So, I will test it for the esp32 myself, and will try to figure out the issue. It must work with esp32. I think there is some little logic fail for the esp32. so I will try to fix this issue and let you know as soon as the issue is resolved

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

      @@AhmadLogs Thank you very much! Please let me know, I really tried everything to my knowledge and could not debug it!

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

      @@CheloIRL you might check the code of this project th-cam.com/video/OJcGY4ySs4o/w-d-xo.html
      I have updated the getResponse function and also added the resetSIM800L function. this code might be helpful

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

      @@AhmadLogs Hi Ahmad! I tried with the updated function but I still get the same output. It cannot break the loop for the tryATcommand and I get something like this:
      .AT
      AT
      OK
      .AT
      AT
      OK
      Etc.

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

      @@AhmadLogs Let me add that my main goal is to use the bottom "failsafe" for this program (the part that checks if the module is working fine and is connected to the microcontroller).
      Do you believe there's another way to make this failsafe? I was looking at your video on how to control a relay with an ESP32 from April 2021 (saw that this program doesn't have a failsafe). Thanks again!

  • @user-nc6ue4rn1d
    @user-nc6ue4rn1d ปีที่แล้ว

    سلام ، چطور به سورس کد دسترسی داشته باشیم..؟

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

    bravo to you and
    excellent

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

      thanks

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

      Would you please uplod this code🙏

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

      @@masoudjafarzadeh uploaded

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

      @@AhmadLogs tanks sir 🙏

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

    Very well explained video, thanks.
    altSoftSerial is a more reliable alternative than softwareSerial, can simultaneously transmit and receive but only available on set pins.
    Could you create the same functions using character arrays without the use of String?
    Thanks.

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

      Yes, you are right. but I never used altsoftserial simultaneously. I will try it in my gps and gsm projects
      I have tried many times with I will try to write the same function using character array. but I never feel comfortable with character array with sim800l

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

      @@AhmadLogs
      Try using hardware port (TX RX) for gps and altSoftSerial for Sim800L.
      I’ve been told to stay away from String and instead use character arrays.
      Thanks.

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

      @@iantcroft Yes you have told me before. I think there is some with software serial while reading characters. So, I will try using altsoftserial

  • @shivampathak2459
    @shivampathak2459 19 วันที่ผ่านมา

    hi i want send sms through api and get sms responce hit api whith response

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

    I have a question i try send sms and call it work successfully but in case of gprs i don't why it didn't work that mean there is problem in the power of the module it is lithium-ion battery 3.7 v the current supposed to be 2A but by using a meter we read 1.2 A is that the problem

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

      sim800l required 2A current in a fraction of a second, so you cannot measure it using multi meter, you need oscilloscope for this.
      1. 3.7v battery is adequate
      2. have you entered the correct apn and password of your sim card network provider
      3. what is displaying on the serial monitor while connecting to the serial monitor

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

      @@AhmadLogs yes i have make call and it was received and send sms the problem i don't see in serial monitor the response of module even when i make the call and sms

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

      @@ahmedgaballa8542 1. It means there is some issue with your serial connection to the sim800L. please double check the connection.
      2. have you select the correct baud rate from the serial monitor

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

      @@AhmadLogs I select 9600 baud rate

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

      @@AhmadLogs Sir our graduation project
      Send reads of ultrasonic to firebase as percent using sim800L
      and access by application
      To firbase and read these percent
      We use mega and same code of sending dht reads
      But coonect tx 18 Rx 19
      We should convert long int reads to string ? Can find response from gsm
      Or what the problem ?🥺

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

    thank you MASTER,I FOLLOWED YOUR TUTORIAL ABOUT SENDING DATA TO FIREBASE, IT WORKS GOOD, AFTER I USED DFROBOT LIBRARY FOR SIM808 MODULE, TO GET GPS COORDINATES, THE CODE COMPILE, BUT IT CANNOT SEND GPS COORDINATES , PLEASE HELP,,, i m a student electronics and computer sience,, ,,,,,

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

      but I never work on sim808

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

    Original .. Thanks

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

      Thank you too!

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

    Awesome 👍

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

      Thank you! Cheers!

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

    Please make a video on sim800l firmware flash or update .please

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

      I have tried many times but not any success

  • @lesterD0059
    @lesterD0059 4 หลายเดือนก่อน

    Can you help me brother on my arduino code?

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

    can you tell me how to program sim800l with esp32?

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

      the same concept wiil be used for esp32

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

      @@AhmadLogs does the program code use the same program code?

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

      @@nctzen1453 almost same

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

      @@nctzen1453 check this th-cam.com/video/dwbB3YGbBrY/w-d-xo.html

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

      my sim800l module can't send messages. I don't know why, even though the led blinks once every 3 seconds

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

    NICE ONE MY ENGINEER. BUT CODE NOT YET UPLOADED.