改装 Nixie 数码管时钟 等公交时也能看时间Hacked Nixie Clock Waits for the Bus


AI free token/AI免费积分
改装 Nixie 数码管时钟 等公交时也能看时间

辉光管时钟如今已十分流行,市面上并不缺乏开箱即用的现成方案,让人无需大费周章便能体验那抹温暖的辉光。许多产品提供的仅仅是一块裸PCB,赋予了购买者自行设计外壳的自由,但至少核心的电子电路部分已准备就绪。

然而,对于[贾斯汀·斯科特](Justin Scott)来说,将新入手的两位辉光管时钟板装入精美的外壳中只完成了一半的工作。他还想实现一些比单纯显示时间更有趣的功能。为了将这块板子从一个简单的时钟,改造为能显示本地公交站下一班公交车还有几分钟到达的设备,他不得不对固件进行修改,并建立与树莓派的通信连接,交由树莓派来处理繁重的运算任务。

第一步是给时钟PCB刷入修改后的固件,这需要使用ST-LINK V2编程器,并花费一些时间排查STM8微控制器上的引脚,以确定它们如何控制辉光管的各个元件。幸运的是,刚好有剩余的I/O引脚,可以通过电平转换器与树莓派Zero建立串行通信链路。

在树莓派端,一个Python脚本通过调用公交API来查询车辆信息及到站时间。小数点闪烁的创意被用来指示后台正在运行的进程,但屏幕显示的核心内容,依然是提示[贾斯汀]距离出门等候公交车还有几分钟。

如果那些商用辉光管板卡都能支持I2C通信那就再好不过了,但至少类似这样的项目证明了,从这些板卡中挖掘出超越单纯显示时间的价值是完全可行的。

本文来源:https://hackaday.com/2026/11/13/hacked-nixie-clock-waits-for-the-bus/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

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.

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry