EEVblog Electronics Community Forum

Electronics => Projects, Designs, and Technical Stuff => Topic started by: marshallh on August 24, 2015, 01:16:54 am

Title: Slightly overengineered nixie clock
Post by: marshallh on August 24, 2015, 01:16:54 am
I wanted an alarm clock to use for the next 20 years.



(http://retroactive.be/img/i/ra55dbc0a5c2feb3019.png)


(http://retroactive.be/img/i/ra55da6c1b9da17fea1.png)


Isolation slots did not show in 3d so I exported to the flexible CAD tool "MSPaint"

(http://retroactive.be/img/i/ra55da6ef4924c16694.png)

Buttons/switches are on a separate sub-board over 1wire.
I will update as I build it
Title: Re: Slightly overengineered nixie clock
Post by: Richard Head on August 24, 2015, 11:22:45 am
Probably best to move C26 (electrolytic cap) away from the heatsink to ensure a longer cap lifetime.
Title: Re: Slightly overengineered nixie clock
Post by: ajb on August 24, 2015, 02:17:44 pm
No battery backup? 
Title: Re: Slightly overengineered nixie clock
Post by: dr.diesel on August 24, 2015, 02:20:39 pm
Is wifi for NTP sync or media only?
Title: Re: Slightly overengineered nixie clock
Post by: Melt-O-Tronic on August 24, 2015, 02:31:14 pm
What's the local time base?

Related sub-question; how good will holdover be when an NTP source is unavailable?

Related sub-sub-question; how resilient will timekeeping be to power failures?



Edited to add my appreciation for over-engineering, especially on personal projects.   :-+
Title: Re: Slightly overengineered nixie clock
Post by: alexanderbrevig on August 24, 2015, 07:38:55 pm
This is totally awesome! Nice work man  :-+
Title: Re: Slightly overengineered nixie clock
Post by: deephaven on August 24, 2015, 07:58:46 pm
That is INSANE  :scared: Love it  :-+
Title: Re: Slightly overengineered nixie clock
Post by: tautech on August 24, 2015, 08:41:43 pm
Beautiful work so far, thanks for sharing.  8)  :-+

Title: Re: Slightly overengineered nixie clock
Post by: rsjsouza on August 24, 2015, 08:52:35 pm
marshallh, you should be using one of these (https://www.eevblog.com/forum/buysellwanted/ebay-find-lea-5t-high-precision-timing-gps-module/) as your main clock timebase... :)
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on August 24, 2015, 09:00:52 pm
marshallh, you should be using one of these (https://www.eevblog.com/forum/buysellwanted/ebay-find-lea-5t-high-precision-timing-gps-module/) as your main clock timebase... :)
Someone turned me onto these...
http://www.microsemi.com/campaigns/atomic-clocks/ (http://www.microsemi.com/campaigns/atomic-clocks/)


I have a 32khz and 50mhz quartz oscillator for timebase. Battery backup is nonexistent though I supose you could wire a 12v SLA to the jack and it would be a crappy UPS. Wifi is for NTP though it could be for streaming.

Added a photocell forming a RC circuit on a FPGA pin. Should let me sense ambient light and dim the tubes that way. Shunt the voltage then see how long it takes to reach Vhth with the pin tristated.
Title: Re: Slightly overengineered nixie clock
Post by: rsjsouza on August 25, 2015, 12:29:51 am
marshallh, you should be using one of these (https://www.eevblog.com/forum/buysellwanted/ebay-find-lea-5t-high-precision-timing-gps-module/) as your main clock timebase... :)
Someone turned me onto these...
http://www.microsemi.com/campaigns/atomic-clocks/ (http://www.microsemi.com/campaigns/atomic-clocks/)
Nice part; thanks for sharing.

I have a 32khz and 50mhz quartz oscillator for timebase.
One detail I am genuinely curious: on a base-2 processor, how can you accurately obtain 1 second timebase out of 50ms by using a binary divider on your CPU? 
Title: Re: Slightly overengineered nixie clock
Post by: JoeN on August 25, 2015, 01:23:25 am
It needs an OCXO in there somewhere.   O0
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on August 25, 2015, 01:28:19 am
One detail I am genuinely curious: on a base-2 processor, how can you accurately obtain 1 second timebase out of 50ms by using a binary divider on your CPU?

http://www.microchip.com/forums/m410159.aspx (http://www.microchip.com/forums/m410159.aspx)

If you need to generate an arbitrary frequency you can do so with a fractional-N counter. You will get good long term stability as long as you don't truncate the numbers, at the cost of increased jitter. I've done that to generate I2S clocks off a 74.25mhz clock. An analyzer showed the clock was in spec and with acceptable jitter.

For longer term things you want to stick to old fashioned quartz. There are now lots of MEMS devices that are very cheap (I use them for base clocks and digital stuff) but they have poor long-term drift. They are more resilient for rugged environments since they don't exhibit piezo effects. A MEMS oscillator is basically a fixed output buzzing structure with loads of compensation circuitry to correct for PVT.
They're sold under various frequencies by burning internal PLL settings.
These oscillators have only recently become practical and they are quickly getting better.

Another good way to get accurate time... just read the line frequency of the AC input.
Title: Re: Slightly overengineered nixie clock
Post by: JoeN on August 25, 2015, 02:03:41 am
Another good way to get accurate time... just read the line frequency of the AC input.

Do they really keep it that stable?  I mean, for all applications other than clocks trying to tell time off the mains it doesn't matter one bit if it is off 1%, no other applications would ever notice it being off even that much, but that would kill basing a clock on it.  If they are keeping it accurate it must be on purpose.  Which begs the question, what timebase is the power company using?
Title: Re: Slightly overengineered nixie clock
Post by: c4757p on August 25, 2015, 02:28:12 am
Many old-style plug-in clocks use mains as a time reference, and they generally keep fairly good time, so while I don't know the details, it's clearly accurate enough for household-use timekeeping.
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on August 25, 2015, 02:32:34 am
Do they really keep it that stable?  I mean, for all applications other than clocks trying to tell time off the mains it doesn't matter one bit if it is off 1%, no other applications would ever notice it being off even that much, but that would kill basing a clock on it.  If they are keeping it accurate it must be on purpose.  Which begs the question, what timebase is the power company using?

The short answer is although the frequency does vary, it averages out by design.
https://en.wikipedia.org/wiki/Utility_frequency#Stability (https://en.wikipedia.org/wiki/Utility_frequency#Stability)

http://www.intersil.com/content/dam/Intersil/documents/an13/an1342.pdf (http://www.intersil.com/content/dam/Intersil/documents/an13/an1342.pdf)

http://boards.straightdope.com/sdmb/showthread.php?t=446800 (http://boards.straightdope.com/sdmb/showthread.php?t=446800)
Title: Re: Slightly overengineered nixie clock
Post by: JoeN on August 25, 2015, 04:05:13 am
The short answer is although the frequency does vary, it averages out by design.
https://en.wikipedia.org/wiki/Utility_frequency#Stability (https://en.wikipedia.org/wiki/Utility_frequency#Stability)

That's more or less what I figured.  It doesn't matter a bit if the jitter makes some ticks off, as long as there are 5,184,000 in a day, and the next day, and the next.  They can let it drift for a bit and then drift it the other way until the count comes back.  I get that.

Still, to do even this this you need an accurate timebase.  I wonder what it is.  I guess they have some sort of a feed from the national atomic clock.

Thanks for the links.
Title: Re: Slightly overengineered nixie clock
Post by: dr.diesel on August 25, 2015, 10:21:18 am
The short answer is although the frequency does vary, it averages out by design.
https://en.wikipedia.org/wiki/Utility_frequency#Stability (https://en.wikipedia.org/wiki/Utility_frequency#Stability)

That is interesting, I'd heard that rumor before, but as the principal software engineer for two 550MW units I can say there was absolutely no logic to accomplish the above.  Frequency was calculated by rotor RPM, no correction was made between 3597 and 3603 and is fairly cyclic between those limit.  So it will average, think I'll set my old Heathkit power line clock with my GPSDO later today.

This might also be surprising, but there is no "standard" software suit for generation units historically, although some are starting to adopt control system manufacture standards.  Which also don't included this correction.

(trying to ponder if a couple specific units with control logic to attempt correction could be enough to influence the entire grid a few PPM.....)

I will inquire further.
Title: Re: Slightly overengineered nixie clock
Post by: deephaven on August 29, 2015, 01:27:47 pm
What chips are you using to drive the Nixies? I'm guessing they're Microchip (nee Supertex) but which one?
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on August 29, 2015, 06:16:57 pm
I think it was supertex HV5122

(http://retroactive.be/img/i/ra55e1f649cce97146d.jpg)
Title: Re: Slightly overengineered nixie clock
Post by: deephaven on August 29, 2015, 07:52:49 pm
I think it was supertex HV5122

Thanks. I'm thinking of doing a layout using those but at the other end of the technology scale, just using a small PIC. Pain they need 12V logic levels!
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on August 31, 2015, 08:41:32 pm
(http://retroactive.be/img/i/ra55e4bb1328a0b16c4.jpg)
(http://retroactive.be/img/i/ra55e4bb189205c595f.jpg)
(http://retroactive.be/img/i/ra55e4bb7db29a8f6e9.jpg)
Title: Re: Slightly overengineered nixie clock
Post by: Melt-O-Tronic on August 31, 2015, 09:32:48 pm
Oh boy!  I can't wait to see it populated.   :popcorn:
Title: Re: Slightly overengineered nixie clock
Post by: Circlotron on September 01, 2015, 02:52:43 am
Many old-style plug-in clocks use mains as a time reference, and they generally keep fairly good time, so while I don't know the details, it's clearly accurate enough for household-use timekeeping.
The mains frequency does vary a little from moment to moment, but over a 24 hours period they manage to have a more or less exact number of cycles. An interesting thing to do is to trigger your scope on the mains while watching a 5MHz or 6MHz signal. Someone starts pulling big power somewhere and as the mains frequency drops ever so slightly the trace slides to the left(?) then finally slows and stops when the steam has been automatically turned up and then it slides to the right(?) to get back to where it was. Entertainment for nerds.
Title: Re: Slightly overengineered nixie clock
Post by: MyElectronsFellOut on September 01, 2015, 06:53:23 am
The boards are looking very nice indeed.
Title: Re: Slightly overengineered nixie clock
Post by: xuio on September 01, 2015, 09:48:25 am
Nice work!  :-+ Definitly "a bit" overengineered  ;D

Isolation slots did not show in 3d so I exported to the flexible CAD tool "MSPaint"

Seems like you are using Altium, you can set the slot layer (for 3d mode) by setting the route tool path:
Design -> Board Options -> Route Tool Path -> Mechanical layer of your choice

Moritz
Title: Re: Slightly overengineered nixie clock
Post by: niekvs on September 01, 2015, 12:26:29 pm
I think it was supertex HV5122

Thanks. I'm thinking of doing a layout using those but at the other end of the technology scale, just using a small PIC. Pain they need 12V logic levels!


You can use the SN75468. It's cheap and more easily available, and no messing around with 12V. You do need an extra diode.

Also see http://lucsmall.com/2011/07/19/using-the-sn75468-as-a-nixie-tube-driver/ (http://lucsmall.com/2011/07/19/using-the-sn75468-as-a-nixie-tube-driver/)

Less than 50 cents each, including shipping:
http://www.aliexpress.com/item/SN75468-SOP-16/32339132658.html?spm=2114.031010208.3.1.PX1i29&ws_ab_test=201407_4,201444_6,201409_5 (http://www.aliexpress.com/item/SN75468-SOP-16/32339132658.html?spm=2114.031010208.3.1.PX1i29&ws_ab_test=201407_4,201444_6,201409_5)
Title: Re: Slightly overengineered nixie clock
Post by: LaserSteve on September 01, 2015, 06:51:46 pm
The US Government is in the process of allowing an experiment in the Midwest to see how ignoring frequency shifting on the Grid System  would help with increasing network efficiency. That may or may not  spell the end of accurate 60 Hz.

http://spectrum.ieee.org/tech-talk/energy/the-smarter-grid/power-system-experiment-in-us-means-clocks-will-speed-up (http://spectrum.ieee.org/tech-talk/energy/the-smarter-grid/power-system-experiment-in-us-means-clocks-will-speed-up)


Steve
Title: Re: Slightly overengineered nixie clock
Post by: dr.diesel on September 01, 2015, 07:29:58 pm
That article is from 2011, no link to what they found during the experiment. 
Title: Re: Slightly overengineered nixie clock
Post by: dr.diesel on September 04, 2015, 02:58:02 pm
That is interesting, I'd heard that rumor before, but as the principal software engineer for two 550MW units I can say there was absolutely no logic to accomplish the above.  Frequency was calculated by rotor RPM, no correction was made between 3597 and 3603 and is fairly cyclic between those limit.  So it will average, think I'll set my old Heathkit power line clock with my GPSDO later today.

This might also be surprising, but there is no "standard" software suit for generation units historically, although some are starting to adopt control system manufacture standards.  Which also don't included this correction.

(trying to ponder if a couple specific units with control logic to attempt correction could be enough to influence the entire grid a few PPM.....)

I will inquire further.

So I set my power line clock in sync with my GPSDO just after I wrote the above, isn't now 11 seconds slow.  Hardly evidence whatsoever, clock could be missing pulses etc, but.....

Also talked with the Controls group, no ones ever seen/heard of any control logic to support time adjustment or sync.
Title: Re: Slightly overengineered nixie clock
Post by: kwass on September 04, 2015, 04:18:56 pm
The US Government is in the process of allowing an experiment in the Midwest to see how ignoring frequency shifting on the Grid System  would help with increasing network efficiency. That may or may not  spell the end of accurate 60 Hz.

Here's an interesting website that shows the current AC mains frequency within each subgrid in the US.  http://fnetpublic.utk.edu/gradientmap.html. (http://fnetpublic.utk.edu/gradientmap.html.)

The have a world-wide map too, but it's hardly the whole world:  http://powerit.utk.edu/worldmap/ (http://powerit.utk.edu/worldmap/)

I think that ending the accurate 60Hz mains frequency would be a terrible idea.  There are many millions of clocks in use that would be obsoleted.  Some test equipment measurements would not be as accurate either.  For example, averaging readings over many power line cycles could potentially constitute different rather time periods, depending on how much the mains frequency is allowed to vary.






Title: Re: Slightly overengineered nixie clock
Post by: knks on September 14, 2015, 10:37:27 pm
The short answer is although the frequency does vary, it averages out by design.
https://en.wikipedia.org/wiki/Utility_frequency#Stability (https://en.wikipedia.org/wiki/Utility_frequency#Stability)

Very interesting... Anyone knows is it the same in Australia?
Title: Re: Slightly overengineered nixie clock
Post by: free_electron on September 15, 2015, 01:05:17 am
You forgot the obligatory blue (or other color) led's in the base of the tubes so you can make them glow ...
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on September 15, 2015, 01:13:07 am
Thought about it but decided not to, I just never was a big fan, and you can't get a nice complementary color with LEDs, neon produces wider spectra output.
I started making a smaller russian tube clock also with IN-16s which i will put some possible red/yellow bicolor LEDs in.


If anyone needs some very small neon bulbs (these are grain of rice sized) for colon seprarators just PM me. I bought 500



(http://retroactive.be/img/i/ra55f770f2ef46b2f43.jpg)
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on September 18, 2015, 01:51:30 am
LV (<12vdc) parts work great, blinking LED! Now onwards for high voltage blinking things!

(http://retroactive.be/img/i/ra55fb6ded1ee2429c9.jpg)
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on September 18, 2015, 08:02:32 am
Running now, but with a very high pitched whine (like a TV flyback). Tried with another transformer that works, same thing. This is a duplicate of a PSU I assembled a couple years ago. Not sure why this time it's noisy. Poking and squeezing the transformer doesn't change anything. It gets worse with the duty cycle (currently around 5% loaded).

My last idea is to check all ceramic capacitor skus against the ones I bought before. Just in case they are exhibiting the piezoelectric effect.
Title: Re: Slightly overengineered nixie clock
Post by: Melt-O-Tronic on September 18, 2015, 07:11:28 pm
Since you have an SD slot on there, you should add a time logger function.  Every 5 minutes, log the time . . . and time stamp each record.   :-DD
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on September 18, 2015, 09:45:51 pm
Solved it, had the switching frequency set to 11khz, adjust RC timer for 72khz.

(http://retroactive.be/img/i/ra55fc82eb51a2b18c9.png)
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on September 20, 2015, 06:43:05 pm
https://www.youtube.com/watch?v=9Xn4m7dCwiU (https://www.youtube.com/watch?v=9Xn4m7dCwiU)
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on September 23, 2015, 07:58:09 pm
Secondary displays came (display alarm settings, wifi network, etc). They are alphanumeric

(http://retroactive.be/img/i/ra560302990332e73d2.jpg)
Title: Re: Slightly overengineered nixie clock
Post by: nidlaX on September 24, 2015, 12:53:41 pm
Prop 65 warning, classic!  :-DD
Title: Re: Slightly overengineered nixie clock
Post by: marshallh on November 23, 2015, 03:07:26 am
(http://retroactive.be/img/i/ra5600c9592b9be24a7.jpg)


(http://retroactive.be/img/i/ra55fdc8c9511b963a3.jpg)



"Colons" installed

(http://retroactive.be/img/i/ra560a25c4af026c7f8.jpg)
Title: Re: Slightly overengineered nixie clock
Post by: TiN on November 23, 2015, 04:07:23 am
 :-+ Neat. Did you have fadein-fadeout for digit's change?
Title: Re: Slightly overengineered nixie clock
Post by: AF6LJ on November 23, 2015, 04:31:27 am
That is way cool I love it.
:)
 :-+