pimp up grandma's clock with Nixie tubes - Page 1
Forum section: electronics / projects

author: FrankBuss
author_rank: Unknown
timestamp: March 17, 2017, 04:42:41 pm
content: I have already too many project, so let's start another one. I boughtthis broken clockand then looked for some Nixie tubes. There are nice ones at eBay. One of the best looking Nixie tube is the Z568M. Usually they cost more than $200 on eBay, and they get sold for this price, see e.g.this listing. Nothing wrong with it and the production quality is high, so it will probably last many years. But there is a new manufacturer, who creates a new version of this tube,Dalibor Farny, each one hand-made, and with 10 years warranty.I bought some, and they are gorgeous. The packet arrived today:Bottom side:and a quick test, it looks so beautifulNow I'll design the circuit board for it.Surprise: I just opened the clock and it comes with a built-in audio deviceThis brings back memories, I remember the sound, my grandparents had such a clock (I think each full hour or at 12 o'clock: dong - dong - dong...). Will add some solenoids.

author: Zbig
author_rank: Frequent Contributor
timestamp: March 17, 2017, 04:57:08 pm
content: I just had a thought that'd be cool if the nixie digits transitioned not quickly and cleanly but with some intentional (pseudo)random noise added for some duration. Imagine the pushbutton switch bounce type waveform applied for, say 300 ms during the transition so it's like "1-1-1-1-1-1-1-2-1-1-2-1-2-2-1-2-2-2-2-2-2-2-2-2". Not sure that would appeal to everyone but I'd personally like to have it at least as an option had I ever be building a nixie clock myself. I think it would add greatly to the steampunky feel, hinting at something mechanical, imperfect, slightly deteriorating. Unless of course it would be detrimental to the tubes' lifespan - then it's not worth considering.

author: bitseeker
author_rank: Super Contributor
timestamp: March 17, 2017, 06:45:09 pm
content: Great title, Frank. Looking forward to seeing this come together.I hadn't heard of this tube builder before. Thanks for the link.

author: FrankBuss
author_rank: Unknown
timestamp: March 17, 2017, 10:02:50 pm
content: Quote from: Zbig on March 17, 2017, 04:57:08 pmI even thought about using PWM to individually control the brightness and do interesting effects. It is possible with Nixie tubes, someone did it:But I found one page where the tube didn't like it (in German) :https://www.mikrocontroller.net/topic/308329In summary: the Nixie tube got cloudy, because they think the PWM causes lots of ignitions with the PWM frequency, and with each ignition the anode sputters a bit of itself on the glass inside. I couldn't find any other reference to this effect, but it sounds plausible. So maybe better to drive it with a constant static voltage. But I'll add individual series resistors at the cathode side for each digit to adjust the relative brightness.

author: cncjerry
author_rank: Unknown
timestamp: March 17, 2017, 10:15:32 pm
content: Interesting. Ping Peter at Tubeclock.com. Great guy but the way.I thought his clocks used some type of either PWM or ramp to keep them from going off to on abruptly. I thought this was actually common with Nixies and had been thinking about asking him for a more immediate application which would be easier to visually sync with WWV, for instance.He wrote me a special PIC chip so I can feed it 1PPS from my GPSDO instead of using the crystal but I haven't installed it. Before I blew up the high voltage and then the original PIC chip, that clock kept less than a second variance per year. I am slowly getting in it dialed back in but it is still running a little slow. Before changing the chip out for the 1PPS I want to see if it will keep the same accuracy. Being a time nut, I was simply amazed with this clock's accuracy without discipline.Anyway, Peter knows a lot about NIxie tube clocks and maintaining the lifespan of the tubes.Nice work, BTW.

author: McBryce
author_rank: Super Contributor
timestamp: March 18, 2017, 12:53:07 pm
content: It may have been the particular frequency he chose for the PWM or just dodgy nixie tubes. My Nixie Clock has been running for years on PWM which it also uses to fade-in/fade-out the digits and none of them have gone cloudy.McBryce.

author: FrankBuss
author_rank: Unknown
timestamp: March 18, 2017, 01:29:33 pm
content: Sounds good, at which frequency do you run the PWM? I guess the higher the better (but then more switching loss) ?

author: McBryce
author_rank: Super Contributor
timestamp: March 18, 2017, 08:42:06 pm
content: I don't remember the exact frequency I used, I'd need to dig out my documents, but it was somewhere around 1kHz and I remember having to fine tune this to something "uneven" because it was causing the tubes to "sing". However, the ideal frequency will probably depend on the tubes you use and the DC/DC you're using to create the HV.McBryce.

author: FrankBuss
author_rank: Unknown
timestamp: March 21, 2017, 02:54:26 am
content: I photoshopped a first design idea:And there is a Hackaday project for the Hackaday prize 2017 where I entered with this project:https://hackaday.io/project/20474-antique-nixie-clockOne motto of the prize is "create a better life for all of us". It helps recycling old clocks, less pollution in landfills, so good for the environment, better life for all of us

author: bitseeker
author_rank: Super Contributor
timestamp: March 21, 2017, 04:40:37 am
content: I like it. Could also try it with each pair of tubes a bit closer together. Also try them closer to the analog clock vs. centered between it and the edges. Sometimes clustering looks good, other times evenly spaced is better. See what feels right to you.

author: FrankBuss
author_rank: Unknown
timestamp: March 21, 2017, 08:41:00 am
content: Quote from: bitseeker on March 21, 2017, 04:40:37 amYou are right, and maybe more to the front, because otherwise the tubes are hidden behind the analog clock if you look at it from the side. And looks even nicer when it is more in one plane with the clock face.

author: McBryce
author_rank: Super Contributor
timestamp: March 21, 2017, 09:46:41 am
content: I know it won't work with tubes that size, but I was expecting the tubes to be mounted inside the clock face?McBryce.

author: FrankBuss
author_rank: Unknown
timestamp: March 21, 2017, 12:57:33 pm
content: Yes, would be too big inside, unless you want to stick it at the side like bull horns, but this would look odd.Actually I have some of these tubes as well:http://www.ebay.de/itm/131800949921Maybe for a smaller wood clock this would look good inside on the clock face.

author: bitseeker
author_rank: Super Contributor
timestamp: March 21, 2017, 11:53:39 pm
content: Quote from: FrankBuss on March 21, 2017, 08:41:00 amYes, I like this arrangement very much. The relationship between the round base of the tubes and the curves of the front edge work well together, too. This looks perfect to me.There's only one problem. Now I want one!

author: FrankBuss
author_rank: Unknown
timestamp: March 22, 2017, 12:31:13 pm
content: I contacted Peter from Tubeclock.com about PWM and his response might be useful for others as well:QuoteIt is interesting that the tubes that change frequently wear out faster, so now the question is how high the PWM frequency should be, because I guess the lower it is, the more it is like a normal turn off/on?

author: McBryce
author_rank: Super Contributor
timestamp: March 22, 2017, 03:33:26 pm
content: I wonder if a PWM with DC offset (on the "off" part) would be friendlier to the Nixies?McBryce.

author: james_s
author_rank: Super Contributor
timestamp: March 25, 2017, 12:40:43 am
content: Many nixie tubes will also audibly "sing" when PWM driven, so this is another issue to consider.

author: bitseeker
author_rank: Super Contributor
timestamp: March 25, 2017, 01:40:04 am
content: Musical clock?

author: FrankBuss
author_rank: Unknown
timestamp: March 28, 2017, 05:39:24 pm
content: I implemented a quick test with a FPGA board. Now I can create any PWM frequency from 85 seconds period time, and up to 25 MHz, programmable by SPI. For each channel I can define an optional initial phase shift in cycles (this is useful to reduce current spikes, which can be a problem if you turn on all PWMs at the same time), the on-time, and the off-time. All values are 32 bit, and the counters for each channel are clocked with 50 MHz, for 10 channels in parallel (I love FPGAs). Maybe slightly overkillbut now I can test different frequencies and fading algorithms easily. For example, this video shows it with a 6 kHz PWM frequency, which results in 13 bits resolution. The PWMs of the FPGA are programmed by an Arduino:For calculating the duty cycle I used a logarithmic curve on the Arduino, as describedhere. I need only 256 steps for smooth on/off toggling, and looks even better in reality than on camera, but the resolution of 13 bits is required, because with 12 bits or lower you can start to see the steps when it is darker.Now I need to build a prototype driver for a Nixie tube, LEDs are boring

author: mbless
author_rank: Regular Contributor
timestamp: March 28, 2017, 09:00:20 pm
content: Quote from: FrankBuss on March 28, 2017, 05:39:24 pmI'm interested to see what solution you come up with given Dave's version and all the other ones floating around online.

author: marshallh
author_rank: Unknown
timestamp: March 29, 2017, 04:21:07 am
content: I've done lots of research on PWMing nixies as part of my clock project. What I found was that my standard size tubes were able to be PWMed at a maximum of about 100 hz. Past that, the digits would not fully light and sometimes get stuck on or off (This is not an issue of my driving setup, it's the tubes themselves)Additionally, there is a limitation on minimum and maximum duty cycles. The problems arise when the time spent on or off becomes less than about 10-15% the overall period. This basically means you cannot PWM the tube below that amount. This is because the gas takes time to ionize the gas around the cathode. If you use a high speed camera on the tube you can see the gas being ionized - it looks like lightning spreading across the sky.Because the brightness is nonlinear, the eye is not able to detect the quantized brightness jump from 95-90% to full on (100% no pwm).If you are using much larger tubes, you may have different limitations, it may be harder to PWM effectively based on the size. But I've only tested with one size tube here.After writing code to account for these limtations, it's possible to hide these phenomena and get a nice looking result. I did PWM modules in verilog with crossfade support, and a NIOS cpu writes desired values to these registers to set the displays.

author: FrankBuss
author_rank: Unknown
timestamp: March 29, 2017, 05:27:57 pm
content: Some years ago I used NIOS in a project. It was nice and using your own custom VHDL entities with a memory mapped interface from NIOS was useful, but the system builder was a bit complicated to use, and all the required manual steps and in the right order after you changed something was a pain. Now with modern ARM microcontrollers it is not cost effective, if you have some room on the PCB for an additional microcontroller. The price advantage for a smaller FPGA without the required gates for NIOS (except maybe in the smallest CPU configuration) is much bigger than a small microcontroller.100 Hz doesn't sound much. Did you record some high speed videos of it? I'd love to see some video with the Chronos high speed camera Dave tested recently, with 21,000 fps, showing the effect of PWM or one ignition process. Meanwhile I ordered a cheap Casio Exilim camera, which promises 1,000 fps at a very low resolution. But should be good enough to see something, if 100 Hz is already the limit, maybe when single stepping the frames later.

author: calexanian
author_rank: Super Contributor
timestamp: March 30, 2017, 12:19:22 am
content: I love it. Keep it up. I want to see how those new nixies work out. I am thinking about starting a small tube company using basically the sales model they are using.

author: FrankBuss
author_rank: Unknown
timestamp: March 30, 2017, 01:40:48 am
content: Quote from: calexanian on March 30, 2017, 12:19:22 amGood luck. From what I've seen, you should plan a year full time or so to develop and practice the art of tube making, and to buy a lot of expensive gear. This is how Dalibor Farny makes them:

