GPS Data Logging - Help!
brandonlbrewer
Posts: 2
Hello, let me begin by thanking you for viewing my post. I am new to parallax software, but I've heard good things about it, so I decided to give it a try for my project. First, let me tell you the equipment that I will be using:
Propstick USB
MicroSD Card Holder
PMB-688 GPS
The idea is to mount this unit to an RC car and drive it around a track, use the gps unit to store the data in the sd card, then use the csv file to get the data points plotted on google maps. Does anyone have any advice on how to do this? My idea is to have a main function call the gps, get the latitude and longitude values, and store it in a file on the SD card. The gps would repeatedly save points in this same, single file until the gps is shut off. Any code, links, or advice would be greatly appreciated.
Thank you and have a great day,
Brandon
Propstick USB
MicroSD Card Holder
PMB-688 GPS
The idea is to mount this unit to an RC car and drive it around a track, use the gps unit to store the data in the sd card, then use the csv file to get the data points plotted on google maps. Does anyone have any advice on how to do this? My idea is to have a main function call the gps, get the latitude and longitude values, and store it in a file on the SD card. The gps would repeatedly save points in this same, single file until the gps is shut off. Any code, links, or advice would be greatly appreciated.
Thank you and have a great day,
Brandon
Comments
It looks like he even posted his code.
Ragtop also has a GPS project. I didn't see any code posted as glanced through the thread.
Google Earth GPS SD Datalogger
This thread should have everything you need to create a GPS datalogger that creates Google KML files that will import directly into Google Earth (look at my zip file on post #26 and the sample KML file on post #27). I would suggest looking at the KML reference guide as there are a lot of easy tweaks you can add into the KML file that will alter the appearance in Google Earth. I saw a project somewhere that someone did for their car and the Google Earth lines were different colors based upon which gear he was in and the elevation of the path line (height above the ground) was relative to the RPM.
My Propeller based Reverse GeoCache project (the code started from the datalogger thread)
Keep in mind that the accuracy of the GPS you are using is rated at 5 meters, 2DRMS (meaning 42% of the time it will be within 5 meters of positional data received from satellites). This module does have WAAS support which will improve that but the spec sheet does not give further details of accuracy with WAAS enabled (it is enabled by default). In my experience, the repeatability of the position information is within 2 meters, which is fine for most KML datalogging. So, depending on the size of your track, your "path" in Google Earth may be clean enough to get what you want, but it may not be placed properly in the satellite imagery. There may be ways to offset the path data to correct for this if the entire set of path data is offset an equal amount.
Also, the speed of your RC car can affect your logging results, so throttle accordingly! What I mean is that the PMB-688 sends NMEA data strings once per second. It is reading satellite data and calculating position many more times than that, but only sending you a position each second. I would suggest trying a slow drive around the track versus a full speed race around the track to see what differences you come to with your path data. Perhaps several medium speed laps across your course would establish a reasonable path baseline in Google Earth for comparison data.
+1
I had a GPS logging project and when I used a switching regulator in an attempt to conserve battery power, the GPS could no longer establish a lock on the satellites. I had a similar problem when I tried to add a LCD. The LCD backlight voltage booster caused too much interference for the GPS to lock.
Agreed!
Interesting. My experience is the opposite. I have a design with a GPS a switching regulator (from a 1S LiPo) and haven't had any issues. Maybe it's the low overall power draw and excessive decoupling that I did (one 1uF and 0.1uF for every IC)?