logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • Clock on VFD IV-17 tubes

    Description and presentation below , designed and made by me, clock based on VFD IV-17 tubes .
    The impulse to make the clock is largely inspired by the video presentation of the Wiktor clock in action:

    https://www.elektroda.pl/rtvforum/topic3196412.html

    The design uses the application notes of the VFD lamp

    http://www.spark-tube.com/wp-content/uploads/2018/08/iv-17-datasheet.jpg
    https://www.eevblog.com/forum/projects/driver-for-iv-4-iv-17-18-segment-vfd-tube/

    Having previously made a clock on the IV18 lamp (and gained some experience), I decided that it was time to start with a much more complicated - much more representative 18-segment IV17 lamp.
    Note here: IV4 (IV-4, ИВ-4) and IV17 (IV-17, ИВ-17) tubes are replacements, and sometimes the designation IV4 may appear in this description.

    The main assumptions for the design of the IV17 clock

    - clock on 6 IV17 tubes;
    - use of the HV integrated circuit to control the segments (in the IV18 clock I used NPN keys to control the segments, it's possible, but a lot of extra work);
    - the control element will be STM32F103.

    Scheme of the clock IV17

    Clock on VFD IV-17 tubes

    Overview of the essential circuits:

    The construction of the clock boils down to the proper power supply and logic operation of 6 VFD IV17 tubes. By assumption, for the 18-segment VFD, the mode of operation with multiplexed display was selected.



    POWER

    High voltage DC power supply based on the standard MC34063, with an interesting option to improve the MOSFET control, borrowed from the link:
    http://mirley.net/boost_converter_for_lamp_nixie.html

    A 120µH inductor (Imax > 1 A) was used, a MOSFET transistor IRL540 with reduced turn-on voltage U GS(th) . The output voltage of this DC-DC converter is 45 V. This voltage value was selected in order to extend the life of the VFD lamps (for multiplexed operation, the note suggests 50-70 Vdc, for static operation 25-30 Vdc) while maintaining sufficient brightness.

    The power supply of the lamp filaments with 1R resistors included in the circuits was selected so as to ensure the catalog operating conditions U fill ~2.4 V. The polarity of the glow potential was changed - the integrated circuit of the L9110 bridge was used.

    CONTROL

    According to the assumptions, the SMT32F103C8T6 microcontroller was used (used e.g. in BluePill modules). The main control of the 18 segments is carried out by means of the HV5812 integrated high-voltage demultiplexer (a simple serial protocol with timing), while the 45 Vdc switching for the grids of 6 IV17 lamps was performed on the NPN (BC847)-PNP (BC856) keys. For the sake of clarity, the 18 220k resistors accelerating the discharge of the switched anode voltages are not shown.

    The system has an active battery backup circuit (CR1220), the time source is an internal RTC with an external 32768 Hz quartz connected. Correction of RTC clock accuracy is possible in two stages (correction_1 of 24h time and correction_2 of 14 days) by entering deviations in settings menu .
    There are 5 levels of display brightness adjustment - this is done by changing the duty factor (Ugrid activity) for a given time slot of a specific VFD lamp. max. lighting level of VFD lamps selected in settings menu.

    U neigh polarity change timing fill through outputs (PWM 50%) complementary Timer1 - with a frequency of approx. 102 Hz.

    The clock is prepared to work with data from the weather station, which it receives via USART3_9600 (Z2 connector) as a frame with 28B (temperature, pressure, humidity, ubatt, lux, - description of the frame in the attachment *txt). Work without the above data from the weather station is possible, only the VFD lighting level - then it is not automatically set to the current value of natural lighting [lux] received from the weather station.

    Settings menu available via classic encoder: up/down/enter. In the settings you can select: display mode (only_time/time+date/time+weather_data), max. VFD lighting level, enter: 2 degrees of clock accuracy corrections.

    Due to the large number of available digital interfaces in the STM32F1, an interface for possible communication with Raspberry I/O, other devices via SPI or I2C has been added to the diagram.

    HOUSING, PCB - execution

    The actual execution of the clock is based on 3 PCBs:
    – main board includes: µC, all power supply circuits, HV5812 segment driver, USART, SPI, I2C interfaces;
    – Display intermediate board includes: NPN (BC847)-PNP(BC856) keys to control 6 grids of VFD tubes, 2xIDC12 connectors for each IV17 tube;
    – VFD IV17 tube board includes: 2xIDC12 connectors, 1 IV17 tube.
    Clock on VFD IV-17 tubes Clock on VFD IV-17 tubes Clock on VFD IV-17 tubes
    Such a division of the pcb gives a certain versatility to build a clock/device based on other VFD tubes (for example IV11 for me). Then only dedicated boards for the VFD lamp and redesign of a simple intermediate display board are needed. The motherboard with µC remains unchanged.

    Clock on VFD IV-17 tubes Clock on VFD IV-17 tubes Clock on VFD IV-17 tubes

    Wooden casing made of ordered cut 3 oak planks 17 mm glued together, forming the proper shape. Then, the place for the PCBs was carefully drilled and 20 mm holes were drilled for the VFD lamps, 6 mm holes for the encoder and a hole for the USB_print power connector. The lower part of the housing is covered with a cut 3 mm fibreboard. All painted with shellac.

    Clock on VFD IV-17 tubes Clock on VFD IV-17 tubes Clock on VFD IV-17 tubes

    The startup itself went smoothly, the power supply on the MC34063 generates 45 V, the voltage practically does not drop when the display is loaded. The clock supply current of about 400 mA is mainly the current of the lamp heating circuits (I fill approx. 300mA).

    A separate matter is the µC software, defining your own characters for the 18-segment display and developing ways to correct the inaccuracy of the 32768 Hz quartz resonator ... it took some time.

    Clock on VFD IV-17 tubes Clock on VFD IV-17 tubes Clock on VFD IV-17 tubes

    In addition to photos of the clock's elements, I am posting a short video of the clock's operation (the option to display time + weather data is visible). Unfortunately, the photos and the video do not fully reflect the color and smoothness of the animation (no flickering is visible in real life) :(




    Clock on VFD IV-17 tubes

    Additionally, in the attachment *.bin batch for STM32F103C8T6.

    Summary

    The basic cost is the lamps, approx. PLN 100, the cost of making the plates PLN 100, the rest of the elements max. PLN 100. Total PLN 300, but of course another clock like this would cost PLN 150. The only thing that would still be equally difficult would be the work/adaptation of the wooden housing to the electronics.

    The optical impressions of the working clock on 6 IV17 lamps, as for me, visually pierce the IV18 lamp. Larger numbers, more complex shapes, the possibility of mini-animation. Of course, the hypnotic/calm turquoise VFD color is unchanged :)

    Designing and building the clock took me several months in 2022, and this post is the end of my VFD adventures started by the clock on IV18 in 2020.
    Attachments:
    • IV4clock.bin (10.78 KB) You must be logged in to download this attachment.
    • ramka_28_B.txt (814 Bytes) You must be logged in to download this attachment.

    Cool? Ranking DIY
    About Author
    wojo1971
    Level 12  
    Offline 
    wojo1971 wrote 40 posts with rating 100. Live in city Bielsko-Biała. Been with us since 2006 year.
  • ADVERTISEMENT
  • #2 20477245
    gulson
    System Administrator
    Great design! Congratulations! Write to me with a parcel locker for a gift for the presentation!
  • ADVERTISEMENT
  • #3 20477336
    pikarel
    Level 39  
    Exemplary design, exemplary prototype execution, clear description with tips.
    However, I miss what every digital clock should have: a display panel with a contrasting filter and masking the assembly of segments.
    You succumbed to the "unfastening" fashion :) , i.e. exposing to view what should not be seen and should be protected against damage.
    As a result, the device loses its functional and aesthetic character, becoming an exhibit deliberately showing the internal structure, here the construction of the display.
    You can try to add a panel-box for lamps, in which only the front would be made of plexiglass, covered with darkening foil (e.g. for car windows), I guarantee you that then it would be a guaranteed WOW effect. To show the lamps to the curious, it would be enough to lift it.

    A big plus from me, and on a scale of 1 to 10 I give 17.
  • #4 20478245
    CosteC
    Level 39  
    Insanely neat design. Well made from the schematic to the case. Just more of these.
    And I have a soft spot for VFD. The blue LEDs are so primitive, even rude.
  • #5 20478670
    KJ
    Level 31  
    Very interesting lamps - nice workmanship, but I do not fully understand this three-layer sandwich, it could be fitted on one pcb and the housing would be much lower. And building a converter on MC34063 in 2023 ... it seems to work ... somehow, but this driver is just old crap.
  • #6 20478773
    CosteC
    Level 39  
    KJ wrote:
    building a converter on MC34063 in 2023 ... it seems to work ... somehow, but this driver is just old crap.

    Do you have any replacement with similar functionality and price only 2x higher? Available for purchase, of course.

    @wojo1971, C22 should be up to 5V. Where it is, it disables the key overload protection.
  • ADVERTISEMENT
  • #7 20478912
    wojo1971
    Level 12  
    KJ wrote:
    building a converter on MC34063 in 2023 ... it seems to work ... somehow, but this driver is just old crap.


    In the initial phase of the project, before the tests on VFD tubes, I launched a prototype DC-DC converter on the LM2577, it worked properly, nicely kept Uwy about 50 V under load. The problem is that max. up to 65 V and at the initial stage I did not want to have restrictions on reaching the Umax voltage around 70 V. The good old MC34063 with an additional transistor did not limit me :)

    CosteC wrote:

    @wojo1971, C22 should be up to 5V. Where it is, it disables the key overload protection.


    Yes, indeed 100μ (tantalum) should have C15 - the C22 capacitor is redundant. I suggested the construction of this converter in the implementation:

    https://threeneurons.wordpress.com/nixie-power-supply/

    C22 interferes with the measurement of the coil current in the I_sense circuit (supposedly it protects against overvoltage, which due to the low resistance of R24 will not occur anyway).
    But but -> is an additional proof of the "idiot-immunity" of the MC34063 system. The added unnecessary capacitor in a quite key circuit does not interfere with the correct operation and obtaining the assumed Vout.
  • ADVERTISEMENT
  • #8 20478942
    szeryf3
    Level 30  
    Nice description of the project, the execution itself is also nice.
  • #9 20478956
    CosteC
    Level 39  
    wojo1971 wrote:
    I suggested the construction of this converter in the implementation:

    https://threeneurons.wordpress.com/nixie-power-supply/

    Few people understand exactly how the MC34063 works. I am not surprised, because the documentation is full of contradictions and errors. In addition, it is made in old technology and is slow. This causes strange behavior if you design using methods for "new chips from 30 years ago" :D :D
    I like the MC34063 for flexibility, but it's not good for anything small or more powerful. It fits perfectly here in my opinion.
  • #10 20479356
    pikarel
    Level 39  
    The MC34063 works as it should if the power supply that uses it is designed according to the art of design. Even test layouts should be made on a PCB with an appropriate topology of paths, all test spiders can be "put in your shoes". Please look at how the power paths 7 and 1-8 are arranged on the PCB from the ONsemi PDF.
    I have not yet replaced this chip in factory devices for reasons other than dried up electrolytic capacitors.
  • #11 20479938
    pawelr98
    Level 39  
    MC34063 has one advantage, it is cheap. This is where the advantages end because it has no other advantages.
    When the power supply is above 5V, then the UC3843 may just be of interest. And this is not a big problem, because now phone chargers can deliver 9-20 V.

    And if it must be 5 V, then UCC280x like 2803/5, starting from 4.1 V.
    8-pin IC, basically the same as UC3843 (pins, operation) but with a newer technology.
    The IC never sees the supply voltage, it can control the voltages and 1000 V. Current measurement, as in any modern system, is from the ground side.

    The main problem with the MC34063 is that it is an IC designed to be used with bipolar transistors and is heavily used with Mosfet transistors by adding "dentures".
  • #12 20480015
    CosteC
    Level 39  
    pawelr98 wrote:
    MC34063 has one advantage, it is cheap. This is where the advantages end because it has no other advantages.

    MC34063 works in any topology (buck, boost)
    The MC34063 has a high side current measurement which is more versatile than low side and works with over current key protection.
    MC34063 can be purchased from many suppliers, super cheap, everywhere.
    MC34063 operates from 3V to 40V
    The MC34063 has a 1.5A 40V internal key and easy to add an external key.
    MC34063 is slow.
    Please find me a modern IC that supports these features. I would like to know something equally universal. UCC280x is faster. Much more expensive, boost only, external key only, start from 4.1V Bida sir, bida.
  • #13 20480067
    Gizmoń
    Level 28  
    It's worth thinking about blanking the zero in the tens hour counter, because - although the numbers are really nice - 8 38 02 is clearer than 08 38 02. By the way, I see a nice mix on this CD! It is a pity that the Chinese have not yet added something in their own way :D
    Clock on VFD IV-17 tubes
  • #14 20480127
    wojo1971
    Level 12  
    The presentation of digital time, e.g. in a Casio watch, is also with an insignificant zero on the hours, but it's a matter of taste 🙂
    As for placing the inscription in Cyrillic, I did pcb before February 2022 ... Now I would write in Ukrainian ☹️
  • #15 20480296
    Gizmoń
    Level 28  
    I didn't mean the Cyrillic alphabet - I have no prejudices against those letters - but about its combination with English and Polish descriptions, and on one board. It's rare to see such an "international" project ;)
    As for the Casio watch - thanks for the information. I haven't seen one like that yet.
  • #16 20480335
    pawelr98
    Level 39  
    CosteC wrote:
    pawelr98 wrote:
    MC34063 has one advantage, it is cheap. This is where the advantages end because it has no other advantages.

    MC34063 works in any topology (buck, boost)
    The MC34063 has a high side current measurement which is more versatile than low side and works with over current key protection.
    MC34063 can be purchased from many suppliers, super cheap, everywhere.
    MC34063 operates from 3V to 40V
    The MC34063 has a 1.5A 40V internal key and easy to add an external key.
    MC34063 is slow.
    Please find me a modern IC that supports these features. I would like to know something equally universal. UCC280x is faster. Much more expensive, boost only, external key only, start from 4.1V Bida sir, bida.

    Buck on 34063 is even worse archaism, because the efficiency is already low.
    In the boost topology, this chip defends itself only thanks to the external mosfet transistor glued as a "prosthetic".

    At 3V, generally, no external non-bipolar transistor will drive, not even logic level. The voltage is eaten by the internal and external PN connectors (to control the mosfet), while in newer ICs it is well used to control the gate directly by the driver.
    Here, too, a serious "non-universality" of "top-down" measurement is revealed, because an IC with bottom-up measurement can be powered from a different voltage than the keying transistor itself. And what could it be for?

    If these few zlotys hurt (because these newer ICs cost a dozen zlotys in gusts) and we want to spare ourselves the logic-level mosfet transistors (you also have to throw in for that), then there is no problem to trigger the cheap 3843 with a higher threshold voltage (8.5 V) then to feed itself.
    The potential charge pump is already on the PCB, the driver from the filament power supply. On and shift register, powered from 5 V.

    For the 384x family of ICs and their newer counterparts, the current measurement can have a significantly reduced threshold voltage, increasing efficiency.
    I also don't know where the accusation of "key protection" comes from, when all these chips also have it.
    You can still show UCC2813 as another one with an external key.
  • #17 20480399
    CosteC
    Level 39  
    @pawelr98 - you didn't propose anything more universal than MC34063. High efficiency is not always needed. And if I need a high-efficiency boost, I'll take something better than the old UC384x with a 1V threshold on the key. Nobody says that there are no better specialized circuits. Are. There are no universal systems today.

    Here the author used the MC33063 nicely and didn't need high efficiency. I'm betting that the UCC3803 wouldn't get more, because the 50mW saving for the VFD doesn't matter.
  • #18 20524006
    Mikrob
    Level 18  
    KJ wrote:
    And building a converter on MC34063 in 2023 ... it seems to work ... somehow, but this driver is just old crap.

    And here a colleague would be surprised how many devices these systems still work in, ICL 7006, 7107 etc. are even older and still very popular and reliable
  • #19 20524018
    KJ
    Level 31  
    Mikrob wrote:
    Well, here a colleague would be surprised in how many devices these systems still work
    Just because they work doesn't mean it makes technical sense. Just like the fact that someone drives a Trabant every day does not make a Trabant a good car :D
  • #20 20527980
    pawelcb33
    Level 24  
    Where did you buy the lamps?
  • #21 20528499
    wojo1971
    Level 12  
    I bought the lamps on ebay as a large one order (IV11 + IV17 + IV18). A little in 2018, then I spent, but one shipment :)
  • #22 20835469
    petuniamover_0c
    Level 1  
    Hi,
    A very interesting and practical design.
    Could you please tell me what waveform you use to drive the L9910?
    I am very interested in your method.
    Thanks
