GPS Fail to Receive Lat Lng using Arduino Uno

Hi, I'm having an issue obtaining the lat and lng.

Previously it is working very well in post Not able to obtain altitude value from Neo-6M GPS Module using arduino but now it won't.

I tested using 3 GPS modules with the same code, below is the log:
(Tested in an open space with blue sky...)
GPS Module A.log (26.9 KB)
GPS Module B.log (22.3 KB)
GPS Module C.log (21.8 KB)

Below is the code I used for testing:

#include <TinyGPSPlus.h>
#include <AltSoftSerial.h>

const uint32_t GPSBaud = 9600; //Default baud of NEO-6M is 9600

TinyGPSPlus gps;
AltSoftSerial GPSserial;

void setup() {
  Serial.begin(9600);
  GPSserial.begin(GPSBaud);

  Serial.println(F("Arduino - GPS module"));
}

void loop()
{
  while (GPSserial.available()) 
  {
    char c = GPSserial.read();
    gps.encode(c);
    Serial.write(c);
  }
}

Is it that all the GPS modules are dead? (But I don't really think so :melting_face:)
Or because of the satellite?

Let me know if you need anything, thanks. :slight_smile:

provide an image of the project all wired up.

1 Like

Post a link to the module.

The modules don't see enough satellites to get a fix. Do they have the correct antennas?

You mean the type of module?
All three are Neo-6M GPS Module.

How long did you wait for a lock?

No, he means a URL to exact specs or the page that you used to buy them.

In previous, it took me about 30 second to get all the information but yesterday I took more than 5 minutes.

On today, none of it are working/ take more than 5 minutes and only get date time value.

What was done in between 'working very well" and "now it won't"?

Hi @cheeseng523,

A couple of observations -

1. The fact that you are receiving NMEA data from the GPS receiver, indicates there is no issue with the code you are running on the Arduino Uno.

2. The Neo-6M GPS receiver module is fitted with a "Fix" indicator LED that should illuminate as soon as the GPS receiver obtains a GPX fix - Does this "Fix" indicator LED light up?

3. you say that you have tried 3 x different receiver, have these been used with the same antenna?
Do you have another antenna you can try?

On that note, verify that the DC bias power for the active antenna is present on the antenna port.

The Neo-6M is very popular with counterfeiters, especially if you bought them cheaply from, say, Alibaba.

Some of them do work, sometimes.

Can you revert to the working hardware, for verification? Then you can do some A/B substitution of parts to see what is bad.

I have changed the SoftwareSerial to AltSoftSerial.

And nothing has been done after this.

I have done some debugging such as:

  1. Use hardware serial in Arduino Uno.
  2. Use back the SoftwareSerial.

None of it works.

Hi, thanks for the advice.

There is once the light is up (I didn't record it in the log...), it only able to capture the date and time. The GPRMC and GPGGA does not contain any lat and lng.

Ooo, I will swap the GPS modules and Antennas in different combinations and see whether it will produce the result for me.

@anon57585045

May I know how to verify it?

Err, there is one set that work before but it currently fails the same as the others...
I will do swapping...

Hi,
Altsoftserial has pin 9 as TX and 8 as Rx, have you got them the right way around to the Neo.
Tx to Rx
Rx to Tx

Tom... :smiley: :+1: :coffee: :australia:

Yes, they are wired correctly.

Currently, I'm swapping all the 3 modules and the antennas in different combinations.

I will post the result in a table form soon. :smile:

Hi,
How have you got the UNO mounted on the protoboard?

Tom... :smiley: :+1: :coffee: :australia:

No, just use tape to tie all thing together :joy: