No announcement yet.

Using a microprocessor to display GPS data on an LCD

  • Filter
  • Time
  • Show
Clear All
new posts

  • Using a microprocessor to display GPS data on an LCD

    Well I got my basic stamp II, wrote some code for it and finally got it all working. Itís really fast, from moment of turn on it displays GPS data on my Crystalfontz LCD within 4 seconds. Sometimes I have to wait a second from a cold start because my Gamin 35 takes up to 5 seconds get a valid fix.

    My issue now is that I have maxed out the number of variable bytes I can use (26) on my Basic Stamp II. I would like to be able to display more data, because I have a 4x20 LCD to fill up, but I am out of RAM to do anything more.

    I have latitude, longitude (had to crop down to minutes to conserve RAM), speed, and course (numeric) all displayed. I would like to add altitude and direction (N,S,E,W,etc) but I canít process anything more without more RAM.

    Iím sort of at a lost as to what to do at this point I got this far and now Iím stuck; I didnít think I was going to max the BS2 out this easily. Itís looks like it would be fairly easy to add OBD-II support but Iím going to need something more powerful. Do I need to learn assembler to get anything more powerful?

    Attached is a picture of what I have working thus far.

  • #2
    im diggin those runnin shoes....


    • #3
      I don't think you would need to learn assembler... just get a more powerful microprocessor.

      The PIC devices are readily available and fairly cheap. They come in many different configurations, so you can get more or even outboard memory with relative ease.

      There are a number of compilers available, several of which are based upon reasonably high-level languages and are free.

      I haven't found the time to do much with my PIC programmer yet, so I can't be terribly specific, I'm afraid.


      • #4
        You might want to try the basicX stamp. This is very similar to the basic stamp but is faster and has more memory/variables.

        Any change I can get the GPS code?


        • #5
          Dude I can't believe you're showing latitude and longtitude...what is the point?


          • #6
            For day to day driving lat/long is of little use, but if your offroading or using a topo map these are needed. I know I would like to have them available, maybe not displayed all the time but sleectable when needed.

            Originally posted by SuperMatty
            Dude I can't believe you're showing latitude and longtitude...what is the point?


            • #7
              I want to display lat + long because I keep a mental map in my head and I can tell generally where I am or how far I have traveled from points I know.

              Also another problem I was having with the lack of RAM was parsing NMEA sentences. With only 26 bytes RAM I could only use a fixed length NMEA sentence (GPRMC) and only capture strings at known points. With variable length strings like GPGGA (needed to get altitude) I would have to copy the string to RAM, search it, then parse out what I need.

              I wish I had seen the BasicX before I bought the Basic Stamp II. I think I might have to send back my stamp and buy the BasicX instead. The BasicX looks like it not only has a lot more RAM but it runs faster too. So then I should be able to add OBD-II support too.

              Any comments on the Basic Stamp II vs. BasicX?


              • #8
                ROFL - "Self, ok, I have been on i-10 for approx 5 hours, so I am lattitude 00000000000000000000


                • #9
                  Yeah man serious, get real


                  • #10
                    Uh oh I just picked no the admin EDITS POST!


                    • #11
                      Enough on the lat and long display. Itís not for everyone but, Iím a geek.


                      • #12
                        The basic stamp II and basic X are similar, X is faster more I/O, ram, etc. You might also look at the parallax javalin. This is a java based stamp. Lots of I/O, memory and fast.

                        Also if you didnt know, Yahoo groups has a basic stamp support fourm.


                        • #13
                          I decided to that I would return my Basic Stamp II and instead buy the BasicX. It should be here next week. With a student discount I'm gonna get a much more powerful processor for about $30 cheaper.


                          • #14
                            Zip-Lock - You could have just added some external RAM. I know it sounds like a pain in the butt, but I do it all the time. And while you were at it you could have added some EEPROM for data logging. So when one of your buddies/kids/wife/g-f/etc. borrow the car, you can see where they took it. It's also good for making your own maps, and whatnot.
                            [------------------|--] 90% Completed
                            Not installed, yet.
                            Developing Completely DirectX shell.
                            P4 1.7GHz, 256MB RAM, 40GB-7200RPM HD


                            • #15
                              If its variables he ran out of then ram doesnt help that. It might be the way the variables are being used. He might be saving Bitwize variables as bytes. Adding memory is pretty easy but its serial memory and you have to write code to save to memory.