Shop OBEX P1 Docs P2 Docs Learn Events
GPS and BS2 interface.Need Help... — Parallax Forums

GPS and BS2 interface.Need Help...

bograbogra Posts: 27
edited 2008-01-26 15:09 in BASIC Stamp
hi all,Could anybody help me how to interface the GPS receiver module and BS2.i was trying with the GPS module DEMO code that i got from parallax but it does not work.i think i need to add code for BS2 to interface in the program.But i dont know how to do?any assist would me highly appreciated.Thanks.I
Regards;
Bogra





I HAVE ATTACHED THE DEMO CODE WHICH I HAVE USED.

Comments

  • dandreaedandreae Posts: 1,375
    edited 2008-01-25 16:02
    Are you using the Parallax GPS module?· If so, are you in a clear area meaning that the GPS module has a clear view of the sky?



    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
  • bograbogra Posts: 27
    edited 2008-01-25 16:08
    Thanks.ya,i am using parallax GPS module.it is blinking but no meassage on the LCD display.do u think the code is enough?or anything i need to add to interface with BS2?
    Thanks lot.
    regards;
    Bogra.
  • dandreaedandreae Posts: 1,375
    edited 2008-01-25 16:47
    Are you using an LCD, such as a 4x20·or monitor (PC)?· Are you indoors or outdoors with a laptop?



    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
  • bograbogra Posts: 27
    edited 2008-01-25 16:57
    I am using LCD.Also i am using 9volt battery.no laptop.I just bring it outdoor after downloading the code provided by parallax for GPS receiver.when i run the program in BS2 then i can read the debug window on PC and its working.But in LCD I just can see the BLACK BAR .sorry for disturbing you.I am quite new that is why i am confused what to do now?is there any problem with the program or anything else?
    Thanks lot.
    Regard;
    Bogra
  • dandreaedandreae Posts: 1,375
    edited 2008-01-25 17:02
    A 9v battery· isn't recommended for the GPS and LCD, I recommend 4AA or a Ni-Cad battery pack for this project.· Have you verified that your LCD works?



    Dave


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support

    Post Edited (Dave Andreae (Parallax)) : 1/25/2008 5:18:02 PM GMT
  • FranklinFranklin Posts: 4,747
    edited 2008-01-25 20:57
    That's 4AA alkaline batteries or 5AA ni-cads or a premade 6V rechargable pack. Just to be clear [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • bograbogra Posts: 27
    edited 2008-01-26 01:31
    hi,thanks.ya i got the LCD work now.but i want to know that the Demo code which has given with the module is enough or not to get the data from satellite on LCD?Thanks for everything.
    regards;
    bogra
  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-26 01:52
    You will need to modify the demo program to present the data on the LCD the way you want it. There is only a certain amount of space on the LCD and there is not enough room to display all of the data. In addition, the GPS can function in "raw mode" where the actual data from the GPS receiver is presented without any interpretation and there is much more data available. You will have to look at the demo program and decide for yourself whether it fulfills your needs, then modify it if it does not.
  • bograbogra Posts: 27
    edited 2008-01-26 06:03
    can anybody help me to use the parallax GPS module with BS2?still did not get the data from the GPS receiver using the code attached above.Any help would be appreciated highly.Thanks all.
  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-26 06:28
    There have been many suggestions made so far. The demo program you posted should work if the GPS receiver is connected properly and is powered by an adequate power source (and has a clear view of the sky). If it's not working, then there is something different about what you have done from what Parallax (and many other users) has/have done. In order to identify what is different about what you have done, you will have to post a schematic of what you actually have (not what you think you have - they are sometimes different) or at least a detailed description of what you have and what is connected to what. The more information that you can provide, the more help that we can be.

    The Parallax sample programs will do what their comments say they will do. Whatever description is given in the comments and in the documentation of the parts needed or connections needed should be correct and adequate for the sample programs to work. This is true for all Parallax products. If something doesn't work, the most likely explanation is that you haven't done what is described. There are occasional errors and every once in a while, there's a defective device, but overwhelmingly, the customer has made a mistake somewhere, often simple and often obvious once found. You will do best if you assume this is so and double and triple check your wiring, power source, programming, etc.

    Post Edited (Mike Green) : 1/26/2008 6:36:44 AM GMT
  • sylvie369sylvie369 Posts: 1,622
    edited 2008-01-26 13:45
    When I got the Parallax GPS back in the summer, I hooked it up per the demo program's directions, and ran that program on my laptop, sitting out on my balcony, with the GPS receiver in clear view of the sky. It takes longer than I would have expected for it to get a lock (as it turns out, any of the now three GPS receivers I have take several minutes to get a good signal - patience counts here). But when it did, the program worked perfectly, with all of the data fields filling in properly.

    I've since hooked it all up to use LCD screens instead of my laptop. If you're having a problem showing the data on an LCD, learn to use the LCD with other information first, before going to all the time and trouble of trying to display GPS data (when you have to wait to collect the data). Make sure that you can display strings, and then make sure that you can display the values of variables. Get used to using the LCD first, before trying it together with your GPS receiver.

    In a couple of your posts it sounds as though you're expected the GPS demo program to send the data to the LCD. It will not. You need to write the code to do that. Look at the demos for the LCD to learn how to write that code.
  • bograbogra Posts: 27
    edited 2008-01-26 14:07
    thanks lot.very helpful tips.i got the other data on LCD screen.i have attached the debug window which i got on PC after running the program.it shows that the program is ok.just want to ask you that do i need to hook up all 8 databus pins?or only 4 with the LCD?do you have any hints?manual shows that we can use both.either 4 or 8 bits.actually i am confused with the hooking up of the PINS.
    Thanks lot.

    bogra
  • bograbogra Posts: 27
    edited 2008-01-26 15:09
    hi,i realized that its working.anybody knows how to convert the demo code for displaying the message on the LCD from the PC debug screen?any help would very appreciated very much.
    Thanks
Sign In or Register to comment.