NirusLaboratories
E2Test chambers
ACTIVE 01/ 16

Time from the sky

Test chamber 01. Please synchronise your watch.

Time from the sky

Every satellite in the GPS system carries an atomic clock. A Raspberry Pi with an antenna listens to them and so becomes the most precise clock in the house: a stratum 1 time server. Every device on the network takes its time from it.

Devices synchronised (last hour)–– internal · – external
Satellites–
Offset–
Stratum–

Experimental setup

  1. 01
    Satellites. GPS, Galileo, GLONASS and BeiDou constantly broadcast their time, measured by atomic clocks on board.
  2. 02
    Antenna and receiver. A u-blox NEO-M9N receives all four systems at once and also delivers a pulse per second (PPS): an electrical signal exactly at the start of every second.
  3. 03
    The Pi. gpsd reads the time; the pulse comes in directly on a GPIO pin. chrony combines the two: the time of day from the data, the precision from the pulse.
  4. 04
    The network. Every device in the house asks via NTP: “What time is it?” The answer is right to the millionth of a second.

Evidence

The time server up close
The time server up close
Its workplace under the roof
Its workplace under the roof
At the very top: a clear view of the sky
At the very top: a clear view of the sky

Build your own (DIY)

Not a kit, but every part can be bought on its own. For the clock itself:

For the antenna heater, in case it freezes where you live too:

Winter operation

The antenna needs a clear view of the sky. That is exactly why it cools down on clear nights and gets frost. Once it ices up, reception is gone, and the clocks in the house hang on the internet again instead of the atomic clock in space.

So there is a 12 V heating mat under the antenna plate, with a temperature sensor on top. The Pi switches it on at 2 °C and off again at 6 °C. Not to keep it warm, only against ice.

Most of the software, by the way, is about switching the heater off: when the sensor reports nonsense, when it gets too hot, when current flows although the mat should be off. 25 watts under insulation, right next to a plastic antenna: caution is half the circuit.

Why?

Because it can be done. And because a lot in the homelab depends on it: certificates, passkey logins, log files, backups. When two computers disagree about the time, strange errors follow. With a stratum 1 source of their own, they never disagree.

Test result

Passed. The test subject (a Raspberry Pi 4) showed no signs of time drift.

Time server status page