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

Can This GNSS HAT Be Used to Set the Time on a Pi Zero W?

Fri Jun 11, 2021 1:51 pm

I'm wondering if there is a way to use this GNSS HAT to continually discipline the time on a Pi Zero W?
https://thepihut.com/products/max-m8q-g ... 0566069443

Any workable solution would be greatly 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
bensimmo
Posts: 5369
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Can This GNSS HAT Be Used to Set the Time on a Pi Zero W?

Fri Jun 11, 2021 2:58 pm

Yes, grab the date-time NMEA message and set the clock.

OR set it up as an NTP source with GPSD (If memory serves me write, it uses GPSD)


Which should give you enough to search on and find the writeup about it.

Though a cheaper GNSS/GPS device would do the job too.


I see a PPS pin on there too, that's a accurate time pulse, so using that would be even better (but methods are similar)

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

Re: Can This GNSS HAT Be Used to Set the Time on a Pi Zero W?

Fri Jun 11, 2021 3:19 pm

Would this guide be applicable?:
https://weberblog.net/ntp-server-via-gp ... pberry-pi/

Or this?:
http://unixwiz.net/techtips/raspberry-pi3-gps-time.html

The reason I'm going with the MAX-M8Q is that I might use again in another project and want a GNSS HAT with a separate antenna on hand.
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.

Return to “HATs and other add-ons”