Pico railway clock

By Nicola King. Posted

Readers may remember a fantastic Teasmade project that we featured back in The MagPi issue #114, made by Swiss-based team Martin Spendiff and Vanessa Bradley. Well, while browsing their YouTube channel, we noticed that – in a new upcycling project – they have taken a vintage railway clock and transformed it with a Pico. Naturally, we wanted to know what made it tick.

Old timer

“We bought a railway station clock from a flea market and were a bit crestfallen when nothing happened when we plugged it in,” explains Martin. “The nice man who sold it seemed adamant that it worked, so after a bit of reading, I found out that it was waiting for a signal from a ‘Mutteruhr’.”

As the duo explain in their YouTube video, often when you see such clock in a station setting, there is a delay between the second hand reaching 12 and the minute hand advancing; this is because the clock is waiting for an electrical pulse from the ‘Mutteruhr’, or mother/master clock. This pulse drives the minute hand forward and then the second hand is free to complete another cycle.

Martin and Vanessa had purchased what was essentially a secondary clock – ineffective without a mother clock. To get it working, they decided to build a mother clock themselves with a few additional components and some code running on a Raspberry Pi Pico microcontroller.

Inner workings

Attaching a ferrite antenna – to pick up the DCF77 atomic clock long-wave radio signals in Europe – to Pico was a first step, along with incorporating a real-time clock (RTC). “There is a text file that tells the code the time that is showing on the clock,” explains Martin. “You enter that manually. When Pico is plugged in, the code checks if the recorded time is the same as the RTC time – if not, it sends a pulse to the clock, updates the recorded time by a minute, and says ‘what about now?’ It just keeps doing that.”

The pair encountered few issues during the build and think it would be a relatively easy make to replicate. “The Python code needed to be tweaked a little, but it was relatively plain sailing,” says Martin, who reveals that they have now updated the code to also work in the US using the WWVB signal. A radio signal is not essential, however: “Setting the RTC manually would get it to work. The only difference is that the code would not update the RTC.”

The 3.3 V output from Pico’s GPIO pins is converted to 24 V by a step-up module, before being routed to an H-bridge to send the pulse to the clock, although the voltage will depend on the timepiece used. “Some bigger clocks need a bigger electrical ‘kick’,” notes Martin.

The pair’s interest in old clocks has led to quite the collection. Indeed, Martin admits they now have “too many”, but he has a cunning plan to free up some wall space, as he says some will likely become birthday presents “for people that were foolish enough to look interested as we explained to them how they worked!”

As for upcoming ventures, they are certainly not short of spare horological parts. “We’ve got a box with 74 clock movements in it,” reveals Martin. “We mentioned in the video that people often take the original movements out and replace them with quartz movements – we found one of those people, and convinced him to give us the leftovers.” They are not entirely sure what they will do with all their clock components: “ideas welcome!"

From The MagPi store


Subscribe to the newsletter

Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.