GPS accuracy
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- creolewalker
- Posts: 14
- Joined: Mon Jul 06, 2015 9:16 am
GPS accuracy
I have been testing the gps unit with a raspberry in a car, I get lots of data into my gpsdata file for later processing.
I have a problem, when doing the same circuit the gps is never the same. Please see example gpsfile and image of google.
How can I sort this problem ?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: GPS accuracy
GPS data is only good to 10 meters.
- creolewalker
- Posts: 14
- Joined: Mon Jul 06, 2015 9:16 am
Re: GPS accuracy
Well that means the adafruit gps is of no use, so is really just a toy. The accuracy of the data as shown on map is well over 10 meters so the unit must be deficient.adafruit_support_rick wrote:GPS data is only good to 10 meters.
Is there any way of increasing the accuracy of the data with this unit or is it just go an use another product that actually does what it is supposed to.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: GPS accuracy
You might try enabling DGPS mode for WAAS. That may improve things.
Add this command to setup()
Also, are you using an external antenna outside of the car?
Add this command to setup()
Code: Select all
GPS.sendCommand("$PMTK301,2*2E\r\n");
- creolewalker
- Posts: 14
- Joined: Mon Jul 06, 2015 9:16 am
Re: GPS accuracy
Thanks.
I have tried many variations of antenna, external and just the internal - both have the same problem.
I will try adding the DGPS mode for WAAS and let you know.
I have tried many variations of antenna, external and just the internal - both have the same problem.
I will try adding the DGPS mode for WAAS and let you know.
- creolewalker
- Posts: 14
- Joined: Mon Jul 06, 2015 9:16 am
Re: GPS accuracy
How do I add this to setup() ?adafruit_support_rick wrote:You might try enabling DGPS mode for WAAS. That may improve things.
Add this command to setup()Also, are you using an external antenna outside of the car?Code: Select all
GPS.sendCommand("$PMTK301,2*2E\r\n");
- creolewalker
- Posts: 14
- Joined: Mon Jul 06, 2015 9:16 am
Re: GPS accuracy
Also would a small drop in voltage cause problems
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: GPS accuracy
Setup already has several calls to gps.sendCommand. You can add the line anyplace in there. Put it after to call to set the update rate, for instance:
Code: Select all
// Set the update rate
GPS.sendCommand(PMTK_SET_NMEA_UPDATE_1HZ); // 1 Hz update rate
// For the parsing code to work nicely and have time to sort thru the data, and
// print it out we don't suggest using anything higher than 1 Hz
GPS.sendCommand("$PMTK301,2*2E\r\n");
How are you powering all this? Both the Arduino and the GPS have voltage regulators. Are you powering the GPS through the Arduino? What sort of voltage drop are we talking about?creolewalker wrote:Also would a small drop in voltage cause problems
- creolewalker
- Posts: 14
- Joined: Mon Jul 06, 2015 9:16 am
Re: GPS accuracy
Hi, this is on a raspberry, connected to the GPIO, I noticed that I lost the fix when other components started (picamera, external hdd, usb webcam although the hdd and webcam are powered from external supply.
Just a thought !
Just a thought !
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: GPS accuracy
Ah - you did say that you were using a raspberry. Sorry - I missed that. See this post and this post for how to enable WAAS DGPS on the Raspberry.
So, you would use mcc's shell script, and execute gpssend '$PMTK313,1*2E' and gpssend '$PMTK301,2*2E'
You might need a larger power supply for the Pi. How many amps will yours supply?
So, you would use mcc's shell script, and execute gpssend '$PMTK313,1*2E' and gpssend '$PMTK301,2*2E'
You might need a larger power supply for the Pi. How many amps will yours supply?
- creolewalker
- Posts: 14
- Joined: Mon Jul 06, 2015 9:16 am
Re: GPS accuracy
Thanks for the response, the unit is out on test for the next 2 days so I will let you know the results.
A quick test did show an improvement, so fingers crossed it will be ok.
A quick test did show an improvement, so fingers crossed it will be ok.
- Kipling
- Posts: 1
- Joined: Wed Jan 28, 2015 2:22 am
Re: GPS accuracy
Hey,
Just wondering how the precision improved after enabling DGPS?
Cheers.
Just wondering how the precision improved after enabling DGPS?
Cheers.
- creolewalker
- Posts: 14
- Joined: Mon Jul 06, 2015 9:16 am
Re: GPS accuracy
Great improvement, we have now purchased 20 GPS units in total and they are all in our race cars gathering information and helping us record 2 video feeds GPS data directly on to the Pi and external USB drives simultaneously.
Thanks for all your help.
Thanks for all your help.
- funkytechmonkey
- Posts: 5
- Joined: Mon Oct 26, 2015 2:36 pm
Re: GPS accuracy
Hey CreoleWalker, I am crazy interested in what you have going on with the Pi. You mind sharing your project with me? Do you have a writeup on it?
Laissez les bon temps rouler!!
Feel free to email me if you dont want to post it up here. [email protected]
Laissez les bon temps rouler!!
Feel free to email me if you dont want to post it up here. [email protected]
- creolewalker
- Posts: 14
- Joined: Mon Jul 06, 2015 9:16 am
Re: GPS accuracy
Hi,
FYI
I have developed using the pi, picamera and usb camera that records footage forwards (using the pi camera ) and internal towards the driver using the USB. Audio is recorded via the USB camera and the GPS using your module. The purpose is to give the footage to the driver on a USB memory stick after his 10 minute drive in either a Ferrari, BANNED, Aston Martin or other supercar (we have 20 available). The unit needs to record all information in real time onto the memory stick so at the end of the drive the customer can take it away with them. Each car does approx 30 drives per day, and there is little time between customers for post processing. The unit also has a main 64g memory card connected via USB that also records each drive in case of customer losing his memory stick data. The unit starts recording in 3 ways, 1 if a USB memory stick is inserted, 2 if the car moves at more than 5 mph or if the manual start button is pressed. There are commercial systems available that do this but at $3000 / unit we thought we would have a go at doing one with a Pi, each system costs @ $200.
This was my first project using a Pi or Python, so the code is a bit spaghetti but does the job. We have been using it for the past 3 months with only a few glitches, I have attached screen shots of video that is produced.
FYI
I have developed using the pi, picamera and usb camera that records footage forwards (using the pi camera ) and internal towards the driver using the USB. Audio is recorded via the USB camera and the GPS using your module. The purpose is to give the footage to the driver on a USB memory stick after his 10 minute drive in either a Ferrari, BANNED, Aston Martin or other supercar (we have 20 available). The unit needs to record all information in real time onto the memory stick so at the end of the drive the customer can take it away with them. Each car does approx 30 drives per day, and there is little time between customers for post processing. The unit also has a main 64g memory card connected via USB that also records each drive in case of customer losing his memory stick data. The unit starts recording in 3 ways, 1 if a USB memory stick is inserted, 2 if the car moves at more than 5 mph or if the manual start button is pressed. There are commercial systems available that do this but at $3000 / unit we thought we would have a go at doing one with a Pi, each system costs @ $200.
This was my first project using a Pi or Python, so the code is a bit spaghetti but does the job. We have been using it for the past 3 months with only a few glitches, I have attached screen shots of video that is produced.
Please be positive and constructive with your questions and comments.