🤖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?

    Modules
    3
    9
    13.6k
    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
      poydevelop
      last edited by

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

      1 Reply Last reply Reply Quote 0
      • T
        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
          poydevelop
          last edited by

          Thx sir.

          1 Reply Last reply Reply Quote 0
          • P
            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
              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
                poydevelop
                last edited by

                how to cutting the existing bridge?

                P 1 Reply Last reply Reply Quote 0
                • P
                  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
                    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
                      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
                      • First post
                        Last post