Linux Format

Setting atomic-clock precise time on your Pi

We all assume that our devices and computers all keep accurate date and time, but when was the last time you looked at the clock on your computer and asked, “I wonder if that time is correct?”

Often computers use the Network Time Protocol (NTP) from an internet time source to synchronise their time. In this tutorial, we’re going to examine a system for establishing accurate time without an internet connection. We will assemble a global positioning system (GPS) receiver using a Raspberry Pi and take advantage of the accurate time signals that are broadcast by GPS satellites.

Establishing a GPS reference time source is a complex task so we’ll break the task down into some manageable parts. First, we’ll install an Adafruit GPS Receiver HAT and configure the software. Second, we’ll examine the output signals provided by the receiver and take advantage of the GPS supplied tools to tweak the receiver for obtaining accurate time. Finally, we’ll configure a daemon service that uses the GPS signals to ensure the computer’s system time is accurate.

A reliable time source used as a reference could be an atomic clock or the master clock on a GPS receiver. NTP uses a stratum levels to organise the hierarchy in a time servers network. A Stratum 0 device is directly connected to a

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format5 min read
Tips For Managing Docker Containers
Everyone knows how containers revolutionised application building and deployment. Using a E disposable stack of containers that make up an app that aren’t using the docker-compose command to manage the stack are missing a trick. It allows the shippin
Linux Format3 min readSecurity
ParrotOS
A security focused operating system that is well suited to the Raspberry Pi 4 2GB and upwards, but not Pi 5 for now. ParrotOS provides a plethora of security auditing tools for both red and blue team members. This is a great distro for learners and n
Linux Format2 min read
Automatic Tracking
TimeSlotTracker has activity monitoring and this includes an optional facility to take screenshots and T place them in a user-defined directory. However, this isn’t the type of intricate user monitoring that some of the other options offer. Idle dete

Related