Build a 4-tube nixie clock
Hours and minutes with a blinking colon, on our NTDB4 driver board and NCH6300HV high-voltage module, run by Omnixie X on an ESP32-S3 N16R8. Once the firmware is on, everything else is set up from your phone.

Overview
A 12 V adapter powers the NTDB4. The NTDB4 passes 12 V to the NCH6300HV and supplies 5 V to the ESP32; the ~170 V from the NCH6300HV comes back to the NTDB4 and lights the tubes through the anode resistors.
What the NTDB4 does
1Get the parts
Required
| Part | Qty | Notes |
|---|---|---|
| NTDB4 driver board kit | 1 | Board, panel-mount power switch and socket, 3 panel-mount buttons, 4 tube cables (11 wires) and 1 colon cable (3 wires). Omnixie X doesn't use the buttons yet — everything is set up in the browser. |
| NCH6300HV high-voltage module | 1 | 3.7–15 V in, 100–230 V out. Here it runs from 12 V and is set to the voltage your tubes need (170 V is typical). Its output is on only while SHDN is high, which the ESP32 controls. |
| ESP32-S3 N16R8 board | 1 | ESP32-S3-DevKitC-1 or compatible. It must be N16R8 (16 MB flash + 8 MB PSRAM) — the firmware is built for it. Boards with two USB-C ports are fine. |
| Nixie tubes | 4 | Any tube with 10 digit cathodes (0–9): IN-12, IN-14, IN-16, Z566M… See the tube's datasheet for its pin-out. |
| Anode resistors | 4 | Through-hole, soldered at R1–R4 (not fitted, so you can choose the value). R ≈ (HV − maintaining voltage) ÷ operating current — e.g. 170 V, 140 V maintaining, 1.5 mA → about 20 kΩ. ¼ W or more. Never run a tube without one. See the FAQ. |
| Colon resistors | 2 | Through-hole, soldered at R5 and R6 (not fitted). Without them the colon won't light. The schematic value is 100 kΩ, ¼ W. |
| Neon lamps for the colon | 2 | INS-1, NE-2 or other neon lamps, one for each dot. |
| 12 V adapter | 1 | 12 V DC, 1 A or more, 5.5 × 2.1 mm plug, centre positive. |
| Jumper wires, female–female | 8 | From the 8-pin header on the NTDB4 to the ESP32 board. 10–20 cm; shorter is more reliable. |
| Hook-up wire | 5 | Between the NTDB4 and NCH6300HV terminals (12 V, SHDN, GND, HV, GND). AWG 20–22. |
| USB-C data cable | 1 | For installing the firmware — a data cable, not charge-only. |
Optional
| Part | Adds | Notes |
|---|---|---|
| RTC module | Keeps time through power cuts | RX8900CE, DS3231SN, PCF8563 or DS1307. Without one the clock syncs the time online, so after a power cut it's right again once it's back on the network. |
| Light sensor (photoresistor) | Auto brightness | Without it, brightness is manual. Detected automatically at boot. |
| IR receiver | Remote control | A 3.3 V module such as VS1838B. |
| YX6100 voice module + speaker | Spoken time, alarm sounds | 5 V supply, serial connection to the ESP32. |
| RGB LED strip | Backlight | 5 V WS2812 / SK6812, 4–32 LEDs. |
| Status LEDs (red, green) | Network status and more | Each with a ~1 kΩ series resistor. |
| 74AHCT125 level shifter | Extra reliability | The ESP32 outputs 3.3 V and the 74HC595s run at 5 V. Usually fine; if digits occasionally glitch, see the FAQ. |
Tools
- Soldering iron and solder — for the resistors and the tube and lamp pins.
- Multimeter — to set the high voltage and check for shorts.
- Small flat screwdriver — to press the push-in terminals.
- A Windows, Mac, Linux or ChromeOS computer with Chrome or Edge — to install the firmware.
2Solder and wire
- 12 V power: plug into the DC socket on the NTDB4; the slide switch on the board is the main switch. You can also mount the kit's panel socket and switch on your enclosure and wire them to the matching pads.
- NTDB4 ↔ NCH6300HV: the terminals match colour for colour — connect same colour to same colour.
- NTDB4 ↔ ESP32: the 8-pin header at the right end of the board goes to the ESP32, and the NTDB4 also powers the ESP32 with 5 V.
- Tube cables: one 11-wire cable per tube into Tube1–Tube4; solder the other end to the tube pins.
- Colon cable: the 3-wire cable into the Colon socket; solder the two neon lamps to the other end.
- Resistors R1–R6: R1–R4 (left of each Tube socket) are the tubes' anode resistors; R5 and R6 (left of the Colon socket) are the colon lamps' resistors. None are fitted — you solder them yourself.
High-voltage module: NTDB4 ↔ NCH6300HV
On the left of the NTDB4 are two push-in terminal blocks: the upper 2-way HV 170V / GND is the high-voltage input; the lower 3-way GND / SHDN / 12V powers the module. The NCH6300HV uses the same colours:
| NTDB4 terminal | NCH6300HV terminal | Function |
|---|---|---|
| 3-way · GND | Input · GND | Ground |
| 3-way · SHDN | Input · SHDN | HV switch: ESP32 GPIO1 via header pin ON/OFF; high turns the HV on |
| 3-way · 12V | Input · VIN | 12 V supply |
| 2-way · HV 170V | Output · HV | High voltage (about 170 V) |
| 2-way · GND | Output · GND | HV ground |
- Connecting: press the square release with a small screwdriver, push the stripped wire into the round hole, release.
- Set the HV first: leave the tube cables unplugged the first time. With power on, measure between HV 170V and GND on the NTDB4 and turn the NCH6300HV's trimmer to the voltage your tubes need (counter-clockwise raises it; 170 V is typical). There's high voltage only after Omnixie X is installed and has switched it on.
ESP32 board: NTDB4 ↔ ESP32-S3
Connect the 8-pin header at the right end of the NTDB4 (labelled on the back) to the ESP32 with 8 female–female jumper wires. These are the firmware defaults, so with this wiring there's almost nothing to change:
| NTDB4 header | ESP32 pin | Function | In "DIY Hardware" |
|---|---|---|---|
| GND | G (any GND) | Ground | — |
| DC5V | 5V | NTDB4 powers the ESP32 (on-board regulator, up to 3 A) | — |
| DATA | GPIO10 | 595 data | DATA (DS) |
| OE | GPIO9 | 595 output enable; PWM sets brightness | OE (brightness) |
| STCP | GPIO11 | 595 latch | LATCH (STCP) |
| SHCP | GPIO12 | 595 clock | CLOCK (SHCP) |
| COLON | GPIO14 | Colon (active high) | Colon IO |
| ON/OFF | GPIO1 | HV switch, to SHDN on the NCH6300HV | HV switch |
- Power: the ESP32 runs from the NTDB4's DC5V — no USB needed. Plugging in USB at the same time is fine (the board has diodes between USB and 5V; don't bridge the "IN-OUT" pad).
- Other pins: you can use other GPIOs and set them in "DIY Hardware" on the clock's web page, which checks for conflicts.
- Logic levels: 3.3 V from the ESP32 into 5 V 74HC595s normally works; keep the jumper wires short.
Nixie tubes
Along the bottom edge, left to right: Tube1, Tube2, Colon, Tube3, Tube4 — hour tens, hour ones, colon, minute tens, minute ones. Their anode resistors are R1–R4. If hours and minutes come out mirrored (12:34 shows as 43:21), don't rewire: change "595 chain direction" in "DIY Hardware".
Each tube cable has 11 wires: 1 anode (red) + 10 cathodes (digits 0–9). The digit for each socket position is printed on the back of the board; seen from the front it's mirrored:
(The back reads 5 4 3 2 1 · blank / 0 9 8 7 6 A.)
- Suggested: follow the silkscreen — each cathode wire to the matching digit cathode, the red wire to the anode.
- Mixed up the order? No problem: Omnixie X's pin mapping lights each position in turn and you pick the digit you see. If all 4 tubes are wired alike, one setup fixes them all.
- The silkscreen order is only a suggestion. You can wire the cathodes in any order — just use the same order on all 4 tube cables. Wired as per the silkscreen, the pin mapping is Pin0–Pin9 = 7 6 1 8 3 2 5 4 0 9.
Colon
The colon socket has 3 pins (1.25 mm pitch). Each neon lamp needs a resistor at R5 and R6, left of the Colon socket — without them the colon won't light (100 kΩ in the schematic).
| Socket pin | Connect to | On the board |
|---|---|---|
| 1 | One electrode of the upper lamp | To HV through R5 |
| 2 | One electrode of the lower lamp | To HV through R6 |
| 3 | The other electrodes of both lamps, joined | A42 transistor, controlled by COLON |
Connect by socket pin, not wire colour. NE-2 lamps aren't polarised; for INS-1 the glowing cathode goes to pin 3. Both dots light together, and their brightness follows the tubes.
Optional modules
Default pins below. Take 5 V from the DC 5V header on the NTDB4 (2 × 6: one row 5 V, one row GND) and 3.3 V from the ESP32's 3V3 pin. Set anything you don't fit to "Not connected" in "DIY Hardware".
| Module | Supply | Signal → ESP32 | Notes |
|---|---|---|---|
| RTC module | 3V3 (DS1307: 5V) | SDA→GPIO6 · SCL→GPIO7 · 1Hz→GPIO15 | Choose the chip and backup power type on the web page. A 5 V DS1307 needs its I2C pull-ups to 3V3. |
| Light sensor | 3V3 | ADC→GPIO2 | Photoresistor 3V3–GPIO2, plus 100 kΩ GPIO2–GND. Only GPIO1–10 work. |
| IR receiver | 3V3 | OUT→GPIO13 | |
| YX6100 voice | 5V | GPIO41→RX · GPIO42←TX | Speaker on the module's SPK. |
| RGB LED strip | 5V | DIN→GPIO18 | Set the LED count (4–32) on the web page. |
| Status LEDs | — | Red→GPIO16 · Green→GPIO17 | Each with a series resistor to GND. |
Before you power on
- The 12 V adapter is centre positive, and VIN/GND on the NCH6300HV aren't swapped (it has no reverse-polarity protection).
- The HV wire doesn't touch other wires or a metal enclosure.
- The ESP32's 5V pin goes to DC5V and GND to GND — not to 3V3.
- Leave the tube cables unplugged for the first power-up; plug them in (power off) after installing the firmware and setting the HV.
3Install Omnixie X
No tools to download: Omnixie X installs straight from your browser.
- On a Windows, Mac, Linux or ChromeOS computer, open omnixie.cn/omnixie-x/install in Chrome or Edge (Safari, Firefox and phones can't talk to USB devices).
- Connect the ESP32 board with a USB-C data cable. Board has two USB ports? Use the one marked USB, not UART — it needs no driver on any computer.
- Click Install and pick the board's port. The installer checks the board first — it must be an ESP32-S3 with 16 MB flash (N16R8). If it asks, choose Fresh install the first time. It takes about a minute; keep the tab open. The board restarts by itself when it's done.
First light
- With the tube cables still unplugged, power on. Omnixie X switches the high voltage on.
- Measure between HV 170V and GND on the NTDB4 and set the NCH6300HV's trimmer to the voltage your tubes need (see Wiring).
- Switch off, wait a minute, plug in the tube and colon cables, and switch on again.
Later updates
Once the clock is on Wi-Fi, update it from "Advanced → Firmware Update" on its web page — no USB. Over USB, choose Update on the install page: it keeps Wi-Fi, settings and your license.
Boot log (optional)
Open the port marked UART at 115200 in a serial terminal to see boot messages — RTC found, light sensor, Wi-Fi. Sending it to us makes troubleshooting much faster.
4Set up
Connect to Wi-Fi
- Plug in the 12 V adapter and switch on. The board opens a Wi-Fi hotspot called Omnixie_X_ plus 6 characters of its serial number, with no password.
- Join it from your phone; the setup page should pop up. If not, open http://192.168.4.1.
- Pick your home Wi-Fi (2.4 GHz only) and enter its password. The clock joins your network.
- The wizard then asks for a name, time zone and display effects, and shows the clock's address, e.g. http://omnixie.local — use it (or the IP from your router) from now on.
- Set the time. With a license, the clock syncs with network time (NTP) by itself. Without one, open "Time Sync" and tap "Use Phone Time" to set it from your phone.
License
Free, without a license: system info, network settings, setting the time from your phone, nixie display effects, DIY hardware, Nixie Tube Settings and online updates. Alarms and chimes can be tried (ringtones preview, but can't be saved).
Needs a license: network time sync (NTP), display formats (12/24-hour, date), LED effects, scheduled on/off and smart home (Home Assistant, Apple Home). Paste your 128-character code on the "Device License" page — spaces, line breaks and dashes are fine.
DIY Hardware
Open "Advanced → DIY Hardware". The system diagram at the top updates live as you change settings. For the NTDB4 (Change = different from the default):
| Card | Item | Set to |
|---|---|---|
| 74HC595 & Nixie Tubes | DATA · LATCH · CLOCK · OE | GPIO10 · GPIO11 · GPIO12 · GPIO9 |
| 595 chain direction | 1st chip drives the leftmost tube | |
| Colons | Colon connection | GPIO Change |
| Colon IO · Active level | GPIO14 · Active high | |
| HV switch | HV switch · Enable level | GPIO1 · Active high |
| RTC Module | RTC chip | As fitted, or "No RTC module" If needed |
| Light Sensor | Light sensor | Auto detect |
| Other peripherals | Pins | As wired; "Not connected" for anything not fitted If needed |
- Colon connection must be "GPIO": the NTDB4's colon has its own pin, not a bit on the 595 chain.
- Click "Save & Restart"; when the button turns red, click it again to confirm.
- Hours and minutes mirrored? Set "595 chain direction" to "1st chip drives the rightmost tube" and save.
Nixie Tube Settings
- Set Number of tubes to 4. The DIY kit firmware defaults to 6 — this must be changed.
- Set Model to "Customized" and do the Pin mapping: the page lights Pin0–Pin9 one by one and you pick the digit you see — 10 steps. It saves only when all 10 are assigned with no duplicates.
- If you followed the suggested silkscreen order, the result is as below. Any other order is fine too, as long as all 4 tubes are wired alike — just pick the digits you see.
| Pin | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| Digit | 7 | 6 | 1 | 8 | 3 | 2 | 5 | 4 | 0 | 9 |
If one tube shows different digits from the others, it's wired differently — re-solder it to match.
Display and everything else
- Display: brightness, digit transition (Instant / Fade / Crossfade / Flip) and colon effect (Breathe / Blink / On / Off), with a live preview. 12/24-hour and date formats need a license.
- Time Sync: time zone and NTP server, or "Use Phone Time". Without an RTC, the clock needs the time again after every power cut — from the network with a license, or from your phone.
- Cathode poisoning prevention (Nixie Tube Settings): keep it on — it cycles every digit to extend tube life.
- Alarms, chime, scheduled on/off: as you like. Spoken time needs the voice module.
Check your settings
The "DIY Hardware" card at the bottom of the "System" page lists the tube count, pin mapping, 595 pins, colon wiring, RTC and other IOs in use.
Factory reset
"Advanced → Factory Reset" restores display, alarm, chime and schedule settings. Wi-Fi, license, DIY hardware, tube count and pin mapping are kept. To wipe everything, use Fresh install on the install page.
5FAQ
The tubes don't light at all
- Measure between HV 170V and GND on the NTDB4: you should see the voltage you set.
- No HV: check the NCH6300HV has 12 V on VIN, its SHDN goes to the NTDB4's SHDN terminal, ESP32 GPIO1 goes to header pin ON/OFF, and "DIY Hardware → HV switch" is GPIO1, Active high.
- HV but no light: check R1–R4 are soldered, the red wire is on the tube's anode, and the clock isn't in its scheduled-off period.
Wrong digits, or only some digits light
In "Nixie Tube Settings", choose "Customized" and redo the pin mapping, picking the digit you see for each position. (With the suggested silkscreen order: Pin0–Pin9 = 7 6 1 8 3 2 5 4 0 9.) If only one tube is wrong, it's wired in a different order from the others — re-solder it to match. A digit that never lights: check that cathode's solder joint.
Hours and minutes are mirrored
Switch "595 chain direction" in "DIY Hardware" and Save & Restart — or re-plug Tube1–Tube4 as hour tens, hour ones, minute tens, minute ones.
The digits are in the wrong places
Make sure "Nixie Tube Settings → Number of tubes" is 4 (the default is 6). With 6 or 8 the firmware sends data for 6 or 8 tubes and your 4 show only part of it.
The colon doesn't light or blink
- "DIY Hardware → Colons" must be GPIO, Colon IO GPIO14, Active high.
- R5 and R6 must be soldered — the colon won't light without them.
- ESP32 GPIO14 goes to header pin COLON.
- Lamps: pins 1 and 2 to one lamp each, pin 3 to the other ends of both. For INS-1 the glowing cathode goes to pin 3.
- The colon effect is chosen on the "Display" page.
Occasional garbled digits or glitches
The ESP32's 3.3 V is at the edge of what a 5 V 74HC595 reads as high. Most setups are fine; if yours isn't:
- Use short jumper wires (about 10 cm), keep them away from the HV wire, and make sure GND is connected.
- Add a 74AHCT125 on DATA, OE, STCP and SHCP, powered from 5 V on the NTDB4's DC 5V header with its OE pins to GND: ESP32 lines to its inputs, its outputs to the NTDB4 header.
Brightness doesn't change
Brightness works through the 595 OE pin: check GPIO9 goes to header pin OE and OE is GPIO9 in "DIY Hardware". Without a light sensor, brightness is manual only.
Can't find the hotspot or open the web page
- If the clock can't join its saved Wi-Fi, it opens the Omnixie_X_xxxxxx hotspot again.
- On the hotspot, open http://192.168.4.1. If your phone says the network has no internet, choose to stay connected.
- Once online, use the address the wizard showed (e.g. http://omnixie.local) or the IP from your router. Some Android phones don't support .local — use the IP.
The time is wrong, or wrong after a power cut
- Check the time zone in "Time Sync".
- Without a license the clock doesn't sync with network time: set it with "Time Sync → Use Phone Time".
- Without an RTC module the clock forgets the time when power is lost. With a license it syncs again once it's back online; without one, use "Use Phone Time" again. To keep time through power cuts, add an RTC and select its chip in "DIY Hardware".
Which resistor values should I use?
Take the maintaining voltage and operating current from your tube's datasheet: R ≈ (HV − maintaining voltage) ÷ operating current. For example 170 V, 140 V maintaining and 1.5 mA gives about 20 kΩ. If you're unsure, start with a higher value — the tube runs a little dimmer but gentler — and never run a tube without a resistor. For the colon lamps, 100 kΩ (the schematic value) suits most neon lamps.
Can I use a different ESP32 board?
It must be an ESP32-S3 with 16 MB flash and 8 MB PSRAM (N16R8), such as the ESP32-S3-DevKitC-1 N16R8. Omnixie X is built for it, and the installer checks the board before it writes anything — other ESP32-S3 variants (N8R2, N8R8…) and older ESP32 chips aren't supported.
Can I use the NCH8200HV instead of the NCH6300HV?
Yes, for small tubes such as IN-12, IN-14 or IN-16. It has 0.1" pins rather than terminals: wire its VIN to the NTDB4's 12V terminal, VOUT to HV 170V, and GND to GND. Its output is fixed at 170 V, and it has no enable pin, so the high voltage is on whenever the clock is powered — the clock can't switch it off. For IN-18 or more tubes, use the NCH6300HV.
How do I get a license, or recover a lost one?
A license costs $9.90 and works on one clock: enter the clock's serial number at checkout and we email the code within 30 minutes. If you bought your NTDB4, NCH6300HV or NCH8200HV from our store, it's $0.99 — we email you a personal link after your order. Lost your code? Recover it here.
What are the three buttons for?
Nothing yet — Omnixie X is set up from your phone or computer, and you can add an IR receiver for a remote. You can still mount the buttons in your enclosure for future use.
Can I build a 6- or 8-tube clock?
Yes, with two NTDB4 boards in series: the first board's DOUT goes to the second board's DATA, and OE, STCP and SHCP are connected in parallel. Tube1 on the second board is the 5th tube. Then set the number of tubes to 6 or 8. With 6 tubes the clock shows hours : minutes : seconds.
Still stuck?
Send us these and we'll help you get it glowing:
- a screenshot of the "System" page, including the "DIY Hardware" card;
- a screenshot of the diagram at the top of "DIY Hardware";
- photos of your wiring;
- if you can, the boot log from the UART port (115200).