Introduction: How to Control a Nixie Tube With an Arduino

A Nixie Tube is a Neon gas-filled tube, that has a wiremesh anode with various cathodes shaped like numbers or symbols. Back in the 1950s they were used in computers, calculators, and laboratory equipment. Nixie tubes were replaced by LEDs and VFDs(vacuum fluorescent displays)in the 1970s. They were too costly to to mass produce so they were no longer used in most new products. Spice up your next project by adding a few nixie tubes.

Disclaimer: This instructable involves using a high voltage power supply. Please take extreme caution if you plan on using Nixie tubes in your projects.

Step 1: Things You'll Need

1. 12vdc Power Supply

2. 12vdc to 180vdc converter. I have tried two that work for me. This one is a kit that you have to solder yourself. This one comes pre assembled.

3. Arduino or other microcontroller.

4. Nixie Tube. I have IN-12B and IN-14 Nixie tubes. Search on ebay for NOS(new old stock) Nixie Tubes.

5. SN74141 IC chip

6. Multimeter.

Step 2: Test Your Nixie Tube

Before connecting your nixie tube to your Arduino, you should test that each digit is functioning properly. Use a multimeter to adjust the DC-DC step up converter to the proper voltage. My nixie tubes need around 180vdc. Connect 180vdc+ to the anode of your nixie tube with a 12k resistor. It doesn't have to be exact and it will depend on the Nixie tube you are using. I like to use a potentiometer so I can adjust the brightness of the tubes. It is best to check the datasheet of your specific nixie tube to determine which pin is the anode but I have found that the pin with a white protective coating is always the anode. Now connect each of the remaining pins to ground to ensure the digits are fully functional. Don't worry about touching two cathodes at once. All that will happen is two digits will light up.

Step 3: Connect Your Nixie Tube

Once your nixie tube has been tested, connect digital pin 11 to pin 4(D), digital pin 10 to pin 7(C), digital pin 9 to pin 6(B), and digital pin 8 to pin 3(A) on the SN74141 IC chip. Connect 5v from the Arduino to pin 5 of the chip and ground from the arduino to pin 12 of the chip. Connect the cathodes of your Nixie tube to the corresponding pins on the SN74141 and connect the the anode of the Nixie tube to 180vdc+. The IC chip takes a binary input on D, C, B, A and outputs the corresponding digit of the nixie tube. Low, Low, Low, Low for 0. Low, Low, Low, High for 1 and so on. If you want to drive two Nixies independently, it will take up 8 Arduino digital pins or you could use a shift register(see figure 4) to only use 3 pins with two nixie tubes. For more information on using a shift register with a nixie tube, visit this instructable. If you use an Arduino Mega, then you probably will not need to use a shift register. You can power the Arduino from the 12v end of the converter or you can use a separate power supply if you want to, but it is not necessary.

Step 4: Upload Your Demo Code

Upload the attached code to your Arduino. The code cycles through each digit of the nixie tube. Use this as a template for your next project. If you want to make your own code, use the function table as well as the attached datasheet for the IC chip.

Step 5: Moment of Truth

Plug in your 12vdc power supply and watch as the Nixie tube cycles through the numbers. If you have problems with only some of the digits lighting, it could be a few things. You may have a bad digital pin on your Arduino or microcontroller, you may have a bad IC chip, or you may have wired your circuit incorrectly. Leave a comment below saying what you'd like to do with Nixie Tubes.

Comments

author
Toldcodger made it!(author)2017-05-07

Hi,

This looks great but it's a bit beyond my current level.

I have been trying to get some IV-9 nixies to work together. I want to get 8 working together but at the moment I only have 3. I If I'm reading the info sheet correctly they don't need high voltage. They certainly show bright enough from 5v

If I connect all the identical wires together I can get them to display the same numbers. Of course I want them to display different numbers. I tried using a 4 digit 7 segment setup.

The segments are connected together with the anodes controlling the individual displays. The wiring looks right but it comes out as random segments instead of numbers.

Any ideas gratfully accepted.

Regards

Dave

P.S. so far all three nixies are alive and well ?

author
Toldcodger made it!(author)2017-05-07

I ought to have mentioned that I'm using an Arduino UNO to control them

Regards

Dave

author
GiorgioC26 made it!(author)2017-05-07

Is it mandatory to use the SN74141 chip or another high voltage ic driver like the K155ID1 (http://tubehobby.com/show_det.php?det=34) or the KM155ID1 (http://tubehobby.com/show_det.php?det=35) will do the trick too?

author
frank20a made it!(author)2017-04-13

I get the principle for controlling more nixies but how do you power them? Can i just connect all annodes for my 6 nixies (for a clock) on the same 180V anode of the power supply? And where does the cathode of the power supply connect (From what i understand all grounds/cathodes go together)?

author
Loovic07 made it!(author)2017-03-22

Really nice and simple, straight forward instruct-able for a novice like me to learn about Nixie and drivers. I used the K155ID 1 which is the same IC and PIN configuration. There was a slight mistake in the code for No.9 but otherwise perfect guide - thank you.

perfect.

author
Okayelectronics made it!(author)2017-02-15

Very help full guide to get started with my Nixie Clock build, thanks.

author
magkopian made it!(author)2016-04-08

Nice job, I always wanted to start playing around with nixie tubes. This instructable looks like a good start, I will bookmark it for later. By the way, the eBay links you have posted seem to be outdated.

author
BrianD7 made it!(author)2015-04-23

I would love to build a Nixie tube clock. The Nixie clock kits are VERY expensive IMHO. I'm not super familiar with Arduino platform - but I would assume that if the Mega can drive 8, it could easily drive 6 tubes for a clock. Maybe the spare outputs (8 pins?) for such a configuration could be used for an alarm or blinking colons between the digits or something.

author
Proto+G made it!(author)2015-04-23

The Arduino Mega2560 has 54 digital pins and 16 analog pins. Each Nixie tube with take up 4 pins so if you powered 8 tubes, you would have 22 digital pins left. Also, each of the 16 analog pins can be used as digital pins. The hardest part to me is containing all of the wires.

author
cts_casemod made it!(author)2016-02-11

Various options here:

Using multiplexing, 8 tubes would use 18 pins. Add a few more for decimal points and alike.

A
BCD to Decimal IC would only use 4 bits to display a number from 0 to 9
(including decimal point, if required) and another 4 bits to select up
to 16 tubes.

SPI would also be an option, that's how I drive 7
segments. An interrupt is required to refresh the display at 50Hz *
Number of tubes. So for 8 tubes 400Hz Refresh would be perfect. Its also
possible to cascade shift registers and have a static output, in this
case two would be required to drive each tube and no refresh would be
required.

High voltages can easily the dealt with the use of a high voltage optocoupler either alone or driving a Mosfet

author
DolboD made it!(author)2016-01-15

One more item on the list

7. Lots of cash. After taking a quick look on ebay jesus! Insane...

author
Cosmin-BogdanL made it!(author)2016-01-15

I have SN74142N ICs. I would like to use these, instead of the SN74141, but I don't know how to use them. I've read the datasheet, but I don't understand much (total electronics beginner). Does anybody know how to use them with arduino to drive nixies? Any help is appreciated. Thank you!

author
sigvmar made it!(author)2015-12-31

Dear Proto G,

I read the datasheet of SN74141 and saw that the maximum voltage on an output pin while off is 60V. However, I assume that the voltage across the nixie digits not in use should be 0V (or at least small) leaving near 180V at the output pin of SN74141. I am not very familiar with nixie tubes so I may be wrong about this. But if the output pin should not be higher than 60V than it will have to be at least 120V across the nixie, in which case I'd expect it should glow weakly? So I wonder, what is the output voltage on SN74141 while a digit is off? Have you measured it or does it just work by luck? I'm curious because I'm going to use nixie tubes for a project for the first time and using SN74141 seems like an easy way out, but I won't use it if it just works by luck. Anyway, great project :)

Thanks.

author
Proto+G made it!(author)2015-12-31

The nixie tube only has one anode while the rest are cathodes. When the SN74141 switches to the next digit, there is only voltage across that digit. 5V from the arduino is doing all of the work here. The 180V is only across the nixie tube, not any pins of the chip. The ground is shared by the arduino and the 180V power supply. Another thing to note is that the current flowing through the nixie tube is only at max brightness about 2.5 mA. Think of the nixie tube like a high load lamp in a circuit with other components. If you replace the lamp with a piece of wire, it would most likely blow the other components. In this case, if you actually look at the schematic for the chip, the only thing that could go wrong is the zener diode dumping the current to ground. Seeing that the max current flowing through the nixie tube is only 2.5mA, that zener diode is fine. These chips were meant to power nixie tubes and other cold cathode indicator tubes like the datasheet states. The whole point of the chip is to be able to switch a high voltage load with low power triggers.

author
ChrisM44 made it!(author)2015-06-17

I'm not sure where the ground of the 180V power source connects to?

author
Treker2 made it!(author)2015-07-18

I am having the same problem! can someone tell us where the ground goes to.

author
jcsut2 made it!(author)2015-08-27

All the grounds in this circuit are shared. The SN74141 determines which of the cathodes connects to ground to display the corresponding number.

