GPS provides a lot of geographical information for a particular object like its latitude, longitude, direction of travel, GMT etc. This information are assembled in a particular string format which are to be decoded by GPS modems. A GPS modem gives the output data in a following string format called as NMEA Format. A common GPS sentence ($GPGGA) has been explained below.
$GPGGA,100156.000,2650.9416,N,07547.8441,E,1,08,1.0,442.8,M,-42.5,M,,0000*71
1.Β Β Β Β Β Β Β Β Β Β Β Β Β Β A string always starts with a β$β sign
2.Β Β Β Β Β Β Β Β Β Β Β Β Β Β GPGGA : Global Positioning System Fix Data
3.Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β β,β Comma indicates the separation between two values
4.Β Β Β Β Β Β Β Β Β Β Β Β Β Β 100156.000 : GMT time as 10(hr):01(min):56(sec):000(ms)
5.Β Β Β Β Β Β Β Β Β Β Β Β Β Β 2650.9416,N: Latitude 26(degree) 50(minutes) 9416(sec) North
6.Β Β Β Β Β Β Β Β Β Β Β Β Β Β 07547.8441,E: Longitude 075(degree) 47(minutes) 8441(sec) East
7.Β Β Β Β Β Β Β Β Β Β Β Β Β Β 1 : Fix Quantity 0= invalid data, 1= valid data, 2=DGPS fix
8.Β Β Β Β Β Β Β Β Β Β Β Β Β Β 08 : Β Number of satellites currently viewed.
9.Β Β Β Β Β Β Β Β Β Β Β Β Β Β 1.0: HDOP
10.Β Β Β Β Β Β Β Β Β Β 442.8,M : Altitude (Height above sea level in meter)
11.Β Β Β Β Β Β Β Β Β Β Β -42.5,M :Β Β Β Β Β Β Β Β Geoids height
12.Β Β Β Β Β Β Β Β Β Β __ , DGPS data
13.Β Β Β Β Β Β Β Β Β Β 0000 : DGPS data
14.Β Β Β Β Β Β Β Β Β Β *71 : checksum
The main objective here is to find the location of the GPS Receiver in terms of latitude and longitude. The GPS module gives output data in RS232 logic level format. To convert the RS232 logic level into TTL, a line converter
MAX232 has been connected between GPS module and
PIC18F4550. (Also refer
PIC USART) The circuit connection of GPS module with microcontroller is shown in the circuit diagram tab. The latitude and longitude data has been displayed on a
16Γ2 LCD interfaced to PIC.
For more detail: How to interface GPS with PIC18F4550 Microcontroller