mikalhart / TinyGPSPlus

A new, customizable Arduino NMEA parsing library
http://arduiniana.org
1.08k stars 491 forks source link

[Edited] Does TinyGPS++ support PPS? [was: change GPS Baud] #53

Closed ajuancer closed 4 years ago

ajuancer commented 5 years ago

Hi! I have a GPS module with 5 Pins: GND, VCC, Rx, Tx & PPS. I know you can define static const uint32_t GPSBaud = 4800; but I would like to know if it's also available to use the PPS pin.

bamapookie commented 5 years ago

The PPS pin is not a serial interface. It doesn't have a baud setting. In my experience (with the Adafruit GBS board) you read the PPS pin through one of your digital inputs. As soon as it goes high, that is the start of the second. It is independent of the GPS messages being sent serially over the TX/RX pins.

Hope that helps.

mikalhart commented 4 years ago

FWIW, yes, you can change the baud rate in your sketch.

sbonaime commented 3 years ago

PPS means Pulse Per Second. It is one pulse every second which can validate date and time

TD-er commented 3 years ago

N.B. the PPS pin on most modules only will output a signal (of 1.000000 Hz, probably even less than 1 usec jitter) if the GPS has either a fix or a sufficient reliable knowledge of time.