Shop OBEX P1 Docs P2 Docs Learn Events
GPS interface — Parallax Forums

GPS interface

ArchiverArchiver Posts: 46,084
edited 2003-10-24 14:32 in General Discussion
I would like to know if anyone has ever interfaced a GPS device to a BS2.
If so could you give me some specifics as to the model GPS and where to get
one and some direction as to how to build the interface.

Thanks,

Wayne Fulcher
wayne@d...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-02-01 22:45
    Dear Wayne,
    I have interfaced numerous devices so far including Axiom and Sirf. It is
    somewhat easy as these OEM modules emit a serial line that can be interfaced
    with the stamp BS2 and just control the display of the serial data in a
    format for video overlay and LCD serial displays.
    Look at
    www.axiomnavigation.com
    under GPS receivers and then look at their Swift B1 module. This works the
    best. Also look at :
    www.decadeengineering.com
    They have an old application under their site for their BOB -II board which
    is a good starting point
    good luck
    Mike Mocenter
    mocenter@e...
    Original Message
    From: Wayne Fulcher <wayne@d...>
    To: Basic Stamp <basicstamps@yahoogroups.com>
    Sent: Thursday, February 01, 2001 3:15 PM
    Subject: [noparse][[/noparse]basicstamps] GPS interface


    > I would like to know if anyone has ever interfaced a GPS device to a BS2.
    > If so could you give me some specifics as to the model GPS and where to
    get
    > one and some direction as to how to build the interface.
    >
    > Thanks,
    >
    > Wayne Fulcher
    > wayne@d...
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-01 23:27
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-02 01:17
    Have a look at te garmin (www.garmin.com) OEM sensors... there's one that
    has a serial interface that would be a breeze to connect with a stamp and an
    LCD display.

    The sensor sends NMEA 0183 format "sentences" which are very simple to
    parse. If you go to the garmin web site download their "specifications" and
    it shows all the message formats etc.

    I'm thinking of doing this myself... but I'm on a shoestring budget right
    now. :-)

    You can get an "evaluation kit" for a bit over $100 US which consists of the
    receiver, and antena, a couple of DB-9 serial cables ... what else do you
    need? A Stamp and a display... all set... :-)

    Original Message
    From: "Wayne Fulcher" <wayne@d...>
    To: "Basic Stamp" <basicstamps@yahoogroups.com>
    Sent: Thursday, February 01, 2001 12:15 PM
    Subject: [noparse][[/noparse]basicstamps] GPS interface


    > I would like to know if anyone has ever interfaced a GPS device to a BS2.
    > If so could you give me some specifics as to the model GPS and where to
    get
    > one and some direction as to how to build the interface.
    >
    > Thanks,
    >
    > Wayne Fulcher
    > wayne@d...
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-02 14:54
    yes easy to parse but converting the characters into numbers is non-trivial
    chore - seems like it took me about a page of code to do that (my gps had
    non fixed length fields).


    richard


    Original Message
    From: "Don Russell" <drussel2@s...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, February 01, 2001 7:17 PM
    Subject: Re: [noparse][[/noparse]basicstamps] GPS interface


    > Have a look at te garmin (www.garmin.com) OEM sensors... there's one that
    > has a serial interface that would be a breeze to connect with a stamp and
    an
    > LCD display.
    >
    > The sensor sends NMEA 0183 format "sentences" which are very simple to
    > parse. If you go to the garmin web site download their "specifications"
    and
    > it shows all the message formats etc.
    >
    > I'm thinking of doing this myself... but I'm on a shoestring budget right
    > now. :-)
    >
    > You can get an "evaluation kit" for a bit over $100 US which consists of
    the
    > receiver, and antena, a couple of DB-9 serial cables ... what else do you
    > need? A Stamp and a display... all set... :-)
    >
    >
    Original Message
    > From: "Wayne Fulcher" <wayne@d...>
    > To: "Basic Stamp" <basicstamps@yahoogroups.com>
    > Sent: Thursday, February 01, 2001 12:15 PM
    > Subject: [noparse][[/noparse]basicstamps] GPS interface
    >
    >
    > > I would like to know if anyone has ever interfaced a GPS device to a
    BS2.
    > > If so could you give me some specifics as to the model GPS and where to
    > get
    > > one and some direction as to how to build the interface.
    > >
    > > Thanks,
    > >
    > > Wayne Fulcher
    > > wayne@d...
    > >
    > >
    > >
    > >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-02 15:30
    The garmin GPS25 sensor seems to have fixed length fields (the long/lat
    fields all contain leading zero characters as needed)... and as for
    converting the ascii text to numbers.... the stamp LOOKDOWN or (LOOKUP?)
    command would work.... should only take a few lines of code

    Even with variable length fields, the garmin terminates each field with a
    comma, and the whole sentence with <CR><LF>

    Original Message
    From: "dakota" <rfriedrich@a...>
    To: <basicstamps@yahoogroups.com>
    Sent: Friday, February 02, 2001 6:54 AM
    Subject: Re: [noparse][[/noparse]basicstamps] GPS interface


    > yes easy to parse but converting the characters into numbers is
    non-trivial
    > chore - seems like it took me about a page of code to do that (my gps had
    > non fixed length fields).
    >
    >
    > richard
    >
    >
    >
    Original Message
    > From: "Don Russell" <drussel2@s...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Thursday, February 01, 2001 7:17 PM
    > Subject: Re: [noparse][[/noparse]basicstamps] GPS interface
    >
    >
    > > Have a look at te garmin (www.garmin.com) OEM sensors... there's one
    that
    > > has a serial interface that would be a breeze to connect with a stamp
    and
    > an
    > > LCD display.
    > >
    > > The sensor sends NMEA 0183 format "sentences" which are very simple to
    > > parse. If you go to the garmin web site download their "specifications"
    > and
    > > it shows all the message formats etc.
    > >
    > > I'm thinking of doing this myself... but I'm on a shoestring budget
    right
    > > now. :-)
    > >
    > > You can get an "evaluation kit" for a bit over $100 US which consists of
    > the
    > > receiver, and antena, a couple of DB-9 serial cables ... what else do
    you
    > > need? A Stamp and a display... all set... :-)
    > >
    > >
    Original Message
    > > From: "Wayne Fulcher" <wayne@d...>
    > > To: "Basic Stamp" <basicstamps@yahoogroups.com>
    > > Sent: Thursday, February 01, 2001 12:15 PM
    > > Subject: [noparse][[/noparse]basicstamps] GPS interface
    > >
    > >
    > > > I would like to know if anyone has ever interfaced a GPS device to a
    > BS2.
    > > > If so could you give me some specifics as to the model GPS and where
    to
    > > get
    > > > one and some direction as to how to build the interface.
    > > >
    > > > Thanks,
    > > >
    > > > Wayne Fulcher
    > > > wayne@d...
    > > >
    > > >
    > > >
    > > >
    > >
    > >
    > >
    > >
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-02 15:56
    Dakota,
    I think that using SERIN with the available modifiers should do the job with
    only one (complicated !) line of code.
    regards
    ECO
    Original Message
    From: "dakota" <rfriedrich@a...>
    To: <basicstamps@yahoogroups.com>
    Sent: vendredi 2 f
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-02 18:04
    Thinking about this on my drive to work I thought... Hey, theres no
    need to use lookup/down to convert an ascii number to a number-
    number.. :-)

    Since the ASCII digits 0-9 are contiguous (Hex 30-39)

    A loop like...
    num = 0
    loop1:
    call getchar
    if char = '.' then fractionalpart
    num = (num * 10) + (char - 48) '48 dec is hex 30
    goto loop1

    fractionalpart:
    fraction = 0
    loop2:
    call getchar
    fraction = (fraction + (char - 48)) / 10
    goto loop2

    I've left out a couple of things, like knowing when to stop looping...
    and since the stamps only do integer arithmetic, the divisioan by 10
    doesn't really work the way you want.... BUT... since the factional
    part is fixed... you can treat it as a separate integer...

    Anyway.. just some ideas... the point being converting an ascii
    string to a number isn't that difficult... :-)

    Cheers,
    Don


    --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
    > The garmin GPS25 sensor seems to have fixed length fields (the
    long/lat
    > fields all contain leading zero characters as needed)... and as for
    > converting the ascii text to numbers.... the stamp LOOKDOWN or
    (LOOKUP?)
    > command would work.... should only take a few lines of code
    >
    > Even with variable length fields, the garmin terminates each field
    with a
    > comma, and the whole sentence with <CR><LF>
    >
    >
    Original Message
    > From: "dakota" <rfriedrich@a...>
    > To: <basicstamps@y...>
    > Sent: Friday, February 02, 2001 6:54 AM
    > Subject: Re: [noparse][[/noparse]basicstamps] GPS interface
    >
    >
    > > yes easy to parse but converting the characters into numbers is
    > non-trivial
    > > chore - seems like it took me about a page of code to do that (my
    gps had
    > > non fixed length fields).
    > >
    > >
    > > richard
    > >
    > >
    > >
    Original Message
    > > From: "Don Russell" <drussel2@s...>
    > > To: <basicstamps@y...>
    > > Sent: Thursday, February 01, 2001 7:17 PM
    > > Subject: Re: [noparse][[/noparse]basicstamps] GPS interface
    > >
    > >
    > > > Have a look at te garmin (www.garmin.com) OEM sensors...
    there's one
    > that
    > > > has a serial interface that would be a breeze to connect with a
    stamp
    > and
    > > an
    > > > LCD display.
    > > >
    > > > The sensor sends NMEA 0183 format "sentences" which are very
    simple to
    > > > parse. If you go to the garmin web site download
    their "specifications"
    > > and
    > > > it shows all the message formats etc.
    > > >
    > > > I'm thinking of doing this myself... but I'm on a shoestring
    budget
    > right
    > > > now. :-)
    > > >
    > > > You can get an "evaluation kit" for a bit over $100 US which
    consists of
    > > the
    > > > receiver, and antena, a couple of DB-9 serial cables ... what
    else do
    > you
    > > > need? A Stamp and a display... all set... :-)
    > > >
    > > >
    Original Message
    > > > From: "Wayne Fulcher" <wayne@d...>
    > > > To: "Basic Stamp" <basicstamps@y...>
    > > > Sent: Thursday, February 01, 2001 12:15 PM
    > > > Subject: [noparse][[/noparse]basicstamps] GPS interface
    > > >
    > > >
    > > > > I would like to know if anyone has ever interfaced a GPS
    device to a
    > > BS2.
    > > > > If so could you give me some specifics as to the model GPS
    and where
    > to
    > > > get
    > > > > one and some direction as to how to build the interface.
    > > > >
    > > > > Thanks,
    > > > >
    > > > > Wayne Fulcher
    > > > > wayne@d...
    > > > >
    > > > >
    > > > >
    > > > >
    > > >
    > > >
    > > >
    > > >
    > >
    > >
    > >
    > >
    > >
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-02 19:25
    you are right, it is all that difficult, but is still non-trivial. take this
    code and add on some house keeping chores and you get up to about the page
    length I talked about

    this is essentially the way I did it. I was just a little ticked that there
    wasnt already a predefined function to do this. basic from 25 years ago did
    it - I was just ticked that it wasnt included - I use basicx-24 and the
    floating point math is wonderful.

    richard

    is your address san antonio ?
    I am in austin

    richard




    Original Message
    From: <drussel2@s...>
    To: <basicstamps@yahoogroups.com>
    Sent: Friday, February 02, 2001 12:04 PM
    Subject: [noparse][[/noparse]basicstamps] Re: GPS interface


    > Thinking about this on my drive to work I thought... Hey, theres no
    > need to use lookup/down to convert an ascii number to a number-
    > number.. :-)
    >
    > Since the ASCII digits 0-9 are contiguous (Hex 30-39)
    >
    > A loop like...
    > num = 0
    > loop1:
    > call getchar
    > if char = '.' then fractionalpart
    > num = (num * 10) + (char - 48) '48 dec is hex 30
    > goto loop1
    >
    > fractionalpart:
    > fraction = 0
    > loop2:
    > call getchar
    > fraction = (fraction + (char - 48)) / 10
    > goto loop2
    >
    > I've left out a couple of things, like knowing when to stop looping...
    > and since the stamps only do integer arithmetic, the divisioan by 10
    > doesn't really work the way you want.... BUT... since the factional
    > part is fixed... you can treat it as a separate integer...
    >
    > Anyway.. just some ideas... the point being converting an ascii
    > string to a number isn't that difficult... :-)
    >
    > Cheers,
    > Don
    >
    >
    > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
    > > The garmin GPS25 sensor seems to have fixed length fields (the
    > long/lat
    > > fields all contain leading zero characters as needed)... and as for
    > > converting the ascii text to numbers.... the stamp LOOKDOWN or
    > (LOOKUP?)
    > > command would work.... should only take a few lines of code
    > >
    > > Even with variable length fields, the garmin terminates each field
    > with a
    > > comma, and the whole sentence with <CR><LF>
    > >
    > >
    Original Message
    > > From: "dakota" <rfriedrich@a...>
    > > To: <basicstamps@y...>
    > > Sent: Friday, February 02, 2001 6:54 AM
    > > Subject: Re: [noparse][[/noparse]basicstamps] GPS interface
    > >
    > >
    > > > yes easy to parse but converting the characters into numbers is
    > > non-trivial
    > > > chore - seems like it took me about a page of code to do that (my
    > gps had
    > > > non fixed length fields).
    > > >
    > > >
    > > > richard
    > > >
    > > >
    > > >
    Original Message
    > > > From: "Don Russell" <drussel2@s...>
    > > > To: <basicstamps@y...>
    > > > Sent: Thursday, February 01, 2001 7:17 PM
    > > > Subject: Re: [noparse][[/noparse]basicstamps] GPS interface
    > > >
    > > >
    > > > > Have a look at te garmin (www.garmin.com) OEM sensors...
    > there's one
    > > that
    > > > > has a serial interface that would be a breeze to connect with a
    > stamp
    > > and
    > > > an
    > > > > LCD display.
    > > > >
    > > > > The sensor sends NMEA 0183 format "sentences" which are very
    > simple to
    > > > > parse. If you go to the garmin web site download
    > their "specifications"
    > > > and
    > > > > it shows all the message formats etc.
    > > > >
    > > > > I'm thinking of doing this myself... but I'm on a shoestring
    > budget
    > > right
    > > > > now. :-)
    > > > >
    > > > > You can get an "evaluation kit" for a bit over $100 US which
    > consists of
    > > > the
    > > > > receiver, and antena, a couple of DB-9 serial cables ... what
    > else do
    > > you
    > > > > need? A Stamp and a display... all set... :-)
    > > > >
    > > > >
    Original Message
    > > > > From: "Wayne Fulcher" <wayne@d...>
    > > > > To: "Basic Stamp" <basicstamps@y...>
    > > > > Sent: Thursday, February 01, 2001 12:15 PM
    > > > > Subject: [noparse][[/noparse]basicstamps] GPS interface
    > > > >
    > > > >
    > > > > > I would like to know if anyone has ever interfaced a GPS
    > device to a
    > > > BS2.
    > > > > > If so could you give me some specifics as to the model GPS
    > and where
    > > to
    > > > > get
    > > > > > one and some direction as to how to build the interface.
    > > > > >
    > > > > > Thanks,
    > > > > >
    > > > > > Wayne Fulcher
    > > > > > wayne@d...
    > > > > >
    > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > > >
    > > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-02 22:49
    You're right... there ought to be a builtin Stamp command to convert
    a string of ascii numbers to a number-number... hmmm, we could always
    write to parallax... they seem pretty receptive from ym experience
    with them so far.

    Having to deal with the fractional parts is the pain... my code
    sample below has the undesired effect of reversing the digits after
    the decimal point. :-(

    And.. to answer your geographic question.. :-) I'm in San Diego CA.

    Regards,
    Don

    --- In basicstamps@y..., "dakota" <rfriedrich@a...> wrote:
    > you are right, it is all that difficult, but is still non-trivial.
    take this
    > code and add on some house keeping chores and you get up to about
    the page
    > length I talked about
    >
    > this is essentially the way I did it. I was just a little ticked
    that there
    > wasnt already a predefined function to do this. basic from 25 years
    ago did
    > it - I was just ticked that it wasnt included - I use basicx-24
    and the
    > floating point math is wonderful.
    >
    > richard
    >
    > is your address san antonio ?
    > I am in austin
    >
    > richard
    >
    >
    >
    >
    >
    Original Message
    > From: <drussel2@s...>
    > To: <basicstamps@y...>
    > Sent: Friday, February 02, 2001 12:04 PM
    > Subject: [noparse][[/noparse]basicstamps] Re: GPS interface
    >
    >
    > > Thinking about this on my drive to work I thought... Hey, theres
    no
    > > need to use lookup/down to convert an ascii number to a number-
    > > number.. :-)
    > >
    > > Since the ASCII digits 0-9 are contiguous (Hex 30-39)
    > >
    > > A loop like...
    > > num = 0
    > > loop1:
    > > call getchar
    > > if char = '.' then fractionalpart
    > > num = (num * 10) + (char - 48) '48 dec is hex 30
    > > goto loop1
    > >
    > > fractionalpart:
    > > fraction = 0
    > > loop2:
    > > call getchar
    > > fraction = (fraction + (char - 48)) / 10
    > > goto loop2
    > >
    > > I've left out a couple of things, like knowing when to stop
    looping...
    > > and since the stamps only do integer arithmetic, the divisioan by
    10
    > > doesn't really work the way you want.... BUT... since the
    factional
    > > part is fixed... you can treat it as a separate integer...
    > >
    > > Anyway.. just some ideas... the point being converting an ascii
    > > string to a number isn't that difficult... :-)
    > >
    > > Cheers,
    > > Don
    > >
    > >
    > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
    > > > The garmin GPS25 sensor seems to have fixed length fields (the
    > > long/lat
    > > > fields all contain leading zero characters as needed)... and as
    for
    > > > converting the ascii text to numbers.... the stamp LOOKDOWN or
    > > (LOOKUP?)
    > > > command would work.... should only take a few lines of code
    > > >
    > > > Even with variable length fields, the garmin terminates each
    field
    > > with a
    > > > comma, and the whole sentence with <CR><LF>
    > > >
    > > >
    Original Message
    > > > From: "dakota" <rfriedrich@a...>
    > > > To: <basicstamps@y...>
    > > > Sent: Friday, February 02, 2001 6:54 AM
    > > > Subject: Re: [noparse][[/noparse]basicstamps] GPS interface
    > > >
    > > >
    > > > > yes easy to parse but converting the characters into numbers
    is
    > > > non-trivial
    > > > > chore - seems like it took me about a page of code to do that
    (my
    > > gps had
    > > > > non fixed length fields).
    > > > >
    > > > >
    > > > > richard
    > > > >
    > > > >
    > > > >
    Original Message
    > > > > From: "Don Russell" <drussel2@s...>
    > > > > To: <basicstamps@y...>
    > > > > Sent: Thursday, February 01, 2001 7:17 PM
    > > > > Subject: Re: [noparse][[/noparse]basicstamps] GPS interface
    > > > >
    > > > >
    > > > > > Have a look at te garmin (www.garmin.com) OEM sensors...
    > > there's one
    > > > that
    > > > > > has a serial interface that would be a breeze to connect
    with a
    > > stamp
    > > > and
    > > > > an
    > > > > > LCD display.
    > > > > >
    > > > > > The sensor sends NMEA 0183 format "sentences" which are very
    > > simple to
    > > > > > parse. If you go to the garmin web site download
    > > their "specifications"
    > > > > and
    > > > > > it shows all the message formats etc.
    > > > > >
    > > > > > I'm thinking of doing this myself... but I'm on a shoestring
    > > budget
    > > > right
    > > > > > now. :-)
    > > > > >
    > > > > > You can get an "evaluation kit" for a bit over $100 US which
    > > consists of
    > > > > the
    > > > > > receiver, and antena, a couple of DB-9 serial cables ...
    what
    > > else do
    > > > you
    > > > > > need? A Stamp and a display... all set... :-)
    > > > > >
    > > > > >
    Original Message
    > > > > > From: "Wayne Fulcher" <wayne@d...>
    > > > > > To: "Basic Stamp" <basicstamps@y...>
    > > > > > Sent: Thursday, February 01, 2001 12:15 PM
    > > > > > Subject: [noparse][[/noparse]basicstamps] GPS interface
    > > > > >
    > > > > >
    > > > > > > I would like to know if anyone has ever interfaced a GPS
    > > device to a
    > > > > BS2.
    > > > > > > If so could you give me some specifics as to the model GPS
    > > and where
    > > > to
    > > > > > get
    > > > > > > one and some direction as to how to build the interface.
    > > > > > >
    > > > > > > Thanks,
    > > > > > >
    > > > > > > Wayne Fulcher
    > > > > > > wayne@d...
    > > > > > >
    > > > > > >
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > > >
    > > > >
    > > > >
    > >
    > >
    > >
    > >
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-03 00:42
    [font=arial,helvetica]In a message dated 2/2/01 5:26:24 PM Central Standard Time,
    drussel2@san.rr.com writes:


    You're right... there ought to be a builtin Stamp command to convert
    a string of ascii numbers to a number-number... hmmm, we could always
    write to parallax... they seem pretty receptive from ym experience
    with them so far.



    The SERIN modifier DEC will take an ASCII string and convert it to a decimal
    number. ·The HEX modifier will convert hexadecimal string to decimal. ·Just
    make sure your receiver variable is big enough for the number you expect to
    receive.

    -- Jon Williams
    -- Dallas, TX[/font]
  • ArchiverArchiver Posts: 46,084
    edited 2001-02-03 02:47
    You're absolutely right! I'd forgotten about that command....

    and it automagically stops when a nondigit occurs, so it should be fairly straightforward to get the integer and the fractional parts as two separate numbers.

    Thanks for the reminder! :-)

    Don Russell

    Position? Let's see.. .I'm at the corner of "Walk" and "Don't Walk"

    Original Message
    From: jonwms@aol.com
    To: basicstamps@yahoogroups.com
    Sent: Friday, February 02, 2001 4:42 PM
    Subject: Re: [noparse][[/noparse]basicstamps] Re: GPS interface

    [font=arial,helvetica]In a message dated 2/2/01 5:26:24 PM Central Standard Time,
    drussel2@san.rr.com writes:


    You're right... there ought to be a builtin Stamp command to convert
    a string of ascii numbers to a number-number... hmmm, we could always
    write to parallax... they seem pretty receptive from ym experience
    with them so far.



    The SERIN modifier DEC will take an ASCII string and convert it to a decimal
    number. ·The HEX modifier will convert hexadecimal string to decimal. ·Just
    make sure your receiver variable is big enough for the number you expect to
    receive.

    -- Jon Williams
    -- Dallas, TX [/font]
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-21 16:48
    I am new to the Basic Stamp scene. I am looking for
    any guidance I can get on interfacing an NMEA
    instrument to the BS2. I understand the newest
    version of NMEA 0183 is essentially an RS-422 or
    "differential drive" interface. I think I'm going to
    need an opto-isolator for the receive line. I would
    like to be able to buffer data (like an NMEA sentence
    from a GPS) and possibly store GPS fixes in memory. I
    would also like to be able to automatically route data
    on one I/O line to another instrument or memory based
    on the content or source (NMEA Talker) of the
    sentence.
    Thanks in advance for any assistance you can lend.
    Best Regards
    Steve

    __________________________________________________
    Do You Yahoo!?
    Get personalized email addresses from Yahoo! Mail
    http://personal.mail.yahoo.com/
  • ArchiverArchiver Posts: 46,084
    edited 2001-06-21 21:10
    Steve, just finished a project for robotics class. It
    was a GPS guided R/C truck. Check my website at
    www.stoneflyers.com and hit GPS truck. There is
    information there that you will find helpful. Email me
    mklarich@s... if you have any questions or
    just want to shoot the breeze.

    Matt Klarich

    __________________________________________________
    Do You Yahoo!?
    Get personalized email addresses from Yahoo! Mail
    http://personal.mail.yahoo.com/
  • ArchiverArchiver Posts: 46,084
    edited 2002-05-03 23:08
    Deos anyone know the commands to interface a GPS using NMEA? also where to
    get a GSM module to send SMS messages to a mobile phone. thanks Gary D
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-24 09:49
    Hi Gary,

    This is how i read NMEA data from a GPS module:

    GPSQuality var byte ' GPS quality indicator

    TimeData var byte(4) ' UTC time data
    LatitudeData var byte(4) ' latitude data
    LongitudeData var byte(4) ' longitude data
    AltitudeData var word ' altitude data

    ' GPSReadData - Reads NMEA data from the GPS module
    '
    GPSReadData: ' Set the default GPS data quality
    GPSQuality = 0

    ' Get NMEA data from the GPS module...
    SERIN 0,16572,2000,GPSReadDataFailed,[noparse][[/noparse]WAIT("$GPGGA"), SKIP 1, DEC2
    TimeData(0), DEC2 TimeData(1), DEC2 TimeData(2), SKIP 1, DEC2 TimeData(3),
    SKIP 2, DEC2 LatitudeData(0), DEC2 LatitudeData(1), SKIP 1, DEC2
    LatitudeData(2), SKIP 3, LatitudeData(3), SKIP 1, DEC3 LongitudeData(0),
    DEC2 LongitudeData(1), SKIP 1, DEC2 LongitudeData(2), SKIP 3,
    LongitudeData(3), SKIP 1, DEC1 GPSQuality, SKIP 8, DEC AltitudeData]

    GPSReadDataFailed: RETURN

    If valid GPS data is received then the value of the GPSQuality variable will
    be non-zero.

    I hope this helps. We can also supply you with a GSM modem. Please visit our
    website at http://www.warburtech.com for more information. Feel free to
    email me at russell@w... if you have any more questions. I look
    forward to hearing from you.

    Best regards,

    Russell Warburton
    email: russell@w...
    website: http://www.warburtech.com
    telephone: +44 (0)7814 044 754

    Original Message
    From: "Gary Denison" <gdii@c...>
    To: <basicstamps@yahoogroups.com>
    Sent: Friday, May 03, 2002 11:08 PM
    Subject: [noparse][[/noparse]basicstamps] GPS interface


    > Deos anyone know the commands to interface a GPS using NMEA? also where to
    > get a GSM module to send SMS messages to a mobile phone. thanks Gary D
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-24 14:32
    Do a www.google.com search on NMEA0183. For interfacing a BS2p to a
    standard GPS unit using NMEA0183 output strings take a look at the
    article "Where in the World is my BASIC Stamp" in the Nuts & Volts
    section of Parallax downloads. For those of you that use the Garmin
    eTrex (as we do at Parallax) my November column (Nuts & Volts) shows how
    to use the text output which is twice as fast as the NMEA output and
    uses fixed-width fields so it's easier to parse data.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: Gary Denison [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=yiJK7NX1k-McDN2L6NKH9zp-PaMjm7Kfv8mY9ZrgCZCrds0DmfMbBXRFeZhsv3jxfQxe]gdii@c...[/url
    Sent: Friday, May 03, 2002 5:09 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] GPS interface


    Deos anyone know the commands to interface a GPS using NMEA? also where
    to get a GSM module to send SMS messages to a mobile phone. thanks Gary
    D


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
Sign In or Register to comment.