# how to use GPS module KIT-13199

**URL:** <https://community.sparkfun.com/t/how-to-use-gps-module-kit-13199/32652>\
**Category:** Development Boards\
**Created:** [March 21, 2016, 4:31am UTC](https://community.sparkfun.com/t/how-to-use-gps-module-kit-13199/32652 "2016-03-21T04:31:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aamir5253](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@aamir5253](https://community.sparkfun.com/u/aamir5253)\
**Post date:** [March 21, 2016, 4:31am UTC](https://community.sparkfun.com/t/how-to-use-gps-module-kit-13199/32652/1 "2016-03-21T04:31:28Z")

</div>

HI guyz im new to arduino mega 2560 and GPS modules im using the KIT-13199 and the library provided by sparkfun and using the software serial and the switch is on DLINE but i dont receive anything on the serial monitor from the GPS module i just receive no device detected check wiring.

The product page (GPS) is [https://www.sparkfun.com/products/13199](https://www.sparkfun.com/products/13199)

The code is below for your help.

Kindly help me anyone…

##include \<SoftwareSerial.h\>

#include \<TinyGPS.h\>

TinyGPS gps;

SoftwareSerial ss(11,12);

void setup()

{

Serial.begin(115200);

ss.begin(4800);

Serial.print("Simple TinyGPS library v. "); Serial.println(TinyGPS::library\_version());

Serial.println(“by Mikal Hart”);

Serial.println();

}

void loop()

{

bool newData = false;

unsigned long chars;

unsigned short sentences, failed;

// For one second we parse GPS data and report some key values

for (unsigned long start = millis(); millis() - start \< 1000;)

{

while (ss.available())

{

char c = ss.read();

// Serial.write(c); // uncomment this line if you want to see the GPS data flowing

if (gps.encode(c)) // Did a new valid sentence come in?

newData = true;

}

}

if (newData)

{

float flat, flon;

unsigned long age;

gps.f\_get\_position(&flat, &flon, &age);

Serial.print(“LAT=”);

Serial.print(flat == TinyGPS::GPS\_INVALID\_F\_ANGLE ? 0.0 : flat, 6);

Serial.print(" LON=");

Serial.print(flon == TinyGPS::GPS\_INVALID\_F\_ANGLE ? 0.0 : flon, 6);

Serial.print(" SAT=");

Serial.print(gps.satellites() == TinyGPS::GPS\_INVALID\_SATELLITES ? 0 : gps.satellites());

Serial.print(" PREC=");

Serial.print(gps.hdop() == TinyGPS::GPS\_INVALID\_HDOP ? 0 : gps.hdop());

}

gps.stats(&chars, &sentences, &failed);

Serial.print(" CHARS=");

Serial.print(chars);

Serial.print(" SENTENCES=");

Serial.print(sentences);

Serial.print(" CSUM ERR=");

Serial.println(failed);

if (chars == 0)

Serial.println(“\*\* No characters received from GPS: check wiring \*\*”);

}

---

<div class="post-metadata">

**Author:** ![Ross\_Robotics](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@Ross\_Robotics](https://community.sparkfun.com/u/Ross_Robotics)\
**Post date:** [March 21, 2016, 5:46pm UTC](https://community.sparkfun.com/t/how-to-use-gps-module-kit-13199/32652/2 "2016-03-21T17:46:13Z")

</div>

Why are you using SoftwareSerial when the Mega has 4 Serial ports?
