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

    Issue With Module GPS v2.1 and M5Core2

    Core 2
    2
    6
    35
    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.
    • A
      aaapl
      last edited by

      Hi,

      I've been trying to receive any data from the GPS module connected to the M5Core2. Nothing seems to be working. I've followed all the instructions on the official documentation and configured the PINs correctly. It doesn't receive any raw data, but the blue led in the module is blinking.

      Has anyone had this problem and found any solution/any page to further investigate??

      Thanks in advance!

      robskiR 1 Reply Last reply Reply Quote 0
      • robskiR
        robski @aaapl
        last edited by

        @aaapl any code?

        M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab, M5CardputerAdv

        A 1 Reply Last reply Reply Quote 0
        • A
          aaapl @robski
          last edited by

          @robski I'm completely new to M5Stack so I'm not sure if this should be working. Here it is:

          #include <M5Core2.h>
          #include <TinyGPS++.h>
          
          TinyGPSPlus gps;
          HardwareSerial GPSRaw(2);
          
          void setup() {
            M5.begin();
            M5.Lcd.setTextSize(2);
            M5.Lcd.setTextColor(TFT_YELLOW);
            M5.Lcd.println("Test GPS v2.1 - Core2");
            M5.Lcd.setTextColor(TFT_WHITE);
            M5.Lcd.println("Waiting satellites...");
          
            GPSRaw.begin(9600, SERIAL_8N1, 13, 14);
          }
          
          void loop() {
            M5.update();
            
            while (GPSRaw.available() > 0) {
              gps.encode(GPSRaw.read());
            }
          
            if (gps.location.isUpdated()) {
              M5.Lcd.fillRect(0, 60, 320, 180, BLACK); 
              M5.Lcd.setCursor(0, 60);
              
              M5.Lcd.setTextColor(TFT_GREEN);
              M5.Lcd.printf("Connected satellites: %d\n\n", gps.satellites.value());
              
              M5.Lcd.setTextColor(TFT_WHITE);
              M5.Lcd.printf("LAT: %.6f\n", gps.location.lat());
              M5.Lcd.printf("LNG: %.6f\n", gps.location.lng());
              M5.Lcd.printf("HGH: %.1f meters\n\n", gps.altitude.meters());
              
              // UTC hour sync with satell
              if (gps.time.isValid()) {
                M5.Lcd.setTextColor(TFT_CYAN);
                M5.Lcd.printf("UTC hour: %02d:%02d:%02d\n", gps.time.hour(), gps.time.minute(), gps.time.second());
              }
            }
          }```
          robskiR 1 Reply Last reply Reply Quote 0
          • robskiR
            robski @aaapl
            last edited by

            @aaapl and module dip switches are set to?

            M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab, M5CardputerAdv

            A 1 Reply Last reply Reply Quote 0
            • A
              aaapl @robski
              last edited by

              @robski WhatsApp Image 2026-03-09 at 19.31.46.jpeg

              robskiR 1 Reply Last reply Reply Quote 0
              • robskiR
                robski @aaapl
                last edited by

                @aaapl have you tried pps set to say 25?

                M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab, M5CardputerAdv

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