Hiya, im using a neo 6m-0-001
unit connected to an uno board
using windows 7
the most up to date IDE
and the following code
#include <SoftwareSerial.h>
#include <TinyGPS.h> //credit to mikal hart
long lat,lon; // create variable for latitude and longitude object
SoftwareSerial serial(2, 3); // create gps sensor connection
TinyGPS gps; // create gps object
void setup(){
Serial.begin(9600); // connect serial
serial.begin(38400); // connect gps sensor
Serial.println("Position: ");
}
void loop(){
while(serial.available())
{
char c = serial.read();
Serial.print(c);
}
}
the problem:
im getting data, correct data, infact, the gps co-ordinates are more accurate than those that i get from my phone, the problem is, i dont seem to be getting enough data according to the format for the NMEA sentence being output
this is pretty much what im getting each time on the serial monitor
$GPRMC,174216.00,A,5339.53122,N,00147.55636,W,0.094,081114,A,
heres an example of what i should be getting from a GPRMC sentence
eg3. $GPRMC,220516,A,5133.82,N,00042.24,W,173.8,231.8,130694,004.2,W*70
1 220516 Time Stamp
2 A validity - A-ok, V-invalid
3 5133.82 current Latitude
4 N North/South
5 00042.24 current Longitude
6 W East/West
7 173.8 Speed in knots
8 231.8 True course
9 130694 Date Stamp
10 004.2 Variation
11 W East/West
12 *70 checksum
taken from here: http://aprs.gids.nl/nmea/#rmc
i seem to be getting clusters of commas with no information in between them, any clues?
any questions, let me know