MakerGram Logo

    MakerGram

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups

    SIM800L is not working after disconnecting with PC

    Arduino
    2
    17
    1966
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rafitc99
      rafitc99 @salmanfaris last edited by

      @salmanfaris Yes. I'm providing common ground. Resistors also working.

      salmanfaris 1 Reply Last reply Reply Quote 0
      • salmanfaris
        salmanfaris @rafitc99 last edited by

        @rafitc99 Great, can you try this simple code that only includes the SMS sending part! if it's working fine with and without the computer connection we can look it to the other parts!

        #include <SoftwareSerial.h>
        
        //Create software serial object to communicate with SIM800L
        SoftwareSerial mySerial(3, 2); //SIM800L Tx & Rx is connected to Arduino #3 & #2
        
        void setup()
        {
          //Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
          Serial.begin(9600);
        
          //Begin serial communication with Arduino and SIM800L
          mySerial.begin(9600);
        
          Serial.println("Initializing...");
          delay(1000);
        
        
        }
        
        void loop()
        {
        
          mySerial.println("AT"); //Once the handshake test is successful, it will back to OK
          mySerial.println("AT+CMGF=1"); // Configuring TEXT mode
          mySerial.println("AT+CMGS=\"+ZZxxxxxxxxxx\"");//change ZZ with country code and xxxxxxxxxxx with phone number to sms
          mySerial.print("SMS Test "); //text content
          updateSerial();
          mySerial.write(26);
        
          delay(7000);
        
        }
        
        rafitc99 1 Reply Last reply Reply Quote 0
        • rafitc99
          rafitc99 @salmanfaris last edited by

          @salmanfaris At that time not receiving an actual message. Receiving a blank message.

          salmanfaris 1 Reply Last reply Reply Quote 0
          • salmanfaris
            salmanfaris @rafitc99 last edited by

            @rafitc99 When powering SIM800L through DC-DC buck alone it's sending a message right?

            rafitc99 1 Reply Last reply Reply Quote 0
            • rafitc99
              rafitc99 @salmanfaris last edited by

              @salmanfaris When connecting with PC. It will work well.

              salmanfaris 1 Reply Last reply Reply Quote 0
              • salmanfaris
                salmanfaris @rafitc99 last edited by

                @rafitc99 when powering with the LM2596 it's not sending message text right? but sending blank SMS right?

                rafitc99 1 Reply Last reply Reply Quote 0
                • rafitc99
                  rafitc99 @salmanfaris last edited by

                  @salmanfaris Yes.

                  1 Reply Last reply Reply Quote 0
                  • salmanfaris
                    salmanfaris last edited by

                    Ok, then you need to check the LM2596 output current and voltage!

                    1 Reply Last reply Reply Quote 1
                    • rafitc99
                      rafitc99 last edited by

                      Thank-you @salmanfaris
                      It's solved.
                      Actually, It was my mistake. I didn't add a proper reset for MCU.

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post

                      Recent Posts

                      • @codelery Awesome. That's great news. Kudos to @rafitc99 . 🙌

                        @codelery Please keep us updated about your project, looking forward to seeing it in action 🤩

                        • read more
                      • C

                        @rafitc99 I changed the buffer and that solved the problem. Thanks a lot for coming to my rescue.

                        • read more
                      • C

                        @salmanfaris I did change the buffer size and everything is working perfectly. Thanks coming to my rescue.

                        • read more
                      • @codelery said in Help needed: Arduino Wireless Notice Board project:

                        I am using the hardware serial (pin 0 and 1 on Arduino Uno)

                        As @rafitc99 mentioned, you need to expand the Serila buffer, in the hardware serial also the Arduino board package implements a 64-byte ring buffer for send and receive on the hardware serial messages. So you need to change that to 256 as per your message length.

                        • read more
                      • C

                        @rafitc99 The thing is that I am not using the SoftwareSerial library in receiving the message from the first microcontroller. I am using the hardware serial (pin 0 and 1 on Arduino Uno)

                        • read more
                      By MakerGram | A XiStart Initiative | Built with ♥ NodeBB
                      Copyright © 2023 MakerGram, All rights reserved.
                      Privacy Policy | Terms & Conditions | Disclaimer | Code of Conduct