Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
GPS based instrumentation

 
Post new topic   Reply to topic    Forum Index -> General
Author Message
Don_Kirby



Joined: 15 Oct 2006
Posts: 329
Location: Long Island, New York

Posted: 05 November 2010, 1:37 AM    Post subject: GPS based instrumentation Reply with quote

I've been browsing the wonderful wide web recently looking for a GPS based speedometer to be installed in a boat. What I've found are units intended for racing craft that display speed on a very typical analog style gauge. I've also found that they cost several hundred dollars.

Before I roll my own, I'd be interested in hearing from anyone who has seen or used COTS GPS speedometer with a digital display costing less than say $200.

I have already succeeded in slapping together one myself with one of these, one of these, and a ZX24n. It would need proper watertight packaging and more robust code to be usable in the field however.

It seems that this should be a common item, along with a host of other variations on the same GPS theme. Bearing information is easy to display using the same hardware, as is the time and altitude. I did find one unit that would serve my purposes, but I have yet to be able to actually get one in my hands.
Back to top
stevech



Joined: 23 Feb 2006
Posts: 688

Posted: 05 November 2010, 2:41 AM    Post subject: Reply with quote

sorry, I don't know. But you do know that GPS at slow speeds, or when turning, is quite inaccurate.
Back to top
FFMan



Joined: 09 Jan 2010
Posts: 264

Posted: 05 November 2010, 9:12 AM    Post subject: Reply with quote

i'm not sure what COTS is but as part of my bike project it can display speed got from GPS. I used an i2c 4 digit 7 segment led display (from byvac) to make it readable in outdoor lighting, and to keep the wiring simple.

if you've got a gps input then an option to display heading might be useful although i suspect displaying elevation might not be so handy in a boat ! time is also handy though you need to allow for localalised adjustment.

be aware that if you want to use a h/w serial port (which i think you will need to keep up with a fast gps), and h/w i2c you'll need to use a zx40 as there is a pin clash on the zx24 range. however s/w i2c will work and assuming your app isn't doing too much else that will work fine on a zx24
Back to top
Don_Kirby



Joined: 15 Oct 2006
Posts: 329
Location: Long Island, New York

Posted: 05 November 2010, 10:16 AM    Post subject: Reply with quote

FFMan wrote:
i'm not sure what COTS is[...]


Sorry, 'Commercial-Off-The-Shelf'.

The update rate and slow speed performance aren't really a problem, as even the best pitot tube speedometers are horribly inaccurate at slow speeds as well. On top of those inaccuracies, there's also the issue of moving tides and currents that further skew the readings.

I would imagine that the GPS data would come in on a hardware serial port at something faster than the NMEA standard 4800 baud, and output to my serial display on a software port (it's only 4 bytes of data). Many modern GPS modules, like the one I have, update at 10Hz, which would be impossible at the slower speeds anyway.

As far as which information to display, I agree that altitude isn't particularly useful on a boat, but it might be for an off-road vehicle (or some other commercially viable application).

I'm still looking for an off the shelf solution though, as I don't really have the resources to develop an environmentally sturdy solution myself.

-Don
Back to top
stevech



Joined: 23 Feb 2006
Posts: 688

Posted: 05 November 2010, 22:54 PM    Post subject: Reply with quote

GPS receivers default to 4800 baud. The NMEA standard lacks a means to alter the baud rate. Few people need to do so. I've written code for a SiRF GPS and use their proprietary commands to alter the baud rate and choose which sentences I want, and so on.

My brother has a large twin-engine boat (had a gas one, now a diesel one), with a large array of electronics. Radar, GPS/NAV, Loran, etc. His boat displays boat speed based on, I think, stored tables of the tides and seasonal currents for the area you are in, and what those average out to be, to correct the boat speed. It seems pretty accurate - probably better than GPS. He has a PC aboard with NAV displays on a LCD near the helm. And the radar has a moving map display too.
Back to top
Don_Kirby



Joined: 15 Oct 2006
Posts: 329
Location: Long Island, New York

Posted: 06 November 2010, 0:30 AM    Post subject: Reply with quote

Some units also offer the ability to turn sentences on or off as needed. Most of the Sirf modules I've seen allow this, as do the more advanced NMEA devices. If I understand the specification correctly, there are standards covering the sentence structure and contents, but not necessarily which sentences a unit has to output.

I hadn't thought about compensating with tide data. It's an interesting approach. My particular application would benefit more from actual speed (and hence distance traveled) rather than water speed. Along the same lines, several of the GPS units I was looking at also incorporate a magnetic compass to provide heading information when the GPS couldn't (i.e. standing still). It turns out that this also is not ideal for my particular application due to large amounts of lateral 'slip' inherent to the craft.

-Don
Back to top
stevech



Joined: 23 Feb 2006
Posts: 688

Posted: 06 November 2010, 2:57 AM    Post subject: Reply with quote

I think that boat speed is like true air speed in an airplane which is winds aloft and the heading of the wind, versus the heading of the craft and the indicated air speed.

But alas, I'm naive about the affects of the hull/fuselage on transforming indicated speed to true speed. There's a correction factor for that. One web site says this "slip" correction is up to 16% for boats' different sizes and hull types.

EDIT:
NAV systems today often include a magnetic compass and get speed from GPS or more accuratly (OEM NAV systems) get speed from the vehicle systems. Speed and heading go into a Kalman filter with GPS fix age to use dead reckoning to extrapolate location from the last known. Car NAV systems add the twist that they do map-matching, where they assume you are on a road if you are in some proximity to a known road. This can override the compass estimate of heading in good systems.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> General Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group