Hi, I recently ordered the Adafruit Ultimate GPS Breakout. The previous version clearly included a PPS output, but the new version is not so clear. I'm looking for confirmation if the new version does include a PPS output, and, if so, where it is accessed.
https://learn.adafruit.com/adafruit-ult ... ps/pinouts
Thanks very much,
Elias
Adafruit Ultimate GPS Breakout - PPS on new version
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- eliasbello
- Posts: 1
- Joined: Mon Dec 05, 2022 8:40 pm
- mikeysklar
- Posts: 13979
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Adafruit Ultimate GPS Breakout - PPS on new version
Are you using the Adafruit Ultimate GPS USB #4279?
The product page says:
The FAQ mentions how to access PPS on the USB unit.
The product page says:
https://www.adafruit.com/product/4279PPS output on RI (Ring Indicator) serial control pin
The FAQ mentions how to access PPS on the USB unit.
How can I read the PPS signal on the Ultimate GPS USB?
The PPS line is tied to the serial port RI (Ring Indicator) pin. You can read this with your serial-port interface code. for example here's a version in Python using pyserial:
Code: Select all
import serial
ser = serial.Serial('/dev/ttyS34') # open serial port
print(ser.name) # check which port was really used
last_ri = ser.ri
while True:
if ser.ri != last_ri:
last_ri = ser.ri
if last_ri:
print("\n---------- Pulse high ----------")
else:
print("\n---------- Pulse low ----------")
if ser.in_waiting:
print(ser.read(ser.in_waiting).decode('utf-8'), end="")
Please be positive and constructive with your questions and comments.