Navigation

GPS SKM53 Arduino Mega2560

Test GPS

http://arduino.cc/forum/index.php/topic,80798.5/

Open Serial Monitor and set the baud rate to 115200, then you see valid data.

void setup(){
  pinMode(0,INPUT);
  digitalWrite(0,LOW);
  pinMode(1,INPUT);
  digitalWrite(1,LOW);
}

void loop(){
  while(1);
}

 

Arduino mega + SKM53

#include <TinyGPS.h> 
#include <SoftwareSerial.h>
/*
  GND – GND Arduino Mega
  VCC - +5V Arduino Mega
  RXD – Pin 50 Arduino Mega
  TXD – Pin 51 Arduino Mega
  RST - not connected
  NC - not connected
*/
 
TinyGPS gps; 

//SoftwareSerial skm53(TXD, RXD); 
SoftwareSerial skm53(53, 52);
bool line=false;

void setup()
{
  Serial.begin(115200);
  skm53.begin(9600);
  Serial.print("Find satellites");
  Serial.println(" Please Wait ");
}

void loop()
{
  bool newData = false;
  for (unsigned long start = millis(); millis() - start < 1000;) 
  {
    while (skm53.available()) {
      char c = skm53.read();
      if (gps.encode(c)) newData = true;
    }
  } 
  
  if (newData) 
  { 
    float lat, lon; 
    unsigned long age; 
    int year; 
    byte month, day, hour, minutes, second, hundredths; 

    gps.f_get_position(&lat, &lon, &age); 
    gps.crack_datetime(&year, &month, &day, &hour, &minutes, &second, &hundredths, &age); 
    Serial.print("Lat: "); 
    Serial.println(lat,6); 
    Serial.print("Lon: "); 
    Serial.println(lon,6); 
    if (line==true) 
    { 
      Serial.print("Speed: "); 
      Serial.println(gps.f_speed_kmph()); 
      Serial.print("Sat:"); 
      Serial.println(gps.satellites()); 
      Serial.print("Alt:"); 
      Serial.println(gps.f_altitude()); 
    } 
    
    if (line==false) 
    { 
      Serial.print("Date:"); 
      Serial.print(year); 
      Serial.print("-"); 
      Serial.print(month); 
      Serial.print("-"); 
      Serial.println(day); 
      Serial.print("Time:"); 
      Serial.print(hour); 
      Serial.print("-"); 
      Serial.print(minutes); 
      Serial.print("-"); 
      Serial.println(second); 
    } 
    line=!line; 
  }
}

Output:

Find satellites  Please  Wait  
Lat: 49.509000
Lon: 13.117000
Date:2012-12-26     
Time:11-35-46     
Lat: 49.509000
Lon: 13.117000
Speed: 0.00     
Sat:8 
Alt:467.70     
Lat: 49.509000
Lon: 13.117000
Date:2012-12-26
Time:11-35-48     

https://developers.google.com/maps/documentation/staticmaps/
https://developers.google.com/maps/documentation/staticmaps/#quick_example

http://stackoverflow.com/questions/10220918/how-to-send-a-text-file-and-append-it-using-arduino

http://maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New...
&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318
&markers=color:red%7Ccolor:red%7Clabel:C%7C40.718217,-73.998284&sensor=false

http://maps.googleapis.com/maps/api/staticmap?center=49.510009,13.117880...
&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318
&markers=color:red%7Ccolor:red%7Clabel:C%7C40.718217,-73.998284&sensor=false


http://maps.googleapis.com/maps/api/staticmap?center=49.510009,13.117880...
&markers=color:red%7color:red%7Clabel:C%7C49.510009,13.117880&sensor=false

http://maps.googleapis.com/maps/api/staticmap?center=49.510009,13.117880...|weight:5|49.510009,13.117880|49.510019,13.117980|49.520019,13.119820|49.510109,13.117580&sensor=false


http://maps.googleapis.com/maps/api/staticmap?center=49.510009,13.117880...|weight:5|49.510009,13.117880|49.510019,13.117980|49.520019,13.119820|49.510109,13.117580&sensor=false
File: