I have neo 6m gps module. But i have some problem. I use this code
#include <SoftwareSerial.h>
#define rxPin 8
#define txPin 9
SoftwareSerial gpsSerial(rxPin,txPin);
void setup()
{
//Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(115200);
//Begin serial communication with Arduino and SIM800L
gpsSerial.begin(9600);
Serial.println("Initializing...");
delay(1000);
}
void loop()
{
while (gpsSerial.available() > 0)
Serial.write(gpsSerial.read());
}
But in the serial monitor, showing like this (Not showing coodinates)
What I see is that you started Serial Monitor at 115200 baud and the gpsSerial at 9600 baud, so that might be the error. You will get Raw NMEA sentences when the baud rate matches. Then you can use some libraries like the TinyGPS++ to parse the senteces.
A photo of the physical setup is usually useful for others to help. A sketch of the wiring is also useful. Just doing the sketch might have lead you to see the lack of common ground.