This Nixie Display Demo is a Node-RED Flow for the Raspberry Pi and Cathode Creations IN-8-2 Nixie board that demonstrates how to control the displays as well the LED illumination.
- Demonstrates how inject nodes can be used to update the entire display or to step individual digits in from the left.
- Provides an example of how to write to the LEDs.
- Also demonstrates how to blink the entire display or LEDs without changing the loaded values.
Each Cathode Creations IN-8-2 Nixie Raspberry Pi board display controls six single-digit nixie tubes. Unlike many similar looking products, this is not a clock, although it could certainly be used as one. Instead, it is a true arbitrary numeric display. Additionally, each tube can be individually illuminated. The $55 kit includes the PCB and the separate components. Users will have to provide their own a 12v 2A power supply and tubes (I found some on ebay delivered for about $10 each).
A Raspberry Pi is also required. I have used both an original Raspberry Pi Model B and a Raspberry Pi 2 Model B. Because of the simple hardware requirement, I anticipate that many other models will also work, as long as they at least offer the original 26 GPIO pins.
Additionally, all the normal Raspberry Pi accessories (SD card, 5Vdc supply) will be needed. I strongly encourage the use of a case, since the Nixie PC board will have high voltages present.
The ultimate goal for these instructions is to end up with a Raspberry Pi running Node-RED. The following outlines the process I used to setup the software for my display. There are many ways to accomplish this, and many users may already have a Raspberry Pi already setup and ready to go. For those who might not, or want a quick start guide, this should get you there.
- Download the latest Raspbian Jessie Lite. The non-lite version can be used as well, if you have the need to use a display. Personally, the thought of have to use a video cable on this doesn't really fit the Nixie aesthetic.
- Write the image to an SD card. This process is well documented elsewhere, here are some examples for MAC and PC.
The previous step shows how to open a terminal shell into the Raspberry Pi. Continuing in that shell, the following instructions will get Node-RED started.
Depending on the path that lead to this point, it is possible Node-RED is already installed. Running the following command is a simple way to find out:
node-red-stop && node-red-startIf a message indicating Start Node-RED appears, then Node-RED is already installed and the rest of this section can be skipped. However if a message indicating command not found appears, then Node-RED will have to be installed. The following instructions outline one way to accomplish that.
Instructions appropriate for a Raspberry Pi are found on the Node-RED Raspberry Pi getting started guide. In many cases, it just boils down to pasting this block of text in to a terminal window.
node-red-stop && \
sudo apt-get update && \
sudo apt-get install nodered && \
node-red-startOnce everything is assembled and Node-RED is running, you should be able to open it from a web browser. For a default installation, that will be http://<raspberry-pi-IP-address>:1880/. If that doesn't work, check that you have entered the correct IP address for the Raspberry PI. Also, inspect the setting.js file and locate the uiPort entry. Either of the following commands should help.
cat /home/pi/.node-red/settings.js | grep uiPortor
sudo nano /home/pi/.node-red/settings.jsWith Node-RED open and an empty Flow tab visible, select the hamburger button in the upper right to open the menu. From the menu, select Import > Clipboard. Open the nixie-display-demo.json file, then select and copy it's contents. Return to Node-RED, paste the text and select Ok. Once the new Flow appears under the mouse, move it towards the upper left corner and click once. Select Deploy.
Power on the Nixie display. In Node-RED, use any of the blue injectors on the left side to send the indicated payloads. Note that none displayable characters (such as a, z and _ in the example) will appear as turned off Nixie tubes.
Scroll down, and you will find a similar set of injectors for the LEDs.
Before saving the .json file, it was run through the excellent JSONLint tool. I have found doing so makes identifying changes from the repository significantly easier than raw Node-RED output.
1.0.0
This project benefited from other projects:
- Dillinger - Made with "Dillinger, the Last Markdown Editor ever."
- Cathode Creations - original Python script for the Nixie Display.
