Three parts cover the whole build: a Raspberry Pi Pico 2 W, a ferrite loopstick antenna tuned to 60 kHz, and one resistor between a GPIO pin and the antenna. Add a USB cable for power and a strip of Velcro to hold the antenna in place, and you have a desk-sized time station that can set a radio-controlled “atomic” clock from about a metre away.
What Jeff Geerling built, and why
Radio-controlled clocks listen for WWVB, a 60 kHz time signal broadcast from Fort Collins, Colorado. Jeff Geerling’s workshop has enough metal in its walls to block it, so his La Crosse wall clock crept ahead by five or six seconds every few days. The old fix was carrying the clock to the front of the studio until it caught the broadcast. He brought the signal to the clock instead. Hackster’s write-up is at https://www.hackster.io/news/fixing-atomic-clocks-that-lose-their-way-fb3294461512.
For readers in the Philippines the appeal is different. WWVB is aimed at North America, so a WWVB-only clock brought home from abroad never hears the real station here. A transmitter on the desk is how it gets a signal at all.
How the Pico imitates a time station
- Time source: the Pico 2 W joins Wi-Fi and asks an NTP server for the current time.
- Carrier: the board’s PIO state machines generate and modulate the 60 kHz carrier, so the timing does not depend on the MicroPython interpreter keeping up.
- Encoding: the time goes out as pulses of different lengths, the same way the real broadcast does it. WWVB sends one bit per second in a 60-second frame, which is why a clock needs a few minutes to lock.
- Software: a MicroPython library called Pico-WWVB does the work, so there is no firmware to write from scratch.
The resistor is there to protect the Pico. A GPIO pin is a 3.3 V output meant for a few milliamps, and a loopstick is a coil of wire, so you do not want the two connected directly.
The tricky part is orientation. Geerling hooked a second loopstick to an oscilloscope and showed that the received signal rises and falls sharply as the two antennas turn relative to each other. If your clock refuses to sync, rotate the transmitter before you touch the code.
Before you copy it
Range is a metre or two by design, which keeps the signal inside the room. Geerling still tells builders to check local radio regulations, and in the Philippines that means the NTC. To test yours, set the board beside the clock, hold the clock’s manual sync button, and give it a few minutes for the hands to move. Start from the Pico-WWVB library and Geerling’s notes linked in the Hackster article, and read the library’s README to confirm which GPIO pin drives the antenna.
Frequently Asked Questions
How does the Pico 2 W know what time to broadcast?
It connects to Wi-Fi and fetches the current time from an NTP server, then encodes that time as pulses on a 60 kHz carrier in the same format the real WWVB station uses.
What parts do I need to build the WWVB transmitter?
A Raspberry Pi Pico 2 W, a ferrite loopstick antenna tuned to 60 kHz, one resistor to protect the GPIO pin, and a USB cable for power. The software is the MicroPython Pico-WWVB library.
What will I learn if I build this?
You will practice using the Pico‘s PIO state machines for precise signal timing, pulling time over Wi-Fi with NTP, and encoding data by pulse width. You also get a hands-on lesson in antenna orientation and in why low-power transmitters still fall under radio rules.
