Problem while interfacing GPS Module with Arduino Uno

Hey,

I seem to be having problems while Interfacing a LS2003C-G (Standalone multiple GNSS smart antenna module) with my Arduino Uno Board.

The Output on the Serial Monitor is blank .
I want to get and display the data from the GPS module continuously. Could Someone please help me out

CODE :

String a;

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

}

void loop() {

if (Serial.available() > 0)
{ a = Serial.readString();
}
Serial.println(a);
delay(3000);
}

sketch_jun15a.ino (176 Bytes)

What happens when you don't attach the module to the pins you're using to talk to the PC, and use a software serial instead?

No ::) , Doesn't seem to be helping either . All i'm Getting is some gibberish.

OK, thanks for letting me know. Get back to us when you need help.

(Gibberish is better than nothing, in my experience)

NeoGPS

NO :( It gives one set of values and then doesn't loop further/Doesn't give any more output

It gives one set of values…

“It” what? What values? What connections? Have you read this?

Did you read the NeoGPS Troubleshooting section?

Serial is just the Arduino-to-PC connection, not the GPS-to-Arduino connection. Your GPS should not be connected to pins 0 & 1. Pins 8 & 9 would be best, so you can use AltSoftSerial: GPS TX to UNO 8, and GPS RX to UNO 9. A simple echo program would copy the data from 8/9 to Serial (0/1) so you can see it on the Serial Monitor Window:

AltSoftSerial gps_port;

void setup()
{
  Serial.begin( 9600 );
  gps_port.begin( 9600 );
}

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

This just shows the raw GPS characters, things like

    $GPRMC,235959.99,A,2149.65726,N,16014.69256,W,8.690,359.99,051015,9.47,E,A*26
    $GNGLL,0105.60764,S,03701.70233,E,225627.00,A,A*6B

To extract location or speed fields, you can learn how to parse those strings, or you can use a GPS library. That what NeoGPS is good for: parsing those strings into variables you can use. If you want to try the NeoGPS example NMEA.ino, you would change these lines, near the top:

#if defined( UBRR1H )
  // Default is to use Serial1 when available.  You could also
  // use NeoHWSerial, especially if you want to handle GPS characters
  // in an Interrupt Service Routine.
  //#include <NeoHWSerial.h>
#else
  // Only one serial port is available, uncomment one of the following:
  //#include <NeoICSerial.h>
  #include <AltSoftSerial.h>                        <---- uncomment this line
  //#include <NeoSWSerial.h>
  //#include <SoftwareSerial.h> /* NOT RECOMMENDED */
#endif

Make sure all the serial include statements are commented out, as above. NMEAloc.ino is another simple example.

Cheers,
/dev