Electronics PIC+GPS 18

Discussion in 'Modding' started by little-engineer, 9 Oct 2006.

  1. little-engineer

    little-engineer What's a Dremel?

    Joined:
    9 Oct 2006
    Posts:
    3
    Likes Received:
    0
    Hello All,
    I want to interface Garmin GPS 18 with PIC18F4450 via RS-232 inorder to get data from the GPS (in NMEA fromat) and process it on the PIC. My question is dose the PIC have to supports NMEA protocol?! :confused:
    Or if anyone have the experince with GPS and PIC please let me know.

    Looking forward to hear from you.

    Regards,


     
  2. SteveyG

    SteveyG Electromodder

    Joined:
    23 Nov 2002
    Posts:
    3,049
    Likes Received:
    8
    There's no problem with communicating with the GPS device using the RS232 protocol. You may need a voltage level converter if the device does not provide TTL serial outputs.

    The USART in the PIC would not be responsible for any decoding of the data that is sent to/from it - it is just a USART! It is your job as the programmer to determine what the data means after it has been formatted into 8 or 9 bit chunks of data.

    You must obtain some information about the NMEA protocol and implement it yourself. I suspect the protocol is not very complex, and you will easily be able to implement a function to obtain the GPS data, but the hardware will not do this for you.
     
  3. bender386

    bender386 What's a Dremel?

    Joined:
    5 Jan 2006
    Posts:
    475
    Likes Received:
    0
    i think nmea data comes in as normal serial ascii. i am probly very wrong but
     
  4. kbn

    kbn What's a Dremel?

    Joined:
    17 Mar 2004
    Posts:
    603
    Likes Received:
    0
    Nmea is a set of standards, the one you want is 0183.

    http://en.wikipedia.org/wiki/NMEA might help, see the two links

    nmea data is sent line by line, with the first few characters indicating what type of data is being sent, like position, speed, how many satalites its locked on to etc..

    you will probably want to ignore most lines, and an external sram/flash chip would probably be usefull for any gps project.
     
    Last edited: 9 Oct 2006
  5. little-engineer

    little-engineer What's a Dremel?

    Joined:
    9 Oct 2006
    Posts:
    3
    Likes Received:
    0
    SteveyG, bender386 & kbn thank you all for your help.
    :D

    I really appreciate it.

    Regards,
     

Share This Page