NTDB4 driver board
Four-tube nixie driver board for your own ESP32-S3, made to run Omnixie X.

Overview #
NTDB4 is a four-tube nixie driver board. It carries the part of a nixie clock that takes the most soldering: five 74HC595 shift registers in a chain driving forty A42 high-voltage transistors, one transistor for each digit of each tube. It also drives the colon and makes 5 V for the controller from a 12 V input.
Add a high-voltage module (our NCH6300HV's terminals match colour for colour), an ESP32-S3 N16R8 board, four tubes and six resistors, and you have a complete clock. Run it with our Omnixie X firmware on an ESP32-S3, or with an Arduino and our open-source library (see Using it with Arduino). The inputs are plain 74HC595 signals, so any other microcontroller can drive it too.
| Tubes | 4, any tube with 10 digit cathodes (IN-12, IN-14, IN-16, IN-18, Z566M…) |
| Driver | 5 × 74HC595 in one chain (40 outputs), 40 × A42 high-voltage transistors |
| Colon | Two neon lamps on their own control pin, through a 41st A42 |
| Power in | 12 V DC, 5.5 × 2.1 mm socket, slide switch on the board |
| On-board supply | 5 V buck regulator for the logic, the controller board and add-on modules |
| High voltage | From an external module, through push-in terminals that match the NCH6300HV colour for colour |
| Controller connection | 8 pins: DATA, OE, STCP, SHCP, COLON, ON/OFF, 5 V, GND |
| Size | 140 × 30 mm, 13.5 mm tall from the underside of the board to the top of the push-in terminals (the tallest part); solder pins stick out below |
In the box
- 1 × NTDB4 driver board
- 1 × panel-mount power switch
- 1 × panel-mount power socket, with split washer and nut
- 3 × panel-mount push buttons
- 4 × tube cables, 11 wires each (red = anode, blue = cathodes)
- 1 × colon cable, 3 wires
The pin headers come in the box but are not soldered: solder them to the 8-pin header (and to DC 5V or DOUT if you use them) before wiring. You don't need to buy anything extra.
The board already has its own power socket and switch. The panel-mount parts are there so you can put them on the outside of your enclosure. Omnixie X does not use the three buttons yet; everything is set up in a browser.
What you still need
- A nixie high-voltage module: NCH6300HV, or another module of your choice
- An ESP32-S3 N16R8 board (ESP32-S3-DevKitC-1 or compatible) if you use Omnixie X
- 4 nixie tubes, and 2 neon lamps for the colon (INS-1, NE-2 or similar)
- 6 through-hole resistors: 4 anode resistors (R1–R4) and 2 colon resistors (R5, R6). None are fitted, so you can choose the values for your tubes.
- A 12 V DC adapter, 1 A or more, 5.5 × 2.1 mm plug, centre positive
The NTDB4 ships without printed documents. The board layout is on our Downloads page, and the build guide takes you from parts to a working clock.
Schematic #
The full circuit of the NTDB4 v1.0 on one sheet.

Reading the schematic
- Shift registers. U1–U5 are 74HC595s. DATA from the controller enters U5; each chip's Q7' output feeds the next chip's data input, and the last one comes out on the DOUT header. STCP, SHCP and OE are shared by all five chips. The 74HC595s run from the on-board 5 V (VCC).
- Cathode drivers. Q1–Q40 are A42 transistors. Each base (B1–B40) is fed from one 74HC595 output through an 18 kΩ resistor network (RP1–RP10). Each collector pulls one tube cathode to ground. Q1–Q10 serve Tube1, Q11–Q20 Tube2, Q21–Q30 Tube3 and Q31–Q40 Tube4.
- Anodes. The high voltage (VH) reaches each tube's anode through R1–R4. The schematic shows 18 kΩ as a reference value. On the board these four are left unfitted so you can choose the value for your tubes.
- Colon. Two neon lamps light through R5 and R6 (100 kΩ) from VH. Their common return goes through Q41, an A42 switched by the COLON pin through R7 (10 kΩ).
- Power. The 12 V input passes the slide switch and an 800 mA PTC fuse; an SMBJ15A TVS diode clamps surges on the 12 V rail. Pads SW1, SW2 and 12Vin let you wire the panel-mount switch and socket instead. A TPS54302 buck regulator makes the 5 V VCC. The 12 V is also passed on to the high-voltage module, together with the ON/OFF signal for its enable pin.
Board layout #
The board layout shows where every part sits, as seen from the component side.

The same file is on our Downloads page. From left to right:
- Left end: two push-in terminal blocks. The upper 2-way block is the high-voltage input (HV 170V, GND). The lower 3-way block feeds the high-voltage module (GND, SHDN, 12V). Next to them are the 12 V DC socket and the slide power switch.
- Centre-left: the 5 V regulator, the input capacitors and the 2 × 6 DC 5V header (one row 5 V, one row GND) for add-on modules, with the 4-pin DOUT header beside it.
- Top edge: the five 74HC595s, with the A42 transistors in rows below them.
- Bottom edge: the tube and colon sockets, left to right: Tube1, Tube2, Colon, Tube3, Tube4. The resistor positions R1–R4 are to the left of each Tube socket; R5 and R6 are to the left of the Colon socket.
- Right end: the 8-pin header to the controller. Its pin names are printed on the back of the board.
Dimensions
The board is 140 × 30 mm. Measured from the underside of the board, the push-in terminals reach 13.5 mm and the tube and colon sockets 5.2 mm; the solder pins of the through-hole parts stick out below the board.

Pin-out #
Controller header (8 pins, right end)
Pin numbers follow the schematic. The last two columns are the Omnixie X defaults, so with this wiring there is almost nothing to change in the firmware.
| Pin | Name | Function | ESP32-S3 pin | In “DIY Hardware” |
|---|---|---|---|---|
| 1 | ON/OFF | High-voltage enable, passed to SHDN on the 3-way terminal. High = HV on. | GPIO1 | HV switch |
| 2 | COLON | Colon lamps, active high | GPIO14 | Colon IO |
| 3 | SHCP | 74HC595 shift clock | GPIO12 | CLOCK (SHCP) |
| 4 | STCP | 74HC595 latch | GPIO11 | LATCH (STCP) |
| 5 | OE | 74HC595 output enable, active low. PWM on this pin sets tube brightness. | GPIO9 | OE (brightness) |
| 6 | DATA | 74HC595 serial data in | GPIO10 | DATA (DS) |
| 7 | DC5V | 5 V out from the board, to power the controller | 5V | — |
| 8 | GND | Ground | GND | — |
Power and high-voltage terminals (left end)
| Block | Terminal | Function |
|---|---|---|
| 2-way (upper) | HV 170V | High-voltage input from the module |
| 2-way (upper) | GND | High-voltage ground |
| 3-way (lower) | 12V | 12 V out to the module's VIN |
| 3-way (lower) | SHDN | Enable signal to the module (the ON/OFF pin of the controller header) |
| 3-way (lower) | GND | Ground to the module |
To connect a wire, press the square release with a small flat screwdriver, push the stripped wire into the round hole and let go.
Other connectors
| Connector | Type | Pins |
|---|---|---|
| DC 12V | 5.5 × 2.1 mm socket | Centre positive |
| DC 5V | 2 × 6, 2.54 mm | One row 5 V, one row GND, for add-on modules |
| DOUT | 4-pin header | 1 DOUT (data out of the last 74HC595), 2 OE, 3 STCP, 4 SHCP. Used to chain a second board. |
| Tube1–Tube4 | DF13, 2 × 6 | 1 anode, 10 cathodes, 1 unused. See Tube digit mapping. |
| Colon | 3-pin, 1.25 mm pitch | See Colon lamps. |
Tube digit mapping #
Each tube uses ten consecutive outputs of the 74HC595 chain, one per cathode. Tube1, the leftmost, uses outputs 1–10 (transistors Q1–Q10), Tube2 uses 11–20, Tube3 21–30 and Tube4 31–40. In Omnixie X the ten outputs of a tube are called Pin0–Pin9.
Socket silkscreen
Next to each Tube socket, the back of the board shows which tube cathode to connect at each position. Seen from the front, the order is mirrored:
| View | Upper row | Lower row |
|---|---|---|
| Back of the board (silkscreen) | 5 4 3 2 1 – | 0 9 8 7 6 A |
| Front of the board | – 1 2 3 4 5 | A 6 7 8 9 0 |
A is the anode (the red wire of the tube cable); the position marked – is unused. Every number is the tube cathode to solder to that wire.
Pin map for the firmware
Wire all four tubes as printed on the silkscreen and each output lights this digit:
| Pin (output within the tube) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| Digit | 7 | 6 | 1 | 8 | 3 | 2 | 5 | 4 | 0 | 9 |
| Socket pin (schematic) | 10 | 11 | 5 | 9 | 3 | 4 | 1 | 2 | 7 | 8 |
Socket pin 12 is the anode and pin 6 is unused. Read from Pin9 down to Pin0, the same map is 9045238167.
Setting it in Omnixie X
- Open Advanced → Nixie Tube Settings and set Number of tubes to 4. The DIY firmware defaults to 6.
- Set Model to “Customized”. The other models are for Omnixie boards with built-in tube sockets.
- Run Pin mapping: the page lights Pin0 to Pin9 one at a time, and you pick the digit you see. It saves only when all ten are assigned with no duplicates.
If the hours and minutes come out mirrored (12:34 shows as 43:21), change 595 chain direction in Advanced → DIY Hardware instead of rewiring. For the NTDB4 the correct setting is “1st chip drives the leftmost tube”.
Wiring #
A complete clock has five sets of connections: 12 V power, the high-voltage module, the controller, the four tubes and the colon.
The 12 V adapter powers the NTDB4. The NTDB4 passes 12 V on to the NCH6300HV and supplies 5 V to the ESP32. The roughly 170 V from the NCH6300HV comes back to the NTDB4 and lights the tubes through the anode resistors.
NTDB4 to NCH6300HV
| NTDB4 terminal | NCH6300HV terminal | Function |
|---|---|---|
| 3-way · GND | Input · GND | Ground |
| 3-way · SHDN | Input · SHDN | HV enable from the controller's ON/OFF pin; high = on |
| 3-way · 12V | Input · VIN | 12 V supply |
| 2-way · HV 170V | Output · HV | High voltage |
| 2-way · GND | Output · GND | High-voltage ground |
The terminals on both boards use the same colours: connect same colour to same colour. Use AWG 20–22 hook-up wire.
NTDB4 to ESP32-S3
Connect the 8-pin header to the ESP32 board with eight female–female jumper wires, 10–20 cm long. The pin-by-pin table is under Pin-out. The ESP32 board runs from the NTDB4's 5 V, so it needs no USB power. Plugging in USB at the same time, for installing firmware or reading logs, is fine on boards with a diode between USB and 5 V (DevKitC-1 style; leave the “IN-OUT” pad open). If unsure, switch the 12 V off while the USB cable is in.
Tubes
Plug one 11-wire cable into each Tube socket and solder the other end to the tube: the red wire to the anode, the ten blue wires to the cathodes. Check your tube's datasheet for its pin-out. With the Omnixie X defaults, Tube1 shows the hour tens and Tube4 the minute ones.
Resistors
Solder an anode resistor at each of R1–R4 and a colon resistor at R5 and R6. Never run a tube without its anode resistor. A starting point for the anode value:
R ≈ (HV − maintaining voltage) ÷ operating current
e.g. (170 V − 140 V) ÷ 1.5 mA ≈ 20 kΩ, ¼ W or more
Take the maintaining voltage and current from your tube's datasheet. If unsure, start higher: the tube runs a little dimmer but gentler.
Set the high voltage first
- Leave the tube cables unplugged. Power on; Omnixie X switches the high voltage on once it is installed.
- Measure between HV 170V and GND on the NTDB4 and turn the NCH6300HV trimmer to the voltage your tubes need (counter-clockwise raises it; 170 V is typical).
- Switch off, wait one minute, plug in the tube and colon cables and switch on again.
Before you power on
- The 12 V adapter is centre positive, and VIN and GND on the NCH6300HV are not swapped. The module has no reverse-polarity protection.
- The HV wire does not touch other wires or a metal enclosure.
- The ESP32's 5V pin goes to DC5V and GND to GND, not to 3V3.
Optional modules (Omnixie X defaults)
Take 5 V from the DC 5V header on the NTDB4 and 3.3 V from the ESP32's 3V3 pin.
| Module | Supply | Signal → ESP32 |
|---|---|---|
| RTC module | 3V3 (DS1307: 5 V) | SDA → GPIO6, SCL → GPIO7, 1 Hz → GPIO15 |
| Light sensor | 3V3 | Photoresistor 3V3–GPIO2, plus 100 kΩ GPIO2–GND |
| IR receiver | 3V3 | OUT → GPIO13 |
| YX6100 voice module | 5 V | GPIO41 → module RX, GPIO42 ← module TX |
| RGB LED strip (4–32 LEDs) | 5 V | DIN → GPIO18 |
| Status LEDs | — | Red → GPIO16, green → GPIO17, each with a series resistor to GND |
The full step-by-step build, including installing and setting up the firmware, is in the build guide.
Colon lamps #
The colon is two neon lamps, one for the upper dot and one for the lower dot. Both are switched together by the COLON pin through transistor Q41, so they always light together.
| Colon socket pin | Connect to | On the board |
|---|---|---|
| 1 | One electrode of the upper lamp | To high voltage through R5 |
| 2 | One electrode of the lower lamp | To high voltage through R6 |
| 3 | The other electrodes of both lamps, joined | To Q41 (A42), switched by COLON |
The socket has a 1.25 mm pitch. Connect by socket pin, not by wire colour.
Current-limiting resistors
R5 and R6, to the left of the Colon socket, are not fitted. Solder them like R1–R4; without them the colon will not light. The schematic value, 100 kΩ ¼ W, gives about 1 mA at 170 V, which is bright. For lamps rated around 0.5 mA (many NE-2 and INS-1 types), 150–220 kΩ is gentler. Check your lamp's datasheet.
Lamp polarity
NE-2 type lamps are not polarised. For polarised lamps such as INS-1, the glowing cathode goes to pin 3.
Firmware settings
In Omnixie X, open Advanced → DIY Hardware → Colons and set the colon connection to GPIO, Colon IO to GPIO14, active high. The default, “On the 595 chain”, is for a different circuit and does not work with the NTDB4. The colon effect (Breathe, Blink, On, Off) is chosen on the Display page, and the colon brightness follows the tubes.
FAQ #
The tubes don't light at all
Measure between HV 170V and GND on the NTDB4. You should see the voltage you set.
- No high voltage: check that the NCH6300HV has 12 V on VIN, that its SHDN goes to the SHDN terminal of the NTDB4, that ESP32 GPIO1 goes to header pin ON/OFF, and that DIY Hardware → HV switch is GPIO1, active high.
- High voltage but no light: check that R1–R4 are soldered, that the red wire is on the tube's anode, and that the clock is not in a scheduled-off period.
Wrong digits, or some digits never light
Redo the pin mapping in Nixie Tube Settings with Model “Customized”. If only one tube is wrong, it is wired in a different order from the others: re-solder it to match. A single digit that never lights usually means a bad solder joint on that cathode.
Hours and minutes are mirrored
Switch 595 chain direction in DIY Hardware and save. Or re-plug the cables so Tube1–Tube4 are hour tens, hour ones, minute tens, minute ones.
The digits are in the wrong places
Set Number of tubes to 4. With the default of 6, the firmware sends data for six tubes and your four show only part of it.
The colon doesn't light
Check that R5 and R6 are soldered, that the colon connection is set to GPIO14 (not the 595 chain), and that ESP32 GPIO14 goes to header pin COLON. See Colon lamps.
Occasional garbled digits or glitches
The ESP32's 3.3 V signals are below the level a 74HC595 at 5 V is guaranteed to read as high. Most builds still work. If yours is not:
- Use short jumper wires (about 10 cm), keep them away from the HV wire, and make sure GND is connected.
- Add a 74AHCT125 level shifter on DATA, OE, STCP and SHCP, powered from the DC 5V header, with its OE pins to GND. The ESP32 lines go to its inputs and its outputs go to the NTDB4 header.
Brightness doesn't change
Brightness works through the 74HC595 OE pin. Check that GPIO9 goes to header pin OE and that OE is set to GPIO9 in DIY Hardware. Without a light sensor, brightness is manual only.
Can I use the NCH8200HV instead of the NCH6300HV?
Yes, for small tubes such as IN-12, IN-14 or IN-16. 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. For IN-18 tubes, use the NCH6300HV.
Can I build a 6- or 8-tube clock?
Yes, with two NTDB4 boards in a chain. Connect the first board's DOUT to the second board's DATA, connect OE, STCP and SHCP in parallel, and join the two boards' GND. Both boards need 12 V and the high voltage: wire the HV module's output to the HV 170V and GND terminals of both boards. Connect COLON in parallel too, so both colons follow GPIO14. Tube1 on the second board becomes the fifth tube. Set Number of tubes to 6 or 8. Six tubes show hours, minutes and seconds; eight add hundredths of a second.
What are the three buttons for?
Nothing in Omnixie X yet. Everything is set up from your phone or computer, and you can add an IR receiver for a remote. You can still mount the buttons on your enclosure for later use.
Still stuck?
Email support@omnixie.cn with a screenshot of the clock's System page (including the DIY Hardware card), a screenshot of the diagram at the top of DIY Hardware, photos of your wiring and, if you can, the boot log from the board's UART port at 115200 baud.
Using it with Arduino #
The NTDB4 is a standard 74HC595 chain, so you can drive it from an Arduino or any other microcontroller instead of Omnixie X. Uses go beyond clocks: counters, temperatures, scores, anything with four digits.
We publish an Arduino library for the board on GitHub: omnixie-electronics/Nixie-Tube-Driver-Board-Arduino-Library. It includes two examples: a basic four-tube display and a full clock with three buttons and the colon. Chained boards still use only four data pins.
Example wiring to an Arduino Uno
| NTDB4 header | Arduino Uno pin | Notes |
|---|---|---|
| GND | GND | |
| DATA | 11 | |
| OE | 10 | PWM pin, for brightness |
| STCP | 8 | |
| SHCP | 12 | |
| COLON | 5 | |
| ON/OFF | 6 | High-voltage enable |
Power the NTDB4 from 12 V as usual. The Uno's 5 V logic matches the 74HC595s directly.
Writing your own code
- Shift out 40 bits per frame (80 for two boards), then pulse STCP to latch them. A 1 turns on that cathode's transistor.
- Light exactly one cathode per tube. Use the tube digit mapping to find which bit gives which digit.
- OE is active low: hold it low for full brightness, or drive it with PWM to dim.
- Set ON/OFF high to switch on an NCH6300HV, and COLON high to light the colon.