Hello
So I got some troubles getting the right data from a Garmin GPS:
First I plugged the Garmin to the PC to get some NMEA Data:
$GPGGA,121638,4724.0053,N,00830.5565,E,1,04,4.0,510.6,M,48.0,M,,*48
$GPGLL,4724.0053,N,00830.5565,E,121638,A,A*43
$GPBOD,,T,,M,,*47
$GPBWC,121638,,,,,,T,,M,,N,,A*74
$GPVTG,222.4,T,221.7,M,0.0,N,0.0,K*4E
$GPXTE,A,A,,,N,A*51
$PGRME,16.8,M,12.3,M,20.8,M*1B
$PGRMZ,1659,f*3F
$PGRMM,CH-1903*44
$HCHDG,221.7,,,0.7,E*28
That was what he sent to me every second.
Now i saw that this line is important:
$GPGGA,121638,4724.0053,N,00830.5565,E,1,04,4.0,510.6,M,48.0,M,,*48
I used the GPS Tutorial on the Arduino Website but without any success.
I just changed the GPRMC to GPGGA and changed some parameters.
I plugged the TX from the Garmin to the Rx und the Ground to the Ground.
But as i started the Terminal nothing readable appeared...
Can someone help me
PS:
even with this code i just get:
v«Y«åë·q_[e{§S§§§§§§§§§§§§}§Y«uåë·q_qq}§——§—'—£§c§£§u§§
§£§£§e§—£§e§§«—åë·q_qgg§—'—£§c§£§u§——§S§Y«—}åë·q_{aw§
§W§§e§§«—'åë·q_{Qy§——§§§§§§W§§e§§c§§Y«“åë·q_SWq§£§W§£§e§£§c§£§i«—
åë·q_OWu§S§S§§§c§Y«—åë·_q[eu§£§e§£§e§'£§e«}åë·_q[eK§“§3«åë·_q[ee
§yo¥«——åë·oyowq§£§§§£'§u«åë
int ledPin = 13; // LED test pin
int rxPin = 0; // RX pin
int txPin = 1; // TX pin
char incomingByte;
void setup(){
pinMode(ledPin, OUTPUT); // initialize LED pin
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
Serial.begin(4800); // initialize Serial
}
void loop(){
digitalWrite(ledPin, HIGH); // switch LED on (debugging)
if(Serial.available() > 0){ // send data only when you receive data
incomingByte = Serial.read(); // read incoming
Serial.print(incomingByte); // send incoming
}
}
Thx
Geko