Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC18 + GPS Help

Status
Not open for further replies.
Code:
$GPGLL
Geographic Position, Latitude / Longitude and time. 

eg1. $GPGLL,3751.65,S,14507.36,E*77
eg2. $GPGLL,4916.45,N,12311.12,W,225444,A

           4916.46,N    Latitude 49 deg. 16.45 min. North
           12311.12,W   Longitude 123 deg. 11.12 min. West
           225444       Fix taken at 22:54:44 UTC
           A            Data valid

eg3. $GPGLL,5133.81,N,00042.25,W*75
               1    2     3    4 5

      1    5133.81   Current latitude
      2    N         North/South
      3    00042.25  Current longitude
      4    W         East/West
      5    *75       checksum

$--GLL,lll.ll,a,yyyyy.yy,a,hhmmss.ss,A llll.ll = Latitude of position 

a = N or S 
yyyyy.yy = Longitude of position 
a = E or W 
hhmmss.ss = UTC of position 
A = status: A = valid data
 
The reason I ask is because I was successful at getting the data to the hyperterminal using the db9f, yet when I plug the gps unit into the microcontroller, and then try to feed this data back to the hyperterminal I get garbage. I was wondering if anyone knew what the data being recieved is so I can try to do a sprintf command and change teh data.
 
To get this to work you need GPS->Max232->Pic->Max232->PC. You can substitute the circuit earlier but the data must be inverted to and from the Pic.

Mike.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top