Skylab SKM53 How To Connect

Skylab SKM53 How To Connect

Advertisement

How to connect
1)Connect RXD GPS Pin to Arduino Pin 3
2)Connect TXD GPS Pin to Arduino Pin 2
3)Connect GND GPS Pin to Arduino Ground
4)Connect VCC GPS to 5 VDC
5)Make sure to download TinyGPS.h library file to your
Arduino/Libraries folder. You can download it from this
link:
!
http://arduiniana.org/TinyGPS/TinyGPS10.zip.
6)Make sure to download NewSoftSerial.h library file to
your Arduino/Libraries folder. You can download it from
this link:
http://arduiniana.org/libraries/newsoftserial/
7)Upload the Arduino code below.
Arduino Code For Skylab SKM53 GPS
#include <TinyGPS.h>
#include <NewSoftSerial.h>
unsigned long fix_age;
NewSoftSerial GPS(2,3);
TinyGPS gps;
void gpsdump(TinyGPS &gps);
long lat, lon;
float LAT, LON;
CH GPS SKM53 MODULE
User Manual
Skylab SKM53 GPS
w w w . e k t
to Arduino
. c o m
2
Electronics
Katrangi
Trading

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SKM53 and is the answer not in the manual?

Questions and answers

Summary of Contents for Skylab SKM53

  • Page 1 6)Make sure to download NewSoftSerial.h library file to your Arduino/Libraries folder. You can download it from this link: http://arduiniana.org/libraries/newsoftserial/ 7)Upload the Arduino code below. Arduino Code For Skylab SKM53 GPS #include <TinyGPS.h> #include <NewSoftSerial.h> unsigned long fix_age; NewSoftSerial GPS(2,3); TinyGPS gps;...
  • Page 2 void setup(){ GPS.begin(9600); Serial.begin(115200); 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); // time in hh:mm:ss, date in dd/mm/yy /*gps.get_datetime(&date, &time, &fix_age);...
  • Page 3 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 Arduino Code: RXD Arduino Pin 3 TXD Arduino Pin 2...
  • Page 4 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()))

Table of Contents