I'm following this example here to get my GPS module to work: How to use the GT U7 GPS module - YouTube
I'm using an arduino nano and the GT u7 module. The board connection is pretty straight forward, where the Rx is connected to pin 10, and Tx to pin 11. This is the code I'm using
#include "TinyGPS++.h"
#include "SoftwareSerial.h"
SoftwareSerial serial_connection(10, 11); //RX=pin 10, TX=pin 11
TinyGPSPlus gps;//This is the GPS object that will pretty much do all the grunt work with the NMEA data
void setup()
{
Serial.begin(115200);//This opens up communications to the Serial monitor in the Arduino IDE
serial_connection.begin(115200);//This opens up communications to the GPS
Serial.println("GPS Start");//Just show to the monitor that the sketch has started
}
void loop()
{
while(serial_connection.available())//While there are characters to come from the GPS
{ Serial.println("connected");
gps.encode(serial_connection.read());//This feeds the serial NMEA data into the library one char at a time
}
if(gps.location.isUpdated())//This will pretty much be fired all the time anyway but will at least reduce it to only after a package of NMEA data comes in
{
//Get the latest info from the gps object which it derived from the data sent by the GPS unit
Serial.println("Satellite Count:");
Serial.println(gps.satellites.value());
Serial.println("Latitude:");
Serial.println(gps.location.lat(), 6);
Serial.println("Longitude:");
Serial.println(gps.location.lng(), 6);
Serial.println("Speed MPH:");
Serial.println(gps.speed.mph());
Serial.println("Altitude Feet:");
Serial.println(gps.altitude.feet());
Serial.println("");
}
}
The only output I'm getting is the print statement in the setup function (GPS start), but I can't get any other output.
I've tested outside and waited for about 10-15 mins and still nothing.
Would appreciate any direction to look into.