author: artag
author_rank: Super Contributor
timestamp: April 03, 2017, 09:40:01 pm
content: Quote from: marshallh on March 29, 2017, 04:21:07 amI used to work on calculators with Nixie tubes . They often had 12 or 16 digits (I guess people with enough money to afford them had large totals to calculate!). I'm pretty sure they were multiplexed, and at 100Hz they'd have flickered badly.e.g.http://www.johnwolff.id.au/calculators/Canon/Canon1210External5.jpgMaybe some nixies are faster reacting than others ? Or it depends what drivers you're using ?

author: Sjoertdb
author_rank: Contributor
timestamp: April 04, 2017, 02:56:45 pm
content: Those are very nice tubes!

author: DaJMasta
author_rank: Super Contributor
timestamp: April 05, 2017, 06:01:04 am
content: Quote from: FrankBuss on March 30, 2017, 01:40:48 amThat is a very cool video.

author: NivagSwerdna
author_rank: Super Contributor
timestamp: April 06, 2017, 08:47:27 pm
content: I do a two way multiplex at 100Hz and it looks fine to humans. (Looks a bit flickery when taking photo/video on my phone due to beat of frame rates).I have six digits with each having two decimal points and also I have space for some colons so I use 2x HV5812s(I hope you plan a stepper motor for the manual hands and GPS time sync)Lovely tubes

author: FrankBuss
author_rank: Unknown
timestamp: April 07, 2017, 07:14:08 pm
content: I updated the Hackaday.io project. You can find a description of the VHDL code for the PWM generator and the Arduino sketch, which might be useful if someone wants to do own experiments, now all in a github repository:https://hackaday.io/project/20474-antique-nixie-clock/log/56827-pwm-testIf you like an follow the project on hackaday.io, you'll get always the latest news about itBut I'll post updates here, too.

author: FrankBuss
author_rank: Unknown
timestamp: April 21, 2017, 08:45:10 am
content: I created a breakout board for the AB1815 RTC clock chip to test it, but I can just mount this on a vero board for the clock later as well. I like the 3D view of KiCad:KiCad files are in the repository.

author: FrankBuss
author_rank: Unknown
timestamp: May 11, 2017, 10:46:01 pm
content: I got the PCBs from OSH Park for my breakout board for the RTC chip:With some solder paste and my heatgun I managed to solder the QFN IC and the other two parts:A quick test with my STM32 discovery board, generating some SPI signals shows that it is ticking, when I read the seconds register:Note the jump from 0x19 to 0x20. This is because it counts in BCD mode.

author: Gary350z
author_rank: Regular Contributor
timestamp: July 15, 2017, 03:52:37 am
content: I am curious. Say I make a nixie clock, nixie tubes are relatively rare and expensive, how long will nixie tubes last when running 24 hours a day?

author: NivagSwerdna
author_rank: Super Contributor
timestamp: July 15, 2017, 12:42:48 pm
content: Quote from: Gary350z on July 15, 2017, 03:52:37 amMost commercial Nixie designs have the option to turn off the tubes at night or when no body is near (PIR sensor etc)... but I think the answer is between zero and 50000hrs... but googling will give you a better answer. (It is recommended to turn all digits on in turn every now and again to avoid crud on the unused elements... that's something I badly need to add to my clock firmware)