Shop OBEX P1 Docs P2 Docs Learn Events
Using GPS Module — Parallax Forums

Using GPS Module

NavicNavic Posts: 38
edited 2007-09-14 03:25 in BASIC Stamp
I'm new to BS2 projects, and have setup the BS2px to work with the GPS module. I'm using the program code from the GPS manual and the first function Get_Info doesn't work, it gets no response. I've tried different I/O pins on the BS2 and modified the code, no difference. The GPS seems to be working fine because the manual says the LED flashes until it acquires satellites, then says solid. This happens upon power up. Has anyone used the GPS module and can give me some pointers? Thanks!

Comments

  • SumanSuman Posts: 19
    edited 2007-09-13 22:30
    The first and foremost thing is the baud rates. You have to config same baud rates for gps to transmit and stamp to recieve.

    Secondly, the interfacing of GPS with stamp. Their interfacing needs a twisted pair of wires because generally, the RS232 of gps transmits on pin 2 and recieves on pin3, which is the other way round for the general RS232 pin config.

    Thirdly, may be data rate.

    These are the problems i experienced with my Garmin GPS-Basic stamp.

    Suman Sadhu.
  • aerodudeaerodude Posts: 22
    edited 2007-09-13 23:07
    I had issues with GPS too sometime back...

    Try different baud rates..I got mine working at 4800 Baud

    satish
  • RDL2004RDL2004 Posts: 2,554
    edited 2007-09-13 23:28
    In the demo code change the first line in the constants section like this:


    T4800           CON     813   ' <--- changed from 188 for BS2px
    
    
    


    A few lines down you can make a change here to correct the time:

    'UTCfix          CON     PST   ' for San Diego, California (commented out)
    UTCfix          CON     CDT   ' Mississippi Daylight Savings time (my local time)
    
    



    Info on how to set the baud mode for the different types of BS2s is in the editor help file under SEROUT, there is also a way to do it with "conditional compilation".

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Rick

    Post Edited (RDL2004) : 9/13/2007 11:40:14 PM GMT
  • NavicNavic Posts: 38
    edited 2007-09-14 03:25
    Changing the T4800 to 813 fixed it, thanks RDL2004!
Sign In or Register to comment.