Skip to the content
PCBKitNew board
2 layers68.5 × 181 mmNixie2, the printed circuit board in 3D

Circuit design and firmware for a GPS-synchronized Nixie-tube clock

Size
68.5 × 181 mm
Copper layers
2
Thickness
1.6 mm
Parts
51
Nets
122
Pads
307
Tracks, vias
748, 42
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
29 Nov 2021
Updated
3 Mar 2022

Overview

Nixie2 is an open-source printed circuit board by cfallin, from the cfallin/nixie2 repository on GitHub. It is a 2-layer board of 68.5 × 181 mm with 51 parts on 122 nets, routed with 748 tracks and 42 vias.

It is built around the ATMEGA8-16PU, 74HC595 and L7805. Its parts include 11 ICs, 8 connectors, 7 resistors, 4 capacitors and 1 crystal. It belongs with the lEDs and displays and radio and wireless boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

README.md

GPS-synchronized Nixie tube clock

view of Nixie clock with HH:MM:SS glowing orange digits

view of Nixie clock from the top, showing circuit boards

This is a custom-designed (custom circuit design / PCB boards and custom microcontroller firmware) digital clock. It receives the time from a GPS receiver board, adjusts for an user-selectable timezone, and displays the time on "Nixie tubes". A nixie tube is a cold-cathode vacuum tube display technology: it uses high voltage (about 160 volts in this design) applied to an electrode in the shape of a digit in order to display a number in brilliant glowing orange. It really is quite mesmerizing!

This repo contains custom circuit board layouts for the main clock board and a separate adapter sub-board for each Nixie tube. The sub-boards are designed for IN-14 tubes (which can currently be found on eBay or Etsy for ~$20 each), but could be adapted for IN-12, IN-18, or some other size.

The main board contains an AVR ATmega8 microcontroller, a 20MHz crystal, several 74HC595 shift registers to expand the AVR's IO, and six KI155ID1 open-collector high voltage driver chips.

The board interfaces with a separate high-voltage DC-DC power supply, because designing such a supply to be efficient is quite hard and I do not possess the analog black magic skills! I bought this one for $11. You can substitute any suitable source of ~160V DC rated for about 4mA per tube (24mA total, or just under 4 watts).

GPS is also black magic, so I bought a pre-designed GPS receiver module here for $12, and an external active antenna here for $11. The module provides a 1Hz "pulse-per-second" precision output and a 9600bps serial line providing time, position, and satellite lock information using the NMEA protocol. You can substitute any GPS receiver that provides a PPS output and NMEA signal.

The ATmega8 runs firmware that decodes the NMEA to get an initial time (synchronizing whenever a valid NMEA packet with a timestamp is received). It measures the internal crystal oscillator against the PPS and then ticks based on the main CPU clock, calibrated with this ticks-per-PPS value. This allows the clock to receive the time when GPS signal is available, learn how fast or slow its own internal oscillator is running, and then continue to keep time when the GPS signal is lost. Whenever it comes back, time will resynchronize automatically.

There is a simple user interface consisting of four buttons. The leftmost (SW4 on the main board) switches between time mode and set-timezone mode. In the latter, SW2 decrements TZ offset hour and SW1 increments TZ offset hour. (Half-hour or 15 minute timezone offsets are not yet supported; I know these timezones exist, sorry! Happy to take PRs if anyone in such a timezone builds this clock!)

Total cost for the clock, not including the one-time tool purchases I made (e.g. an AVR programmer) or the scrap wood, glue, etc. for the very janky base, and definitely not including my time, was about $230:

  • $42 for the PCBs (mainboard and 6x nixie tube adapters) at Aisler.net
  • $90 for the six IN-14s, on Etsy
  • $22 for the KI155ID1 driver chips
  • $12 for the GPS receiver
  • $11 for the GPS antenna
  • $11 for the 160V DC supply
  • about $40 for the ATmega8, 20MHz crystal, 74HC595s, a few resistors and capacitors, pin headers, wire, etc.

