Parallax GPS Receiver


Results 1 to 5 of 5

Threaded View

  1. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    I looked over the code just briefly. It has been a really really long time since I used a basic stamp. In my opinion, I would consider using the more powerful PIC16f628a without the basic stamp like commands. I do something a little different with a gps application, but most people use a command like:

    Code:
    gpsdata         VAR BYTE[70]  'define a 70 character string gpsdata
    
    HSerin 200, Main, [WAIT("$GPRMC"),STR gpsdata\MAXDATA\13] 'wait 200ms for GPRMC
    Then you can look at each character of the string as gpsdata[x], gpsdata[0] will be the comma directly after GPRMC Saving it as a string is the way to go, the uart makes this pretty easy.


    here is an example of pulling the latitude high numbers out of the sentence
    Code:
    IF gpsdata[13] = "A" Then  'tells you if valid data A= valid V=invalid
     lathome_hi = ((gpsdata[15] - 48) *10)+((gpsdata[16] - 48)) 'first two digits
     more code here.....
    ENDIF
    You will notice that I am subtracting 48, this is because I am changing an asci number to a decimal number for some math functions. You wouldnt need to do that if you are just printing to an lcd. But if you wanted to use the data for a project, you would need to convert to decimal. I don't know if you have already purchased it or not, but sparkfun.com has some too.

    http://www.sparkfun.com/commerce/pro...oducts_id=8975 but with this one you have to worry about 3.3 volt to 5 volt conversion.
    Last edited by ScaleRobotics; - 11th February 2009 at 07:57.

Similar Threads

  1. Replies: 0
    Last Post: - 17th June 2009, 03:55
  2. Replies: 4
    Last Post: - 15th May 2008, 09:43
  3. PIC16F877 with GPS receiver
    By rocketqueen in forum GPS
    Replies: 10
    Last Post: - 15th November 2006, 21:56
  4. interfacing gps receiver with 16f877a
    By sakhyvava in forum GPS
    Replies: 1
    Last Post: - 27th September 2006, 09:13
  5. GPS Receiver
    By lester in forum Adverts
    Replies: 2
    Last Post: - 22nd February 2006, 12:47

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts