Skip to content

gordykeene/raspberry-pi-node-red-nixie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nixie Display Demo

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.

Required Equipment

Nixie Display

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).

Raspberry Pi

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.

Software Setup

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.

Setup Raspbian Jessie Lite

  1. 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.
  2. Write the image to an SD card. This process is well documented elsewhere, here are some examples for MAC and PC.

Setup Node-RED

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-start

If 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-start

Opening Node-RED

Once 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 uiPort

or

sudo nano /home/pi/.node-red/settings.js

Using nixie-display-demo in Node-RED

With 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.

Notes

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.

Version

1.0.0

Picture

Node-RED driving the display hardware

Tech

This project benefited from other projects:

  • Dillinger - Made with "Dillinger, the Last Markdown Editor ever."
  • Cathode Creations - original Python script for the Nixie Display.

About

Control a Nixie Display with a Raspberry Pi and Node-RED

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors