Author Topic: Tiny VFD clock  (Read 25000 times)

0 Members and 1 Guest are viewing this topic.

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Tiny VFD clock
« on: October 24, 2013, 09:07:58 am »
Hey people I have a few questions for a project that I have in my head, it would be great if anyone can help me a little bit.

I recently got the idea to make a VFD clock with some small IV-6 tubes as a present to some friends/family. Due to the number of clocks and my idea for an enclosure there are a few constraints: it has to be tiny but no SMD and cheap so the MAX6921 is not an option.
Currently the Idea is to use a cheap arduino nano clone as microcontroller, why not a lone atmega? well a friend of mine tried that and had some trouble with it, 3 dollar extra is not worth messing around for hours with an arduino (not much of a software guy). To replace the driver I was thinking of using a 74hc595 for the segments and MPSA42 transistors to switch them. But as I am typing this I realize that the arduino nano has 14 I/O so I can probably just drive 11 transistors straight from my arduino. As a PSU I was thinking of a simple mosfet, 100uh inductor, fast diode and capacitor with a 1:15 voltage divider to measure the output.

My remaining questions are:
I read over here: http://www.noritake-itron.com/SubPages/ApplicNotesE/vfdoperapn.htm that it is best to feed the filaments AC but I was planning on hooking up 4 filaments in series and powering that with a 7805 (and maybe a shottky for extra voltage drop, 48*1.2=4,8v). Is the intensity gradient visible with single tubes?

I also read that it is best to have a slight bias on your filament voltage to avoid ghosting, how can I accomplish that with my simple 7805 idea?

Regarding the transistors, I think a MPSA42 with a 1-2K resistor between base and I/O + a 10k pulldown should be alright, but is there a way to calculate these values besides just guessing. I don't completely grasp how to switch the VFD tube with transistors at the moment.

any suggestions, answers, ideas or whatever you have to say about this is greatly appreciated.
 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1203
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Tiny VFD clock
« Reply #1 on: October 24, 2013, 10:40:48 am »
I think I follow what you're suggesting but a quick sketch of your proposed circuit would be nice.

I suspect that you won't see the intensity gradient across a single tube but that there will be a noticable difference between tubes. You could compensate for that in another way (e.g. by changing grid or anode voltages to compensate) but it may well be more work than driving it with square wave a.c.

Conventially you lift the filament a few volts above ground so that 0V on the grid corresponds to a small negative bias. If you were to drive the cathodes with a 5V square wave then you'd lift them to an average 2.5V which might be about perfect. You can of course keep the cathode at ground potential but then you need to make the grid drive swing from a few volts negative to a few volts positive (for most tubes) and that makes it harder to use standard logic.
 

Offline Harvs

  • Super Contributor
  • ***
  • Posts: 1204
  • Country: au
Re: Tiny VFD clock
« Reply #2 on: October 24, 2013, 01:01:43 pm »
I couldn't easily find a datasheet for those tubes, so I'm not sure what you need to drive them.

However, if you haven't seen it, this is how I did it with another VFD, I'm sure you could do something similar.
https://www.eevblog.com/forum/projects/'jelly-bean'-vfd-driver/
 

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Re: Tiny VFD clock
« Reply #3 on: October 24, 2013, 01:56:18 pm »
Well I am currently on my phone but I will post the data when I get home. The main problem is that those tubes need 60 volt instead of 12 like you used.

I think that I understand how you generated the AC but I don't see how you add some bias.

But I will have a better look when I am back home
 

Offline Harvs

  • Super Contributor
  • ***
  • Posts: 1204
  • Country: au
Re: Tiny VFD clock
« Reply #4 on: October 24, 2013, 02:04:15 pm »
I didn't add bias. There was no need at least for the vfd I was using.

I guess a bunch of transistors are called for if you need 60V

 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1203
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Tiny VFD clock
« Reply #5 on: October 24, 2013, 02:08:30 pm »
One way of driving the anodes is simply to have a resistor to the high voltage supply and pull the anode down to ground with one of the open-collector driver chips to turn the segment off. It's not very efficient but it does allow simple driving with standard logic signals. Of course a couple of extra resistors and a PNP transistor per segment would allow real high-side switching. Or was your question really about generating the +60V?

The bias in Harvs driver comes from the average cathode voltage being 2.25V above ground. The grids can then be driven both above and below the cathode, although driving the grids to +12V would be excessive for most VFDs I think.
 

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Re: Tiny VFD clock
« Reply #6 on: October 24, 2013, 04:19:32 pm »
Well my main question at the moment is how to switch the segments on and off. At this point my idea was to do it with MPSA42 is to do it with MPSA92 (PNP version), a 10k pulldown and a resistor between base and I/O which I don't know yet how to calculate. They can easily drive 60 volt since they are rated @300 volts.

The +60 volt supply should not be that much of a problem; MOSFET to switch a coil between V+ and gnd + diode and capacitor. Add a little voltage divider and let the software switch it at ±50khz and adjust the duty cycle according to the voltage seen on the voltage divider.

Harvs already showed a nice idea to create `AC` for the filament; four small MOSFETs and switch the inputs on and off (alternating) although I might use the BS170 due to being very close to their limits with those tubes

attached is a screenshot from a webpage with the specs of the tubes.
« Last Edit: October 24, 2013, 04:26:53 pm by Mad_Hank »
 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1203
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Tiny VFD clock
« Reply #7 on: October 24, 2013, 04:52:11 pm »
Interesting, it looks like you have to pull the grid *very* positive on those ones.

With only PNP transistors at the top you'll struggle to drive it directly from a microcontroller - the base of the transistor (and therefore when no current is drawn both ends of the base resistor) will need to be at +60V to turn it off. You need to either use 56V zeners as "pushrods" or (better) use open collector outputs with a >60V rating, perhaps a ULN2003-type array, to drive the bases of your PNP transistors. You'll struggle with zeners on that voltage I think because your 0-5V logic swing is less than 10% of your "pushrod" length.

You will also need pullups from base to emitter on your PNP transistors to turn them off fully against any leakage current from your base drive. Is that what you meant by 10k pulldown?
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3560
  • Country: us
Re: Tiny VFD clock
« Reply #8 on: October 24, 2013, 05:03:27 pm »
With only PNP transistors at the top you'll struggle to drive it directly from a microcontroller - the base of the transistor (and therefore when no current is drawn both ends of the base resistor) will need to be at +60V to turn it off. You need to either use 56V zeners as "pushrods" or (better) use open collector outputs with a >60V rating, perhaps a ULN2003-type array, to drive the bases of your PNP transistors. You'll struggle with zeners on that voltage I think because your 0-5V logic swing is less than 10% of your "pushrod" length.

An easier way is to use common base NPN transistors to drive the PNP transistors.  You tie the NPN collector to PNP base, NPN base to microcontroller supply voltage, NPN emitter to resistor to microcontroller output pin.

And OP, do some tests before you decide you need 60V.  30V might be bright enough.
 

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Re: Tiny VFD clock
« Reply #9 on: October 24, 2013, 05:13:30 pm »
@ edavid, do you mean like a sziklai pair?
And regarding the grid voltage; it would be easy to adjust in the software or do you mean to make the design easier?

@richard.cd, yeah I still had a NPN transistor in my head so lets flip that around and make it a pullup :)


I'm going to draw a schematic of that part, maybe that clears some things up
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3560
  • Country: us
Re: Tiny VFD clock
« Reply #10 on: October 24, 2013, 05:19:03 pm »
@ edavid, do you mean like a sziklai pair?


No, cascode.

Quote
And regarding the grid voltage; it would be easy to adjust in the software or do you mean to make the design easier?

To make the design easier.
 

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Re: Tiny VFD clock
« Reply #11 on: October 24, 2013, 05:22:23 pm »
Is this what you mean?
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3560
  • Country: us
Re: Tiny VFD clock
« Reply #12 on: October 24, 2013, 05:48:24 pm »
More like this...
 

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Re: Tiny VFD clock
« Reply #13 on: October 24, 2013, 05:57:58 pm »
More like this...

what kind of black magic is that ??? Sorry but I have no idea how that circuit works, can you explain it a little bit?

Am I right that you sink the pin with your microcontroller? So with the I/O high no current can flow but when you pull it low the current can flow, triggers the PNP and hopefully the VFD lights up
« Last Edit: October 24, 2013, 06:53:48 pm by Mad_Hank »
 

Offline Whuffo

  • Regular Contributor
  • *
  • Posts: 112
  • Country: ph
  • An American Living In Paradise
Re: Tiny VFD clock
« Reply #14 on: October 24, 2013, 07:01:20 pm »
You should run the filament on AC. If you use DC (or pulsing DC) to run it, electromigration will shorten the life of the filament. The frequency of the AC isn't critical, so a simple little switched power supply would be perfect - just use AC right off of the switching transformer. You're going to need a fairly elaborate power supply to supply all the voltages; this is the reason you rarely see VFD displays on cheap products. Actually, if you look closely you might discover that some of those VFD displays are really LCD panels running in "white on black" with a EL panel supplying light from behind; that gets "the look" but is simpler and cheaper to make.

Electromigration is a problem with all vacuum tube (and light bulb) filaments. The metal ions form a cloud around the hot filament, and the electric field pulls them along the filament. If you heat with DC, the filament will gradually get thinner on one end and fatter on the other end - and ultimately burn out at the thin end. On AC, the ions still move, but they just do a little shuffle and the filament stays a consistent diameter for much longer.

Vacuum tubes (and VFD displays) are kind of delicate; run them at their specification and they'll last a long, long time. But they don't last long if you run them out of spec; they won't die instantly like solid state devices do, but they'll die all the same. This is important, especially for something like a clock which will be running constantly.
 

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Re: Tiny VFD clock
« Reply #15 on: October 24, 2013, 07:22:27 pm »
Doesn't a switching transformer generate DC?
 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1203
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Tiny VFD clock
« Reply #16 on: October 24, 2013, 07:58:34 pm »
Harvs' design with the H bridge will produce perfectly adequate square wave a.c. for the cathode. Even without worrying about electromigration you'll want a.c. drive for even segment illumination.

Edavid's suggestion should work fine for driving the anodes, I've attached a schematic of what I was suggesting. I don't see much to choose between the two other than a logical inversion although I may well have missed something - Edavid, care to point out what? The one thing I will say in favour of mine is that it can be done in slightly less board area with a transistor array that includes the NPN transistors and the base resistors. The ULN2004, etc are only good for 50V but I'm sure I've come across similar devices with >100V ratings.

« Last Edit: October 24, 2013, 08:10:36 pm by richard.cs »
 

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Re: Tiny VFD clock
« Reply #17 on: October 24, 2013, 08:14:10 pm »
Okay so just build that H bridge (with the BS170 for more current) connect the wires that Harvs connected to U7 to the arduino and flip between 1/0-0/1 at a rate >100hz or something. V+ can then be generated with the 7805 + diode like I was planning and Harvs also does in his design.

The only thing that I am "missing" is how to apply a bit of bias to the filament power supply (in a simple manner) and how that two transistor driver works.
 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1203
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Tiny VFD clock
« Reply #18 on: October 24, 2013, 08:43:29 pm »
From the information you posted it doesn't appear that this display really needs the grid to go negative (achieved by biasing the filament a few volts positive) to turn it off. Harvs design has an inherent +2.2V filament bias anyway and I'd just expect it to work. Are you multiplexing these displays to reduce the number of GPIO pins used? If you are you want to make sure the multiplexing rate is not close to your filament frequency or you may see flickering.

Edavids 2-transistor driver works like this:
Port high, no current flows into the base of Q1, therefore no current flows into its collector from the base of Q2, R2 holds the base of Q2 high, Q2 is off and the VFD output is low.
Port low, current flows from the micro-controller supply into the base of Q1. A larger current flows collector to emitter set by the value of R1 and the micro-controller supply voltage, some flows through R2 and some from the base of Q2. This turns Q2 on and 60V appears at the output.

My circuit works like this:
Port high, current flows into the base of Q1 via R1 and turns it on. This pulls down on the base of Q2 via R2 turning on Q2, 60V appears at the output. Little current flows through R3 as it only has 0.6V across it.
Port low, Q1 is off as it has no base current. The base of Q2 is pulled up to 60V by R3, Q3 is off and the VFD output is low.

There's not much to choose between the two so far as I can see, build whichever you like.
 

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Re: Tiny VFD clock
« Reply #19 on: October 24, 2013, 09:06:31 pm »
Yes the plan is to multiplex everything to keep the partcount low. I need everything as small as possible because the idea that I have for the enclosure will be barely bigger than the pcb + components. I'll post pics once I have designed a circuitboard (at that point I can determine dimensions).

But you mention a +2.2V filament bias, I don't really see where that comes from?

But I would like to thank you all for your help thus far, I'm a 2nd year master student in bioelectronics and nanotechnology (biomedical sciences as bachelor). While I love to mess around with electronics my knowledge sometimes lacks a bit. We did have an electronics course but that was more the OPAMP stuff and/or biological electronics and well... projects like these are nice to improve some skills outside of the laboratory :)
 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1203
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Tiny VFD clock
« Reply #20 on: October 24, 2013, 09:16:53 pm »
But you mention a +2.2V filament bias, I don't really see where that comes from?
In Harvs' design a 4.4V supply is created by dropping a 5V supply with a diode. The mosfets are always in one of two states and the filament always has one end at +4.4V and the other at 0V, but the voltages at the two ends are constantly changing between the two. In the middle the voltage is always +2.2V, at each end the voltage swings from 0V to 4.4V and the average is 2.2V, but at any point in between the voltage is swinging from a bit more than +2.2V to a bit less than +2.2V and the time-average voltage at all points is +2.2V.

This is the square wave equivalent of using a conventional mains transformer of 4.4V output to feed the filament, and connecting the centre tap to +2.2V d.c.

Hope that makes sense now?
 

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Re: Tiny VFD clock
« Reply #21 on: October 24, 2013, 09:28:15 pm »
But you mention a +2.2V filament bias, I don't really see where that comes from?
Hope that makes sense now?

*facepalm* I was thinking of a bias above ground, silly me

Okay a LOT of things have been cleared up today. Thank you, I will draw a schematic of everything somewhere this weekend, but I have a lot of things to do so it'll probably be saturday or sunday before I can post it.

One last question, how accurate is an arduino without RTC as a clock? My nixie clock runs off the DCF77 signal (atom time baby O0) but for a little (gift)project like this a few seconds here and there won't matter but if it is minutes per month it'll be annoying.
 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1203
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Tiny VFD clock
« Reply #22 on: October 24, 2013, 09:34:18 pm »
One last question, how accurate is an arduino without RTC as a clock? My nixie clock runs off the DCF77 signal (atom time baby O0) but for a little (gift)project like this a few seconds here and there won't matter but if it is minutes per month it'll be annoying.

I don't normally work with arduinos but if they're crystal clocked and there are no bugs in your timing code it should be fine I would think. Obvously it would lose time if the power is interrupted. The other thing that can be done is counting mains cycles, the short-term variation is pretty bad but the long term stability is good.
 

Online edavid

  • Super Contributor
  • ***
  • Posts: 3560
  • Country: us
Re: Tiny VFD clock
« Reply #23 on: October 24, 2013, 09:38:13 pm »
Edavid's suggestion should work fine for driving the anodes, I've attached a schematic of what I was suggesting. I don't see much to choose between the two other than a logical inversion although I may well have missed something - Edavid, care to point out what?

It saves a resistor, and it's easy to get the base drive needed for low beta HV transistors, but yes, not much difference.

 

Offline Mad_HankTopic starter

  • Contributor
  • Posts: 35
Re: Tiny VFD clock
« Reply #24 on: October 24, 2013, 09:44:10 pm »
Edavid's suggestion should work fine for driving the anodes, I've attached a schematic of what I was suggesting. I don't see much to choose between the two other than a logical inversion although I may well have missed something - Edavid, care to point out what?

It saves a resistor, and it's easy to get the base drive needed for low beta HV transistors, but yes, not much difference.

While we are talking about resistors... How do you calculate the values you need with the transistors?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf