LS0031 unable to connect

Hi,

I’m using a Mega 2560 board and the Tx GPS Pin 3 is connected to RX1 -19 on the board. I’ve tried to test the GPS but Im not getting anything

is there anything else that I can try of look at?

Thank you

    void setup() {
      Serial.begin(57600); 
    }


    void loop() {
      if(Serial1.available()){
      Serial.write(Serial1.read());
      }
    }

Read the datasheet and figure out what the default baud rate of the LS0031 is…

Got it to work using the following code:

#include <TinyGPS.h>
    #define nss Serial1
     
    TinyGPS gps;
 
     
    void setup()
    {
      Serial.begin(115200);
      nss.begin(57600);
     
      Serial.println("TinyGPS Satellite Count Mod Test");
      Serial.println();
    }
     
    void loop()
    {
      if (nss.available())
      {
        if (gps.encode(nss.read()))
        {
          Serial.print("Satellites in view: ");
          Serial.println(gps.satsinview(), DEC);
     
          if (gps.fixtype() == TinyGPS::GPS_FIX_NO_FIX)
          {
            Serial.print("No fix.");
          }
          else
          {
            // we have a fix (could be GPS_FIX_2D or GPS_FIX_3D)
            Serial.print("Fix type: ");
            if (gps.fixtype() == TinyGPS::GPS_FIX_2D)
              Serial.println("2D");
            else
              Serial.println("3D");
     
            Serial.print("Satellites used: ");
            Serial.println(gps.satsused(), DEC);
     
            // You can do the rest of your coding here - e.g. gpsdump()
          }
        }
      }
    }