Adafruit Ultimate GPS Breakout - PPS on new version

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
eliasbello
 
Posts: 1
Joined: Mon Dec 05, 2022 8:40 pm

Adafruit Ultimate GPS Breakout - PPS on new version

Post by eliasbello »

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

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit Ultimate GPS Breakout - PPS on new version

Post by mikeysklar »

Are you using the Adafruit Ultimate GPS USB #4279?

The product page says:
PPS output on RI (Ring Indicator) serial control pin
https://www.adafruit.com/product/4279

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="")

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”