I started thinking about building a Nixie clock in 2014, but started working on this design regularly in Nov 2021. It first displayed a GPS-synchronized time on Jan 6, 2022. I'd like to improve the UI a bit (allow a non-GPS locally-set-time mode as well), and definitely improve the casing, but it suits me well enough for now! I finally know what time it is!

Parts

51
QtyValueFootprintReferences
7Conn_01x02_MaleConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalPWR_IN1, SW1, SW2, SW3, SW4, SW5, SW6
7Conn_01x10_FemaleConnector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ14, NIX1, NIX2, NIX3, NIX4, NIX5, NIX6
610kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R3, R4, R5, R6, R7
674141Package_DIP:DIP-16_W7.62mmU5, U6, U7, U8, U9, U10
6Conn_01x01_FemaleConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalANODE1, ANODE2, ANODE3, ANODE4, ANODE5, ANODE6
374HC595Package_DIP:DIP-16_W7.62mmU2, U3, U4
2CPCapacitor_THT:CP_Radial_D10.0mm_P2.50mmC2, C3
1100nFCapacitor_THT:CP_Radial_Tantal_D5.5mm_P2.50mmC1
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR1
11uFCapacitor_THT:CP_Radial_D4.0mm_P1.50mmC4
1ATmega8-16PUPackage_DIP:DIP-28_W7.62mmU1
1AVR-ISP-6Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ1
1CXO_DIP8Oscillator:Oscillator_DIP-8X1
1Conn_01x02_FemaleConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalHV_IN1
1Conn_01x03_FemaleConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalHVSUP_OUT1
1L7805Package_TO_SOT_THT:TO-220-3_VerticalU11

The 46 most common of 51 parts.

Questions

How big is the Nixie2 PCB?

It measures 68.5 × 181 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Nixie2 use?

51 parts, built around the ATMEGA8-16PU, 74HC595 and L7805. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Nixie2 KiCad files?

From the cfallin/nixie2 repository on GitHub, at the commit this page was made from: the board is nixie2.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Nixie2 design in my own project?

Its repository states no licence, so its author keeps all rights: ask cfallin before reusing the design.

More from cfallin/nixie2

1
  • 2 layers25.4 × 27.4 mmTube board, the printed circuit board in 3D

    Tube board

    cfallin/nixie2

    Circuit design and firmware for a GPS-synchronized Nixie-tube clock

    4 parts1

Similar boards

  • 2 layers80 × 80 mmEeprom programmer, the printed circuit board in 3D

    Eeprom programmer

    jkreucher/eeprom-programmer

    A EEPROM Programmer for my z80 stuff. Supported EEPROMS: 28C64, 28C256

    23 parts1MIT
  • 2 layers175.5 × 94.5 mmV2 atmega8 encoder, the printed circuit board in 3D

    V2 atmega8 encoder

    schmolmo/distel-hardware

    Multi-Player Controller for Distel Lang

    29 parts
  • 2 layers54.6 × 71.8 mmThermostat, the printed circuit board in 3D

    Thermostat

    protaskin/AVRThermostat

    A programmable thermostat on ATmega8A and DS18B20.

    31 parts7MIT
  • 2 layers77.5 × 34.3 mmLan64usb, the printed circuit board in 3D

    Lan64usb

    ThKattanek/lan64usb

    Diese Hard- und Software ermöglicht den Transfer von Programmen vom PC zum Commodore 64 (C64).

    19 parts3GPL-2.0
  • 2 layersAvrisp, the printed circuit board in 3D

    Avrisp

    ildus/avrisp

    schematic and pcb for http://www.fischl.de/usbasp/

    25 parts1
  • 2 layers124.5 × 99.1 mmVetrnik power, the printed circuit board in 3D

    Vetrnik power

    ondras12345/vetrnik

    Electronics for heating water with power from a 2 kW wind turbine

    138 parts
  • 2 layers81.3 × 62.2 mmStep linear, the printed circuit board in 3D

    Step linear

    dzavalishin/hardware

    Misc smart house hardware

    82 parts3