<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nicola Di Gregorio on Medium]]></title>
        <description><![CDATA[Stories by Nicola Di Gregorio on Medium]]></description>
        <link>https://medium.com/@digregorionicola?source=rss-3f623da8dcff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_Avlqg0sRoPvC0Xl_izgjg.png</url>
            <title>Stories by Nicola Di Gregorio on Medium</title>
            <link>https://medium.com/@digregorionicola?source=rss-3f623da8dcff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 13:14:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@digregorionicola/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Architecture of a VFD clock pt. 1]]></title>
            <link>https://medium.com/@digregorionicola/architecture-of-a-vfd-clock-pt-1-0b5caf4ad463?source=rss-3f623da8dcff------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b5caf4ad463</guid>
            <category><![CDATA[elctronics]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[nixie-tubes]]></category>
            <dc:creator><![CDATA[Nicola Di Gregorio]]></dc:creator>
            <pubDate>Mon, 18 Mar 2024 21:37:39 GMT</pubDate>
            <atom:updated>2024-03-19T20:59:51.852Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L94AI-PgrtCJ8j5NLh-SIg.png" /></figure><p>Before starting, more about this project can be found <a href="https://www.patreon.com/Favtool">here</a> (photos, schematics, part list and gerber files)</p><p>I know I know, talking about architecture on a clock sounds a bit pretentious, and probably it is, I agree. However, I think it is worth it to explain how it works and some of the choices I made during development.</p><p>My manifesto for this project was really simple: <em>making a VFD clock from scratch without any of those junk soviet ICs</em>. Not that I don’t like them, actually I find them astonishing, I have a small collection of soviet BJT myself, and generally I have a strange interest for all dismiss vintage hipster electronic. What I don’t like tho, are the crazy prices sellers on Etsy and E-bay are trying to sell you those ICs, and also (let’s be honest), the fact that they weren’t good to begin with, now it’s been 30–40 years since they were produced, they are known to be fail prone and this is a good enough reason not to use them.</p><h3>Driving the heater</h3><p>VFD are tubes, highly specialised ones, but still tubes, and as most tubes do, they have an heater. On these smaller ones, the heather is just a thin metal wire that runs top to bottom once. Electrically it behaves similarly to the emitter of a transistor, it is responsible of “producing” electrons that will be then accelerated to the anode. This whole transistor analogy was really helpful for me, since initially I had no idea how a tube worked to begin with. Unfortunately, nowadays the technology behind these devices is not thought anymore in electronics class in universes.</p><p>According to the soviet data-sheets I found online (and some contradicting English translation), it requires 50 mA or 0,82 V to properly operate. Of course when it comes to regulate the voltage / current every maker or electronic enthusiast probably have an <strong>LM317</strong> ready to accomplish that. It’s worth mentioning that it is massively overkill for this application to use an IC capable of delivering 1.5A, but again, due to its popularity, it sticks to the purpose of this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8G1pwmGt3yfd43PXr7ZdyA.png" /></figure><p>Unlike other bigger VFDs, the pin-out on the IV-3 strongly suggests to wire the heaters in series, and this means that they have to be driven in constant current. Luckily the LM317, and other 317-Style regulators, can be arranged in a CC configuration. This is simpler done than said, as it is as simple as placing a resistor between the OUT pin and the ADJ pin. The current can then be sourced from the ADJ pin and the value of the current is calculated dividing the reference voltage [1,25 V] internally generated, by the value of the resistor.</p><p>But all that glitters is not gold: in fact, being so simple and easy to use the LM317 is still a linear regulator, this means that all the “excess” power is dissipated as heat. Also, driving them in constant current makes the tubes closer to ground a bit brighter than the ones further away, but this can be easily be fixed via software.</p><h3>Driving the anodes</h3><p>VFD are not nixie tubes, they need much lower voltages to operate. While a nixie requires 175–145 V, VFDs needs just 25ish volts. This makes VFDs much beginner friendly than Nixie, and most importantly, much safer to handle, since no dangerous voltages are involved.</p><p>In this phase, one of my goal was to use the least number of Arduino pins as possible, and the least number of parts as well. This means that the tubes have to be multiplexed, but this will not represents a problem since VFDs and Nixies are really fast, so fast that they are still used to calibrate slow motion cameras at NASA (source required).</p><p>Multiplexing consists in shutting off all the tubes but the one you want to address, rapidly enough that the human eyes cannot tell that they have been off at all. VFDs are somewhat like triodes, the flow of electrons from the cathode to the anode can be controlled with the grid, which literally looks as it sounds: a grid sandwiched between the heater and the anodes. Still, it behaves just the gate of a enhancement N-MOS transistor: a positive potential applied to the grid and the anode will make electrons flow and hit the phosphorus on the anode, otherwise no electrons can flow at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3tvSP8VXI9hIoPM42OwnFQ.png" /></figure><p>That said, we still have 7 anodes and 4 grids to control, surely it is not elegant to use 11 pin of Arduino to address them, people will scream their lungs out on reddit! To solve that we need two shift registers. Probably if you are reading this you have yourself a couple of <strong>74HC595</strong> laying around, this is what i choose here, they are connected in cascade, and to address them is as simple as shifting two 8bit numbers in sequence with a MCU.</p><p>Unfortunately connecting the 25 volts needed to control the tubes to the shift registers will certainly fry the chip and the MCU as well (ask me how I know), something to boost the signal up is needed. This is a job for two ULN2003AN NPN darlington array. They are very common ICs used to drive stepper motors and relays. The design i came up with is what i learned being a BUS, ironically: the outputs of the two shift registers are hooked to the inputs of the two ULN2003, which are the bases of the darlington pairs, while the collector of each darlington is hocked to the 25v through a 10K resistor (i used two resistor networks) and to the corresponding anodes / grid .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*93VF-R6FrKvYjk01KO-vJQ.png" /><figcaption>ULN2003 scheme for each driver</figcaption></figure><p>When the base is low the transistor behave like a high value resistor (with an impedance of ≈ 100K Ohms ), the anodes is in an Hz, High state; when the base is high, the darlington is a low impedance path to ground, pulling the potential of the anode basically to 0 (it shows his Vce_sat but it is a couple of hundreds of milli-volts), while the resistor prevent a huge current from flowing trough the transistor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b5caf4ad463" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>