Hello everyone, I am new to this forum so if I post this at the wrong place just let me know ![]()
I purchased a ATGM336H GPS unit to replace a GY-NEO6MV2 GPS unit. Because the latter had some connection issues, and the unit was too large for the project I want to use it in.
However, even though on the page it says I can simply replace one unit with the other, and use the TinyGPS++ library, I cannot get it to work.
The red LED on the unit starts blinking once every second after a while, which supposedly means that it has found satalites.
But, when running the following script, it keeps displaying "longitude: 0.00, lattitude: 0.00".
#include <SoftwareSerial.h>
#include <TinyGPS++.h>
SoftwareSerial gpsSerial(8,9); //RX = 8, TX = 9
TinyGPSPlus gps;
float lattitude,longitude;void setup() {
gpsSerial.begin(9600);
Serial.begin(9600);}
void loop() {
int data = gpsSerial.read();
if (gps.encode(data))
{
lattitude = (gps.location.lat());
longitude = (gps.location.lng());
Serial.print ("lattitude: ");
Serial.println (lattitude);
Serial.print ("longitude: ");
Serial.println (longitude);
}
}
Unfortunatly I cannot find much information on this unit at all on the internet.
Do any of you have any experience with this module, and have you gotten it to work?
Or do you have any other information that might get it to work?
Thanks in advance!