author
IanS15 made it!(author)2015-06-07

Hi all,

I have put together a 6 digit Arduino based Nixie Clock and have published it as Open Source. The code is here:

https://github.com/isparkes/ArdunixNix6

I'm quite proud of it: It has all the features, and uses a minimum of components. The full scope of the software can be seen in the manual:

http://www.open-rate.com/Downloads/NixieClockV8InstructionManual.pdf

The manual has the full schematics in it, and if you are interested you can get a full kit or just the PCB.

Have fun!

author
mmehall made it!(author)2015-05-31

Thanks for this. I have the SN7141 on order. I think that there is an error in the code. For the 9 digit you have Pins 11 and 9 High, it should be Pins 11 and 8.

author
LoneGinger made it!(author)2015-04-23

For people looking for HV power supplies that are willing to use Ebay, there is also a very nice gentleman in Ukraine you can find on ebay that I have dealt with personally for a few items whom you can find by the name Yuriyshtepsel that builds nice power supplies for $10 + $5 shipping(not positive on the shipping) that provides dual output with the 180v needed for nixies and also 5v for leds if you so choose. Nice instructable btw.

author
rutierut made it!(author)2015-05-19

Just looked and he unfortunatly does not sell them anymore, any other suggestions?

author
LoneGinger made it!(author)2015-05-19

He just sold them out then, I looked the other day for something else he sells and he had 10 available. Would you like me to contact him to find out when he will building more? He is a hobbiest and this isnt his main income so he may be woring on some new stuff. If he is done I can get you a link to another gentleman that can help

author
rutierut made it!(author)2015-05-19

Thanks for your fast response.

I'll message him myself, i have found him on ebay and will ask if he wil be making some in the future, thanks anyway!

author
LoneGinger made it!(author)2015-05-22

He has 8 more available now. Also, I only suggested this gentleman because he is a personal friend and I can speak for his quality of work and the value in the price.

author
Proto+G made it!(author)2015-05-19

I had absolutely no issues with the two that I bought and linked to above. One is a kit that you need to solder and the other is complete.

author
Proto+G made it!(author)2015-04-23

Thank you!

author
kjsrocks made it!(author)2015-05-19

Great Instrucable!

author
cvagnini made it!(author)2015-04-28

I'm trying to understand why it's safe to use the 74141 this way. Its maximum voltage on outputs is 60V; aren't we at risk of frying them with 180V?

author
technodude458 made it!(author)2015-04-23

well this is just asking to be made into a steins;gate divergence meter

author
paul+dito made it!(author)2015-04-23

Nixie tube? You must be as old as I am!

author
diy_bloke made it!(author)2015-04-23

Interesting ibble
I have driven nixie tubes from an arduino as well, just to see if i could, but the need for a high voltage remains a hassle. (at least, that is what i thought)
Anybody wanting the charm of a digit tube, but not the hassle of High voltage can consider using a Numitron tube: cheap and easy to drive at 4.5 Volts, same way you would drive a fuly digital numeric display

author
lmperkins made it!(author)2015-04-21

Nice Instructable. I'd like to point out that your Figure 4 came from my Instructable (

https://www.instructables.com/id/Driving-two-Nixie-tubes-with-an-Arduino-via-a-shif/

) which covered much of the same material.

author
Proto+G made it!(author)2015-04-21

Thank you. I did not realize that. I saved it a while back from google images. I never ended up building that circuit because I used an Arduino Mega to control 8 Nixie tubes with I/O pins to spare. I will add a link to your instructable for people who want to use a shift register or I will remove it if you would like.

author
lmperkins made it!(author)2015-04-22

A link would be great. Thanks.

author
Yoruk made it!(author)2015-04-21

Is a 1/4 W 12k resistor ok, or should I use a bigger one ?

author
Proto+G made it!(author)2015-04-21

You should use a 1/2 W 12k resistor. It will work fine without the resistor, but it will dramatically reduce the lifespan of the tube.

author
Yoruk made it!(author)2015-04-21

Ok thanks !

author
justfred made it!(author)2015-04-20

180v is more than most Arduino users are used to dealing with; you might mention standard handle with extreme caution disclaimers.

author
Proto+G made it!(author)2015-04-20

You're right, I have added a short disclaimer.

About This Instructable

76,378views

494favorites

License:

Bio: Electromechanical Engineer, Product Designer, Maker. I love to make prototypes and teach others in the process. I graduated from UCF and spent two years working ... More »
More by Proto G:Levitating Platform1000W Portable Induction HeaterHow to Make a Metal Key With a 3D Printer
Add instructable to: