User avatar
Alex_Landherr
Posts: 192
Joined: Mon May 18, 2020 3:14 pm
Location: Sweden
Contact: Twitter

How to Use This GNSS HAT for Setting The Time

Thu Jun 17, 2021 8:13 pm

I am considering purchasing these parts for a GNSS based NTP server that will also show the time on a 16-digit 7-segment display (not all project parts listed): Is there anyone here that have a good setup guide for configuring this particular GNSS HAT as a time source that also uses the PPS pin on it?
I've found two guides but they are a few years old and uses other hardware. My web searching for guide has been unfruitful so far.

Any answer that links to a guide or is in the form of a guide would be very much appreciated.
Helpful answers are appreciated. I usually respond to Tweets directed at me. JWST is the Sagrada Família of spacecrafts. I code in Python on Windows 10 and Raspberry Pi OS.

User avatar
CaptainMidnight
Posts: 238
Joined: Sun Nov 03, 2019 4:32 pm
Location: UK

Re: How to Use This GNSS HAT for Setting The Time

Sat Jun 26, 2021 9:36 pm

Hi I don't think what you are asking for may exist, in a single guide, but essentially it doesn't matter as from what I've seen the PiHut website links to the HAT configuration guide that leaves you with a working GPSD configuration.

Once you can confirm your GPS data is being received, it's a fairly standard NTP configuration there after to create a NTP server which will provide you with your PPS disciplined time source to output to your display ....

So in essence it's you combining probably 3 distinct guides - there's lots of guides on the net covering both the 1st and 2nd parts - the missing 3rd will just be you taking a time data string and either displaying it or loading year,month,day,hour,min,sec variables and constantly refreshing those on your display.

I'm not saying the above may appear simple or trivial to you initially, but it's not really all that hard either, after you've started playing around with the hardware, completing each part at a time - the fun is in the doing and learning.

I haven't used that exact HAT but the Uputronics HAT (Pi4) size is roughly the same setup to end up with a PPS disciplined NTP server.

So in summary, it's a combination of

1 Pi + GPSD config.
2 NTP server config.
3 Display output config.

i.e potentially easier to locate separate guides - potentially most of 1 is supplied by PiHut so you're already a third of the way home.....
"Never get out of the boat." Absolutely goddamn right!
Unless you were goin' all the way...

User avatar
scruss
Posts: 4179
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: How to Use This GNSS HAT for Setting The Time

Sun Jun 27, 2021 3:46 am

Most of the old tutorials were written when Raspbian used ntpd to sync the system clock. Raspberry Pi OS doesn't use ntpd any more
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

Return to “HATs and other add-ons”