Neo 6m not working properly

Hi,

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 should i do? Is my module are broken?

Oh btw my module LED already blinking

Usually, that kind of garbage indicates a baud rate mismatch. Perhaps your GPS is not running at 9600 baud.

Try changing the GPS baud rate, maybe 4800 baud.

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.

For reference take a look here: https://lastminuteengineers.com/neo6m-gps-arduino-tutorial/

Regards

Download the Ublox software and connect your 6m to it with a serial-USB adaptor.
Its an easier way to see what's going on.

Hi guys, that problem is solved . The problem is, I forgot to connect Arduino ground with my psu ground. Btw thank's for all suggestion.

Well done.

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.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.