I need help and would be very appreciative while I learn!
Trying to get a GPS module working, but it only seems to run the ‘setup’ and nothing happens from the ‘loop’.
I’ve read that sometimes it needs to be left on for 15 mins the first time, to locate satellites etc. but its been on for 2 hours and nothing. the gps unit is this:http://www.ebay.co.uk/itm/152372095754?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
I’m using this tutorial, my code is identical, including the pin setup etc:
my code is:
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
Serial.begin(9600);//This opens up communications to the Serial monitor in the Arduino IDE
serial_connection.begin(9600);//This opens up communications to the GPS
Serial.println(“GPS Start”);//Just show to the monitor that the sketch has started
while(serial_connection.available())//While there are characters to come from the GPS
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