📢 Listen (AI):

Topic summary

✨ The discussion revolves around a user-designed clock utilizing VFD IV-17 tubes, inspired by a previous project featuring the Wiktor clock. The design incorporates six IV-17 tubes and employs high-voltage integrated circuits for operation. Feedback from other users highlights the aesthetic and functional aspects of the clock, with suggestions for improving the display's protective features and critiques of the MC34063 driver used in the design. Users express admiration for the craftsmanship and discuss alternatives for power supply components, emphasizing the need for modern solutions over older technologies. The conversation also touches on the sourcing of the VFD tubes and the design's international character.
Generated by the language model.

FAQ

TL;DR: A DIY STM32F103-driven VFD clock powers six IV-17 tubes with a 45 V/400 mA supply; “MC34063 works in any topology” [Elektroda, CosteC, post #20480015] Build cost ≈ PLN 300 and uses three modular PCBs for easy tube swaps.

Why it matters: The project shows how to merge retro VFD aesthetics with modern MCU accuracy and low-cost power design.

Quick Facts

• High-voltage rail: 45 V DC via MC34063 boost stage [Elektroda, wojo1971, post #20476772] • Filament drive: 2.4 V RMS through 1 Ω resistors, polarity flipped by L9110 bridge [Elektroda, wojo1971, post #20476772] • Total current draw: ≈ 400 mA (≈ 300 mA filaments) [Elektroda, wojo1971, post #20476772] • Brightness control: 5 PWM levels at ~102 Hz multiplex rate [Elektroda, wojo1971, post #20476772] • Materials cost: ~PLN 300 first unit; ~PLN 150 for repeats [Elektroda, wojo1971, post #20476772]

What makes the IV-17 tube attractive compared with the IV-18 used previously?

IV-17 is an 18-segment alphanumeric VFD with larger characters and supports mini-animations, while IV-18 is a simpler 7-segment style. Six IV-17 tubes give 108 segments, delivering more detail and a “hypnotic turquoise” look [Elektroda, wojo1971, post #20476772]

Why did the designer still choose the old MC34063 controller in 2023?

MC34063 costs only a few złoty, works from 3–40 V, supports buck or boost topologies, and includes high-side current sensing with internal 1.5 A switch [Elektroda, CosteC, post #20480015] Efficiency was not critical; the 45 V rail draws <1 W, so newer ICs offered little benefit [Elektroda, CosteC, post #20480399]

How is the 45 V supply built safely?

  1. Use MC34063 in boost mode with a 120 µH, >1 A inductor. 2. Add an external IRL540 MOSFET to reduce losses. 3. Set feedback for 45 V to extend tube life (datasheet suggests 50–70 V for multiplex) [Elektroda, wojo1971, post #20476772] Edge case: leaving capacitor C22 in the sense path disables over-current protection and risks MOSFET failure [Elektroda, CosteC, post #20478773]

What waveform drives the L9110 bridge that flips filament polarity?

The STM32 Timer1 outputs complementary 50 %-duty PWM at ~102 Hz. Each half-cycle the L9110 swaps polarity, eliminating cathode poisoning and hum while keeping the RMS filament voltage at 2.4 V [Elektroda, wojo1971, post #20476772] (L9910 in the later post is a typo; part used is L9110.)

How are the 18 segments of each tube addressed?

An HV5812 shift register receives serial data from the STM32F103 and drives all 18 anode lines at 45 V. Six NPN-PNP transistor pairs select the active grid, enabling 6-way multiplex. Discharge resistors of 220 kΩ per line speed blanking [Elektroda, wojo1971, post #20476772]

How is timekeeping accuracy maintained?

The internal RTC uses a 32.768 kHz crystal. Two software trim stages let the user enter 24-hour and 14-day error corrections via the encoder menu, compensating typical ±20 ppm drift to <1 ppm after calibration [Elektroda, wojo1971, post #20476772]

What materials were used for the enclosure?

The case is three 17 mm oak planks glued into a block, drilled for PCBs and 20 mm tube windows, sealed with shellac, and closed with 3 mm fibreboard [Elektroda, wojo1971, post #20476772]

Where can I source IV-17 tubes today?

The author bought them on eBay as a bulk order in 2018 [Elektroda, wojo1971, post #20528499] Current listings still appear, but prices vary; expect €3–5 per NOS tube (typical eBay search, 2024).

Is there a quick way to define custom characters on the 18-segment display?

Map ASCII codes to 18-bit patterns stored in a lookup table inside Flash. Send the pattern to HV5812 each refresh cycle. The author spent “some time” perfecting the glyphs but shares a ready-to-flash .bin in the thread [Elektroda, wojo1971, post #20476772]

How power-hungry is the finished clock?

Measured consumption is about 2 W: 45 V × 40 mA anodes plus 2.4 V × 300 mA filaments and MCU overhead (statistic) [Elektroda, wojo1971, post #20476772] A modern SMPS at 80 % efficiency raises wall draw to ≈2.5 W.

3-step how-to: designing a quick MC34063 boost for VFD

  1. Pick Vout (45 V) and Iout (40 mA); calculate L using 72 kHz formula in datasheet. 2. Select Rsense for 1 A peak; use an external logic-level MOSFET for >40 V. 3. Add fast diode and 100 µF/100 V output cap, then test under full multiplex load [MC34063A Data Sheet].
Generated by the language model.
ADVERTISEMENT