Workbench journal

The IV-6 Vacuum Fluorescent Clock

It Ain’t Easy Bein’ Green

I LOVE VINTAGE DISPLAY TECHNOLOGIES. You get a lot of that out of me on this blog— I do realize. Alas, here is another.

For this build, the first four “tubes” I made for this clock were solid white PLA and they helped model how much clock I could fit behind four IV-6s before I committed myself to soldering forty-odd fragile little wires to a board. Forty odd little wired attached to 4 odd little tubes. Read on….

The finished IV-6 clock reads 7:41 as the point between the hours and minutes blinks.
In situ viridis

When I built The Digital Clock, you could follow a minute as it worked its way through a row of 4017 decade counters. This time National Semiconductor did the counting for me. Their MM5316N fits the counters, the alarm logic and the display drivers into one 40-pin chip. What it expects me to supply is a national grid’s sense of AC time. More on that in a minute.

Making room for four tubes

I laser-cut the round front window from clear acrylic and wanted the four digits to fill it from side to side. That settled the width of the display pretty quickly, but it told me very little about how deep the case had to be. I printed four dummy tubes and laser-cut wooden stand-ins for the boards and converters. I marked the blocks with their voltages so I could tell at a glance which converter I was trying to squeeze in.

A working four-tube IV-6 assembly beside four white PLA cylinders on a wooden mock-up.
Same four digits, two ways. The set on the right answered most of my questions about fit.
Two blocks on the wooden mock-up are marked for the 25 V and 5 V boost converters.
From the back, the two wooden blocks mark out the 25 V and 5 V boost converters.
A small wooden block marked 1.2 V sits beneath the four white dummy tubes.
Turn the mock-up around and you can see where the 1.2 V filament buck had to fit.

In Fusion 360 I gave the cell a recess in the bottom of the round case and left an opening for the charging board’s USB-C connector. That last detail is easy to underestimate. The board can fit perfectly inside the case and still leave you nowhere to plug in a cable.

Two Fusion 360 views show the threaded case, internal recess and dimensioned rear USB-C opening.
The case from the inside. At right is the 11.216 mm opening I allowed for USB-C (an average of 5 measured cables terminations).

Four PCBs in a round case

I sent four sets of Gerbers to PCBWay. The power board and the clock mainboard share the same 56 mm-wide outline. I lined up the power pads so straight wires could pass from board to board in the sandwich. The tube breakout plugs into the mainboard at 90 degrees on a two-row pin-and-socket connector. That put the tubes upright behind the acrylic window, and I could still unplug all four as one piece.

Top-side fabrication layouts of the power board, clock mainboard, tube breakout and five-button board at the same scale.
Drawn from the four Gerber sets. You can pick out the 40-pin clock IC on the mainboard and the four circular tube footprints on the breakout.
The two case halves, four-tube assembly, stacked boards, five-button strip, battery and USB charging board laid out on the bench.
Everything that has to go back inside the white ring. The little strip above the battery carries all five buttons.

How an IV-6 digit lights up

Each IV-6 is a vacuum fluorescent display with a single digit sealed inside the tube. A fine heated filament supplies electrons. With the grid positive, those electrons can reach whichever phosphor-coated segments the clock chip has driven positive.

The MM5316N in its socket between the unlit IV-6 tubes and the two blue boost modules.
The long IC in the middle is the clock. National even gave it outputs for the individual digit segments.

The MM5316 drives this display statically. Each digit has its own segment connections, so there’s no software rushing around lighting one tube after the next. There’s even a 1 Hz output on pin 39. I wired that to the decimal point on the second tube to put a blinking separator between the hours and minutes.

What was this chip doing in 1973?

National Semiconductor was already advertising the MM5316 in September 1973. Two pins on the chip give away what its designers had in mind for a bedside clock. Snooze bought you another nine minutes in bed. Sleep let you listen to the radio for up to 59 minutes, at which point the chip could tell the radio to switch itself off. All that lived on the same piece of silicon that counted the seconds and worked out which segments made a 7. National’s 1973 announcement · National’s MOS/LSI databook

There’s a nice (German language) example in a 1974 issue of Funk-Technik. SABA’s electronic clock radio used the very same MM5316N. Follow its transformer secondary on the schematic and you can see it doing two jobs. One path was rectified to supply the clock chip with 25 V. The other fed a transistor that turned the 50 Hz from the winding into pulses the chip could count. Fifty years later I arrived at the same two requirements with a lithium cell on the bench. Supplying the voltage took a boost converter. Supplying the ticks takes a little more explaining. The 1974 SABA circuit, pp. 393–394

Three voltages from one cell

The 5 V USB-C port on the back charges a 500 mAh lithium-ion cell. I get about two hours with the clock unplugged. On my desk I leave the same cable connected and the clock runs continuously. Inside, two MT3608 boost converters take the cell voltage up to 25 V for the MM5316 and display drive, and 5 V for the Seeed Studio XIAO. A third converter, a buck on the tube board, takes that 5 V back down for the filaments.

A 3.7 V cell feeds two MT3608 converters. The 25 V output feeds the clock and display, while 5 V supplies the XIAO and filament buck.
Follow the 5 V branch to the buck converter that heats the filaments in all four tubes.

I called the filament supply “1.2 V” in the design. On the bench I trimmed it to 1.042 V with the tubes running. I’d like these tubes to last. The IV-6 sheet lists 1.0 V as the nominal filament voltage and allows 1.2 V with a shorter guaranteed operating life. That made the reading below a much happier place to leave the adjustment. IV-6 tube data

A digital multimeter reads 1.042 volts alongside the illuminated IV-6 tubes on the workbench.
1.042 V across the filaments with the display lit. The 25 V rail is doing a different job.

Giving a battery clock its own 60 Hz

A mains-powered clock can count cycles from the AC line. The MM5316 accepts 50 or 60 Hz and divides the chosen frequency down to one tick per second. I left its frequency-select pin open for 60 Hz. The little problem here is that a battery supplies DC, and so does USB. Where do the sixty cycles come from?

That’s the Seeed Studio XIAO SAMD21’s entire job. The single working line in my sketch is tone(A0, 60);. The XIAO generates a square wave on A0, also marked D0, and a 2N2222 transistor shifts it up to the level the MM5316 expects on pin 35. From there the vintage chip takes over.

Close view of the dual-row display socket, through-wire and a transistor marked 2N2222 above the tubes.
You can read 2N2222 on the transistor just above the socket.

Here’s the catch. My clock gains about one minute every three days, or twenty seconds a day. If that gain comes entirely from the XIAO, its reference would average 60.014 Hz, about 231 parts per million fast.

My first suspicion was the timer having to round off a fraction. The arithmetic surprised me. In Seeed’s published SAMD core, the timer starts from a nominal 48 MHz, divides by eight, and toggles the pin every 50,000 counts. Two toggles make one cycle. That division comes out to 60 Hz exactly. The board still has to make its 48 MHz, though. In Seeed’s v1.8.5 startup code, a 32,768 Hz crystal sets the reference and the multiplier rounds to 1,465. With an ideal crystal that would make this clock run about nine seconds fast per day. Mine gains roughly twenty seconds a day. If I flashed this version of the core, the rounded multiplier could account for nearly half that gain. I haven’t verified which core version I flashed, so that calculation gives me a prediction to test on the bench. Seeed’s tone routine · SAMD21 clock setup

I’d start by counting rising edges at A0 for one hour against an independent time reference. Exactly 60 Hz gives 216,000 cycles. Seeed’s multiplier predicts about 216,023. A reading near 216,050 would account for the full minute I gain in three days. I’d repeat that count at MM5316 pin 35, on the other side of the 2N2222, and compare it with the chip’s 1 Hz output on pin 39. If A0 is on target but the chip counts fast, I’d look for ringing at pin 35 that might register as an extra pulse. One extra count every 72 seconds would explain the whole gain.

The alarm that you can set

If you spotted the surface-mount 555 footprint on the mainboard, that was my plan for the alarm. Pin 25 on the MM5316 provides an alarm drive signal. I intended to use it to enable a 555 tone generator, but I ran out of room for a speaker loud enough to be worth fitting. You can probably see why in the exploded view.

Five recessed tactile pushbuttons on the back of the round white clock case.
All five controls made it into the case. The speaker had less luck.

I kept Alarm Display and Alarm Off on the button board along with Fast Set, Slow Set and Seconds Display. Holding Alarm Display while pressing either set button advances the stored alarm time. The clock can remember precisely when I wanted it to make a noise. Someday I might even let it.

Five normally open switches connect the positive rail to the MM5316 fast set, slow set, seconds display, alarm display and alarm off inputs.
The button board redrawn from its connections. One common rail serves all five switches.
The orange six-digit clock rolls past 10:36:59 as the green IV-6 clock below advances to 10:37.
Sitting in its glowing prowess, an admirable green against the nixies’ warm orange. We need to bring back more aesthetically pleasing colors to our world of digital displays!

If you want to follow a second through the chip, start with Figure 1 in the National Semiconductor MM5316 datasheet (PDF). The divider, the counters and the segment drivers are all there on one page.

Two VFDs on my desk

Here’s the clock with some company. The four IV-6s on the left are reading 1:02. The tall VFD on the right is my server status display. It has room for CPU activity, RAM, temperature and uptime, with enough pixels left over for a happy Vault Boy to walk along underneath indicating a healthy server.

The IV-6 clock reads 1:02 beside the i5node server VFD, where the seconds advance and a pixel figure walks beneath the status readout.
My IV-6 clock and VFD server status display running side by side.
,

One response to “The IV-6 Vacuum Fluorescent Clock”

  1. […] add VFDs and vintage silicon to the mix? Then it’s time to check out the beauty and elegance of [Joshua Coleman]’s IV-6 Vacuum Fluorescent Clock, and decide whether this clock will wind you up or […]

Leave a Reply