CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Question regarding GPS?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Sam_40



Joined: 07 Jan 2015
Posts: 127

View user's profile Send private message

Question regarding GPS?
PostPosted: Wed Apr 01, 2015 9:54 am     Reply with quote

Hello,
I am thinking to build a real time, very accurate GPS unit for land surveying/mapping. Using a GPS unit (did not decide yet on what to use), PIC (did not decide yet on what to use), 4X16 LCD to display the info and maybe a max232 for the GPS if required (every thing that I found uses RS232).
I searched the forum and google. Nothing helpful as far as:
1- What is a good and accurate GPS unit?
2- What will be the best choice as far as PIC from the 18F family?
3- What kind of accuracy should I be expecting out of this?
4- Any good CCS code example to start with?
I am sorry if this is off topic.
Any input will be appreciated.
Thanks,
temtronic



Joined: 01 Jul 2010
Posts: 9255
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Apr 01, 2015 10:18 am     Reply with quote

0) overall you won't be able to compete with a commercial product, so I assume for home use...

1) get one that rcvs a LOT of sat hits, the more the better, more accurate results

2) I like the 18LF46K22 ,since it has a lot of memory and peripherals( including 2 HARDWARE UARTs). You'll need a 3V PIC as all(most) GPS modules are 3volt device, best to check the SPECS!

3) accuracy is based on sat hits, so within say 30M ? It depends on GPS unit.

4) I don't know, not having 'played ' with one.

I'd use a 4x20 display, same price as 4x16, try to get a 3 V version. Having ONE power supply makes life a LOT easier. 4x20 allows for MORE data to be presented, more 'options'. If you select a PIC with MORE features than you 'think' you need, you will save a LOT of R&D time($$$) and have the project finished faster. Consider battery life, bigger batteries last longer, do NOT try to make this thing 'micro' in size!!

hth
Jay
Sam_40



Joined: 07 Jan 2015
Posts: 127

View user's profile Send private message

PostPosted: Wed Apr 01, 2015 11:45 am     Reply with quote

Jay,
Thanks for the reply:
0- Yes, it will be for personal use for now.
1- Any one in particular that is accurate and had been tried on similar project?
2- Thanks, I have couple of the 18LF46K22 chips and some others, with at least 1 uart.
3- 30 meters? Holey moley Smile I get better accuracy with an old Astrolabe Smile
4- Any input on this will help me a lot.
5- I only wanted to display the time and the GPS coordinates. I thought 4X16 would be enough; however I see you point and I will consider 4X20.

Thanks,
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Wed Apr 01, 2015 11:57 am     Reply with quote

there are a number of potentially useful modules
check:

http://www.adafruit.com/datasheets/PMTK_A11.pdf

drivers are another matter and you have serious technical
issues to consider going well beyond the PIC program.

You say "land surveying".....

check this link
http://www.dot.ca.gov/hq/row/landsurveys/SurveysManual/06_Surveys.pdf

In the years when the system had "selective availability" ON
accuracy was quite poor for civilian users -
and even today with single point measurement it is not so easy to
get surface coordinate repeatability to better than a CEP of ~25 ft or so
owing to multipathing, delta cosine error with altitude and doppler jitter when moving. While fine for walking or driving - it is laughable for surveying purposes.

assuming no hot air balloon hovering - and a solid static platform - two error sources are eliminated. you should GOOGLE this:

kinematic gps surveying technique


You really need an external, well placed antenna system to exploit even simple GPS. Not to mention good judgment in case design.

This is a major bit of work if you want REAL accuracy AND have no RF
or surveying experience.

The communication protocol is the least of your problems.
Sam_40



Joined: 07 Jan 2015
Posts: 127

View user's profile Send private message

PostPosted: Wed Apr 01, 2015 12:53 pm     Reply with quote

asmboy,
Thank you sir for the detail information.
temtronic



Joined: 01 Jul 2010
Posts: 9255
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Apr 01, 2015 2:21 pm     Reply with quote

gotta wonder how good a 'tablet' ap might be ? I see 7" units for about $50 these days probably les than a good GPS module.

Jay
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

PostPosted: Wed Apr 01, 2015 3:02 pm     Reply with quote

temtronic wrote:
gotta wonder how good a 'tablet' ap might be ? I see 7" units for about $50 these days probably les than a good GPS module.

Jay


Yeah and accuracy is better because it also gather data from nearby cell towers / wifi + GPS
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Apr 02, 2015 2:18 am     Reply with quote

A MAX232 chip is not required as most modules use a 'logic level' voltage for the serial connection, often 3V so best to build your system on the same voltage.

Why not use a small graphic LCD? Some are even cheaper than a 20x2 LCD.

Ready built devices can be bought, so could you provide more info on why you want to do this project? Is it because you want better specs, save money or is it just fun to build?
Why can't you use a phone or tablet with inbuilt GPS?
You mention land surveying/mapping. This rings alarm bells for the desired accuracy. Standard GPS accuracy is about 15m. For high accuracy up to 10cm a DGPS system is used where GPS is used in combination with a local placed beacon at exact known reference location.

Also remember the difference between accuracy and repeatability. Trying to improve accuracy by taking more GPS location samples is only working up to a certain level as your receiver will often return the same location data with same error.

ELCouz wrote:
Yeah and accuracy is better because it also gather data from nearby cell towers / wifi + GPS
These will improve user experience as they help to get a quicker Time To First Fix (TTFF) but I doubt these will increase the accuracy.
ELCouz



Joined: 18 Jul 2007
Posts: 427
Location: Montreal,Quebec

View user's profile Send private message

PostPosted: Thu Apr 02, 2015 2:29 am     Reply with quote

ckielstra wrote:


ELCouz wrote:
Yeah and accuracy is better because it also gather data from nearby cell towers / wifi + GPS
These will improve user experience as they help to get a quicker Time To First Fix (TTFF) but I doubt these will increase the accuracy.



They do Cell Towers trigonometry [if multiple cell tower are available] its faster than GPS
_________________
Regards,
Laurent

-----------
Here's my first visual theme for the CCS C Compiler. Enjoy!
Ttelmah



Joined: 11 Mar 2010
Posts: 19568

View user's profile Send private message

PostPosted: Thu Apr 02, 2015 2:48 am     Reply with quote

There are several other bits here.

WAAS (this is a "poor man's" differential GPS). Uses a signal from a satellite to give a 'rough idea' of the local error, and improve the accuracy.

aGPS. Assisted GPS. This covers two technologies. The first is improving the speed to obtain the ephemeris A 'cold' GPS (one that has been off for a long time, or has moved a long distance), has an incorrect or out of date ephemeris. Normally the ephemeris is broadcast over 20 minutes by the satellites, which is why in the 'old days' a GPS could take this long to get it's first fix (or longer if the view of the sky was poor). Most modern GPS's can receive the ephemeris in bits from several satellites, so can get this in only perhaps 5 minutes. Once they have it, it is 'good enough' to give a rough location for perhaps 3months, so the units can then give an almost instantaneous first fix (few seconds). aGPS allows the ephemeris to be obtained in only a few seconds from the internet, so the initial fix is quicker, and more accurate. There is also though a variant of this, that includes the local error, and this covers a smaller region than the WAAS signal, improving accuracy very markedly. Suitably enabled devices can give positions to only a few feet accuracy with this. Some phones are using this variant.

Then you get to the 'best' the local DGPS system. Here you have two GPS's that talk to one another only a few hundred yards apart. You position one on a known 'basepoint'. This then reads the GPS position, and broadcasts it's error relative to the know position over some link (wi-fi etc.), to the other unit. The second unit then takes it's GPS position and adjusts this by the error from the first unit. Done carefully, this can give accuracies of only a few hundred cm.

However with all these systems, there is the problem of signal reflection. If you use a GPS based locator and you perhaps approach a tall building, with trees on the other side of you, you can get the situation where the reflected signal from the building, is stronger than the 'straight path' signal going through the trees. Suddenly the distance being measured to all the satellites in the 'tree' direction, is longer than it should be, and your GPS position moves significantly. This is why it is common to be able to get really good positions with surprisingly small errors standing in an open field, but the recorded position from something like a car, will have the erratic spike location many feet from where it should be.... Accurate systems will use secondary data to try to reject such errors. Classic is using an inertial sensor as well, and a position that moves noticeably further than the inertial daa says it should, can then be rejected.

Using a local DGPS system, in open areas, I've repeatedly seen better than 2m accuracy. You can also get more accurate still by recording the phase data from the two units, and post processing this information, can get down to a few cm. However move into a built up area and this degrades massively...

If you are in an area that supports DGPS broadcasting (America for example), then look at brandname GPS modules that support this:

<http://www.roundsolutions.com/shop/en/Modules/GNSS-GPS/Trimble/High-Precision-GPS-cm>

Though they quote 'cm' accuracy, take this with a pinch of salt, anywhere but the middle of a flat field, 'real' accuracies will be a lot worse. However these are an order of magnitude better than the cheap Chinese GPS modules.
Sam_40



Joined: 07 Jan 2015
Posts: 127

View user's profile Send private message

PostPosted: Thu Apr 02, 2015 7:35 am     Reply with quote

Guys,
Thanks a lot for all the very informative information.
I wanted to build this project for 2 reasons:
1- I like to build this kind of stuff.
2- We have a big piece of land; it always required fence maintenance …etc.
I did use a smart mobile device in the past to locate few points and referenced them or compared them to the survey that was done by a surveyor. Most of my readings from the mobile device were off by few inches to few feet. My thoughts was to build one that is more accurate than the phone or car GPS. However it sound like this will be a waste of time to try to build something that is useless Smile
I would like to thank everyone who share their knowledge and took the time to help me understand the concept of the GPS. It also helps to see how you guys approach these kinds of tasks so I may apply them on my other projects!
Thanks again,
Sam
Ttelmah



Joined: 11 Mar 2010
Posts: 19568

View user's profile Send private message

PostPosted: Thu Apr 02, 2015 8:55 am     Reply with quote

Key thing though his that you are not building the GPS, so get a module that helps as much as it can. As I said look at the Trimble units. These are not complete GPS's, but just the little modules, but these ones have the ability to use area DGPS signals like those broadcast in the US etc..
Sam_40



Joined: 07 Jan 2015
Posts: 127

View user's profile Send private message

PostPosted: Thu Apr 02, 2015 2:56 pm     Reply with quote

Ttelmah,
I searched mouser and digikey for the aforementioned product by Trimble with no luck.
It seems the BD920 is the device for me!
The company that you posted the link to is not a US based company!
Where would you buy their product in the US?
Thanks,
temtronic



Joined: 01 Jul 2010
Posts: 9255
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Apr 02, 2015 4:09 pm     Reply with quote

Assuming US really meas U.S.A.
then
perhaps this is too obvious ?
You go to their website,
pull down 'locate dealer',
fill in the blanks
and
wait 3 seconds.....

It found 3 dealers for me for that product.....

hth
Jay
Sam_40



Joined: 07 Jan 2015
Posts: 127

View user's profile Send private message

PostPosted: Thu Apr 02, 2015 5:10 pm     Reply with quote

Jay,
Yes, Your assumption was right! US means USA,
I went to the Trimble website and I found a dealer. I will contact them on Monday.
Thanks,
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group