Announcement

Collapse
No announcement yet.

GPS Speed Display

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • GPS Speed Display

    I'm working on a project to display speed of a vehicle using GPS data. I ran it on my PII 300Mhz computer, but seems like there's delay representing the data. Can someone in the forum try it out on their faster computer and get back to me with the result. I'll send you the files if you email me. Here's the picture of the display.
    Attached Files
    66 Mustang

  • #2
    it's not a computer issue, it's a latency thing. it takes time for data to travel down from the orbiting satellites. it's normal.
    Welcome, cdm.
    You last visited: 09-13-2006 at 02:42 AM
    Private Messages: Unread 0, Total 3.

    Wow.. how things have changed in 4 years. Gone are the days of mcgyver and datalux

    Comment


    • #3
      Thanks, but I know about that issue. When I run it on my PII computer, I can't even move the mouse at real time. When I run it on my desktop, it runs much faster, but I can't move the desktop to test it out. I know the speed won't be totally real time, but I want it to get it close as possible.
      66 Mustang

      Comment


      • #4
        Originally posted by umsam
        I'm working on a project to display speed of a vehicle using GPS data. I ran it on my PII 300Mhz computer, but seems like there's delay representing the data. Can someone in the forum try it out on their faster computer and get back to me with the result. I'll send you the files if you email me. Here's the picture of the display.
        Umm GPS NMEA message come once a second that means your speed will only get updated ONCE A SECOND no matter how fast your computer is. The only way around this might be to use third-party binary protocols offered by Garmin and other GPS's but they will not be compatabile with all GPS's. GPS is just not a good way to get any accurate vehicle speed- OBD-II would be the ideal way to do that.

        Comment


        • #5
          I haven't tested it out, but I can see one very big problem right off the bat...

          It only goes to 150. Just my 2 cents though. Nice job otherwise.
          2000 Subaru OBS

          Dell P3 @ 900 Mhz
          7" Lilliput TS w/DigitalWW in-dash mount
          80GB External HD

          I am Zero Bitrate....

          Comment


          • #6
            Originally posted by kiltjim
            I haven't tested it out, but I can see one very big problem right off the bat...

            It only goes to 150. Just my 2 cents though. Nice job otherwise.
            where are you driving that you need above 150 ?

            Scorp

            Comment


            • #7
              Have a read through this thread too http://www.mp3car.com/vbulletin/show...6&page=2&pp=15 unfortunately I lost the source code to a disk crash but I may start over when I get my laptop rebuilt. I think the link to Frodo's site has the first version, I have a compiled exe of the second version if anyone wants to try it.

              My aim was to display speed, heading etc and then add tracking to this so that the app could run and track where it went and how fast such that you could automatically log data when someone borrows your car etc.

              Chris.

              Comment


              • #8
                My prototype is available here http://www.manwhoring.com/mp3car/ukchris/

                Comment


                • #9
                  Check your CPU usage. You should really only be using 0% about 95% of the time. If not, either the serial reader is polling instead of waiting on events, or you're drawing more than once per second. Make sure you're not getting hundreds of reads per second on the serial port first. That would really slow things down.

                  Comment


                  • #10
                    i like it, 2 cent: colors on most used speeds. like 65 here in states and larger numbers. For me it would be more easy to view the color change than the numbers.
                    I GIVE FREE HUGS!
                    Buy Sell or Trade
                    If my pm box is full, please feel free to call me any time. 440-328-3382
                    Thank you
                    Forex
                    Rate Mp3car @ FXroot.com

                    Comment


                    • #11
                      Hi,

                      I'm from australia and down here we use KM/H would it be possible to change this? By the way i'll email you about testing the program out.

                      Thanks
                      CarPC: Currently in progress...

                      Comment


                      • #12
                        siberia37: actually, binary protocols will not help with the update frequency. Almost all gps's update their position information at 1Hz, and thus their average speed. I looked into GPS's that do it faster and found some 5Hz update models (Garmin GPS16A), but they are all very expensive ($300+) due to this fact. Also, the speed returned by the GPS will be the average speed over the last second (or 1/5 second on a 5Hz gps) immediately when it is sent out the serial port.

                        You could couple the GPS data with input from an accelerometer to determine speed changes between GPS updates without sacrificing accuracy too much. The math for this dead reckoning gets a little complicated, but it's still very do-able and the accuracy is pretty good, too! www.phidgets.com sells a pretty inexpensive accelerometer.
                        MY CAR IS FOR SALE!
                        See My Project Page for Details - 2003 BMW E46 ///M3
                        Custom Dash Monitor Housing - OEM Fitment
                        Custom Overhead DVD-ROM Housing in Headliner
                        BMW I-Bus Integration
                        My homepage with many other fun projects!

                        Comment


                        • #13
                          Originally posted by gork
                          You could couple the GPS data with input from an accelerometer to determine speed changes between GPS updates without sacrificing accuracy too much.
                          Or you could do some predictive interpolation of just the GPS output i.e. if the last GPS speed read was "v" and the speed before that was "u" and the present moment is "x" milliseconds after "v", the current speed is approximated by:

                          ( (v-u) * x/1000 ) + v

                          assuming your acceleration rate does not change much over the 1 second interval.

                          Comment


                          • #14
                            Umsam

                            Where can we get the code to test it. I will give it a go this weekend.
                            Audi S8 supercar
                            Modded Xbox 400GB HD
                            Rear 7" screen & navplus

                            Toyota Hiace Van
                            Shuttle PIII 866 256Mb 10GB OPUS powered
                            MediaCar & Mappoint 2004
                            Custom fit 7" TFT VGA TSK

                            Comment

                            Working...
                            X