Raspberry Pi Pico 2 W Becomes a Tiny 60 kHz Time Station That Sets Atomic Clocks Indoors

User Avatar Aswinth Raj
Author
Share
Jeff Geerling's Raspberry Pi Pico WWVB Project

Radio-controlled "atomic" clocks only stay accurate if they can hear their time station, and inside a metal-walled workshop they often cannot. Jeff Geerling got tired of carrying his wall clock around to catch the WWVB signal from Fort Collins, Colorado, so he made a Raspberry Pi Pico 2 W broadcast the signal itself. It takes the board, one resistor and a small antenna, and it shows how much radio you can do with the Pico's programmable I/O.

How the Pico fakes a time station

WWVB is a 60 kHz longwave station that sends the time as a slow code, one bit per second, by dropping the carrier power at the start of each second for different lengths. Pico-WWVB, a trimmed-down fork of the Longwave Pico project written in MicroPython, recreates that. On boot, the Pico joins Wi-Fi, gets the time from an NTP server, waits for the next full minute and starts transmitting, re-syncing with NTP every hour. One of the Pico's PIO state machines generates the 60 kHz carrier and keys it with the time code, while the onboard LED blinks out the same ones, zeros and markers so you can see it working.

The hardware list is short: a Pico 2 W or Pico W, a 220 ohm resistor and either a 60 kHz tuned ferrite loop stick antenna or one to two metres of thin wire wound into a loop. The wiring is GP0, through the resistor, through the antenna, to GP1. The resistor limits the current the GPIO pins have to supply, and the README is clear that it must not be skipped. In the video, Jeff puts the antenna next to a La Crosse analogue wall clock, triggers a manual sync and the hands move to the correct time within a few minutes. A second loop stick on an oscilloscope shows how much the signal depends on how the two antennas are oriented.

Our take

The range is deliberately tiny, which keeps it a local fix rather than a broadcast. Even so, the 60 kHz band belongs to a real time service, so check your local radio rules before building one. Jeff also notes that it sends only the basic amplitude time code, not the phase modulation WWVB added later, which most consumer clocks do not need. One thing for readers outside North America: clocks sold for Europe, the UK or Japan listen to DCF77 (77.5 kHz), MSF (60 kHz) or JJY (40/60 kHz). MSF and JJY share WWVB's 60 kHz frequency, but all three use different time codes, so this exact firmware is for WWVB clocks. As an example of what PIO can do, though, it is a great weekend project. New to the board? Start with our Raspberry Pi Pico MicroPython guide.

Image credit: Jeff Geerling, YouTube, cropped and resized.

About the author: Aswinth Raj is an electronics engineer and the editor of CircuitDigest, where he has published more than 150 hands-on projects and tutorials across Arduino, PIC, ESP32, Raspberry Pi and EV battery systems. He selects the stories on this page for what engineers and makers can actually learn or build from. Connect on LinkedIn

Have any question related to this Article?

Add a comment

No account needed. Your comment appears once a moderator has reviewed it.

Never shown publicly.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.