Hacked Nixie Clock Waits For The Bus

Nixie clocks have become popular enough that these days there’s no shortage of turn-key options that let you experience that warm glow with a minimum of fuss. Many still come as little more than a bare PCB, giving the purchaser some freedom to come up with their own enclosure, but at least the electronics are handled.

But for [Justin Scott], putting his new two-digit Nixie clock board into a handsome box was only half the battle. He also wanted to do something a bit more interesting than just tell the time. To convert the board from a simple clock to a device that could show how many minutes until the next bus showed up at his local stop, he had to hack the firmware and establish a communication link to a Raspberry Pi to do the heavy lifting.

The first step was to get a modified firmware on the clock PCB, and that required a ST-LINK V2 programmer and some time tracing out the pins on the STM8 microcontroller to determine how they controlled the various elements of the Nixie tubes. Fortunately, there were just I/O pins left over to stand up a serial link to a Raspberry Pi Zero through a level converter.

On the Pi side, a Python script hits the bus API to figure out what’s coming and when. There’s some creative blinking of the decimal points to indicate what’s happening behind the scenes, but primarily the display simply shows how many minutes are left before [Justin] should be out waiting for his ride.

It would be nice if all those commercial Nixie boards would talk I2C, but at least projects like this show it’s possible to get more out of them than just the time.

3 thoughts on “Hacked Nixie Clock Waits For The Bus”

  1. Fun project and all but it doesn’t change the fact that public transport is and always will be the most miserable way to travel.

    I learned that lesson the hard way during the very first week of studying at the university. I moved to a big city and thought I would do my daily commute to the university (which is about 2 km in a straight line from where I lived) by the bus like all the other students do. On September 30th I had to wait about 4 hours in a massive queue composed of other university freshmen to apply for my “monthly ticket” document. On the next day I realized how much public transport sucks.

    First I have to walk about 500 meters from my home to the nearest bus stop. The bus which I’m supposed to take arrives *roughly* every 15 minutes. Therefore, depending on how lucky I am, I have to wait there between 0 to 15 minutes. The 3 kilometer route taken by bus then takes about 20 minutes. Finally I have to walk another 400 meters from the bus stop to the doors of the faculty I studied at. In total it takes between 30 and 50 minutes to cover the distance of 2 kilometers. Then it’s the same thing for coming back home. I’m paying the city so that every single day I can waste between 1 and 2 hours of my life in public transport. It’s bullshit!

    By the end of the first week I was so pissed off at taking the bus that I called my parents and asked them to bring me my bicycle. I told them don’t care that winter is coming, cycling in the rain and snow is still preferable to standing with a bunch of losers at the bus shelter.

    Indeed it was. It took me around 10-15 minutes of calm cycling (so I don’t get all sweaty) to go from the doors of my home to the doors of the faculty. When I was in a hurry (like waking up late on an exam day) I did the same trip in about 7 minutes (I would be breaking some traffic laws though). On the way back home I could take a quick detour to stop by the local supermarket to buy beer, bread and a frozen pizza. The money I saved by not taking the bus for five years (which would total to around $2000) could be spent on dev boards, tools, books and all the other stuff a young EE-in-training needs.

    Now when I’m old and have my own car it’s still the same deal. If I want to visit a local home improvement store, it’s about 10 minutes in a car, 15 minutes on the bicycle or 40 minutes by the bus. It’s nonsense!

    (Also, by having a car I can do major food shopping just once every 2 months and then only take a short walk to buy perishable daily groceries in a local store.)

    1. Andy, I hope you get the chance to travel to and enjoy a city where there is good public transit. When I used the the bus system in my city, it was just as miserable as your description; but life has been kind and I’ve enjoyed visiting Europe and South America where I learned that transit is great when it’s done right. Bad transit is a choice by our city planners.
      I’ve also had the experience of taking a family member into my home after a health crisis, and when driving and cycling are not possible, getting to doctors appointments (never mind daily life errands) becomes hugely taxing.
      I hope you reflect on your bad experience, your escape, and the experience of people who don’t have that escape. On a long enough time scale, both you and I will become those people.

      Kudos to maker Justin Scott, for showing that ornament and transit make the world better.

    2. complaints about lived experience are almost always valid, and yours are no exception. but your attempt to turn it into a global truth — “and always will be” — is bogus. a lot of public transit isn’t very good. and, more importantly, a lot of car transport networks are dramatically over-provisioned. but that’s not true everywhere and certainly not true for all time!

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.