🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to use GPS module with SIM800L Module?

    Scheduled Pinned Locked Moved Modules
    9 Posts 3 Posters 17.8k Views 1 Watching
    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.
    • P Offline
      poydevelop
      last edited by

      I can't find the document. help me please.

      1 Reply Last reply Reply Quote 0
      • T Offline
        tkl
        last edited by

        Change the pins for the GPS module as follows (by cutting the existing bridge and re-soldering). Only downside is, that the Serial monitor/output is not available anymore

        • RXD: 1
        • TXD: 3
        • PPS (not connected)

        Now, you can use the GPS module on the serial port 0:

        // The TinyGPS++ object
        TinyGPSPlus gps;
        // The serial connection to the GPS device
        HardwareSerial gps_serial(0);
        gps_serial(GPSBaud);
        
        // ... (within a loop/smart delay)
        while (gps_serial.available())
            gps.encode(gps_serial.read());
        

        For the SIM800L you can use the regular configuration without changing anything:

        ...
        #define SerialAT Serial2
        TinyGsm modem(SerialAT);
        TinyGsmClient client(modem);
        ...
        
        1 Reply Last reply Reply Quote 0
        • P Offline
          poydevelop
          last edited by

          Thx sir.

          1 Reply Last reply Reply Quote 0
          • P Offline
            poydevelop
            last edited by

            esptool.py v2.6-beta1
            Serial port COM3
            Connecting......................................_____

            A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

            m5-docsM 1 Reply Last reply Reply Quote 0
            • m5-docsM Offline
              m5-docs @poydevelop
              last edited by

              @poydevelop Try to clean the flash

              M5Stack documentation URL

              https://docs.m5stack.com

              1 Reply Last reply Reply Quote 0
              • P Offline
                poydevelop
                last edited by

                how to cutting the existing bridge?

                P 1 Reply Last reply Reply Quote 0
                • P Offline
                  poydevelop @poydevelop
                  last edited by

                  0_1552898007881_37200.jpg

                  I re-soldering RX-1 and TX-3. is it correct?

                  m5-docsM 1 Reply Last reply Reply Quote 0
                  • m5-docsM Offline
                    m5-docs @poydevelop
                    last edited by

                    @poydevelop Need to cut the two lines which are RX-17, TX-16 with a knife first, then re-sold RX-1, TX-3

                    M5Stack documentation URL

                    https://docs.m5stack.com

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      poydevelop @m5-docs
                      last edited by

                      @watson 0_1552903269387_53808727_264318361185264_1820011547234140160_n.jpg
                      Thank you sir, knife it work.

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post