I have recently got one of these U-blox from the lovely ebay (China)
http://www.ebay.com.au/itm/ublox-u-blox-NEO-6M-GPS-module-antenna-build-in-eeprom-/130801842102
and behold I am having some issues with it, I think it could be the actual GPS module but still I want to rule out if it is something stupid I have done.
it is a very basic setup 4 pins ( pin 1 ( VCC = 5 volt) pin 2 Tx ,pin 3 Rx pin 4 Ground)
I have tried to use the tiny GPS library with no luck TinyGPS | Arduiniana
I get the sketch loaded and it looks like it connects as it get a green led on the board that looks like it is communicating but I just no values returned.
am I meant to get some kind of data from the GPS data even if it not connected?
I have even tried just the simple sketch to connect to ublox centre to see if I get anything and nothing this is the code from tiny gps that I was trying.
any help would be great.
#include <TinyGPS.h>
#include <SoftwareSerial.h>
unsigned long fix_age;
SoftwareSerial GPS(0,1); // rx = pin 0 tx = pin 1
TinyGPS gps;
void gpsdump(TinyGPS &gps);
bool feedgps();
void getGPS();
long lat, lon;
float LAT, LON;
void setup(){
GPS.begin(9600);
Serial.begin(9600);
}
void loop(){
long lat, lon;
unsigned long fix_age, time, date, speed, course;
unsigned long chars;
unsigned short sentences, failed_checksum;
// retrieves +/- lat/long in 100000ths of a degree
gps.get_position(&lat, &lon, &fix_age);
getGPS();
Serial.print("Latitude : ");
Serial.print(LAT/100000,7);
Serial.print(" :: Longitude : ");
Serial.println(LON/100000,7);
}
void getGPS(){
bool newdata = false;
unsigned long start = millis();
// Every 1 seconds we print an update
while (millis() - start < 1000)
{
if (feedgps ()){
newdata = true;
}
}
if (newdata)
{
gpsdump(gps);
}
}
bool feedgps(){
while (GPS.available())
{
if (gps.encode(GPS.read()))
return true;
}
return 0;
}
void gpsdump(TinyGPS &gps)
{
//byte month, day, hour, minute, second, hundredths;
gps.get_position(&lat, &lon);
LAT = lat;
LON = lon;
{
feedgps(); // If we don't feed the gps during this long routine, we may drop characters and get checksum errors
}
}