How accurate can a data "time stamp" be made for a GPS with the Propeller?
ElectricAye
Posts: 4,561
Hi all,
I've heard that a GPS system can allow you to "time stamp" data down to 100 ns or 100 microsecond resolution. I'm wondering if that's true, if it takes special GPS receivers, etc. and what sort of accuracies are possible with a Prop-based GPS. I'm guessing that the GPS itself does not give 100 ns resolution but instead the microprocessor is interpolating with its internal clock or something.
Anyone know anything about this sort of thing?
thanks,
Mark
I've heard that a GPS system can allow you to "time stamp" data down to 100 ns or 100 microsecond resolution. I'm wondering if that's true, if it takes special GPS receivers, etc. and what sort of accuracies are possible with a Prop-based GPS. I'm guessing that the GPS itself does not give 100 ns resolution but instead the microprocessor is interpolating with its internal clock or something.
Anyone know anything about this sort of thing?
thanks,
Mark
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade, RetroBlade,·TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
The "survey" class GPS unit's can output more satelite data for use with RTK calculations.
Look at www.u-blox.com - the TIM or LEA 5 series allow for PPS pin customization and will output time in ms - i.e. 13:01:11.001 for example.
james
thanks you guys,
Mark
We tried it once years ago, from a PC. Using nmea only, the couple of different units we tested, the jitter was over 500ms! We switched to use a specialised GPS receiver with PPS output.
I assume you're trying to timestamp something when it happens, and not trigger on the second? If so, I'd have a variable that saves the cnt value at the instant the PPS happens, then when the other action happens, save that cnt value and determine the difference in time. Of course this will only be accurate to the accuracy of the crystal, which for the 5MHz xtal is +/-30ppm, which then flows through the PLL, so at 80MHz, you could be +/-2400 cnts from the actual value, or +/-30 microseconds off by the end of the second (and if you're comparing between multiple props, each one can/will be different). You can probably correct a lot of this error though, by logging difference in cnt at the next PPS and determining how many counts were actually in that second (there should be 80 million, but if you see there's 80.000100 million, then when computing absolute time, just use that number to divide by instead).
Crystals are very sensitive to temperature though, so if the temp is changing rapidly throughout the second (like if it's outside with wind blowing on it), then you'll probably want to use a better oscillator, or at least shield the crystal from the elements, since the clock ticks won't be uniform.
DogP
I thought I remembered some document saying they also timed the start of the serial data pulse to the start of the second, but as of this morning, I can't find any reference to that, or any claim of its accuracy, in the PDFs I've got now.
DogP
This is great stuff. Your inputs have given me plenty to chew on for a while.
bless you all,
Mark