STM32F072 IN-16 Nixie Clock with GPS and RTC Sync
A 6-tube IN-16 Nixie clock with RTC and GPS-based time synchronization, prototyped on an STM32F072 board and later moved to a custom MCU design.
Intermediate Project
— This is intermediate because it combines a custom high-voltage Nixie supply, RTC plus GPS time synchronization, and mixed-voltage PCB design, even though the MCU and prototype board are straightforward.
Assumptions:
- The user wants a mains-powered desktop clock, not a battery-powered portable device.
- The IN-16 tubes are driven by a separate high-voltage Nixie driver stage that is not yet specified in the database.
- GPS is only for time sync and location/time reference, not for displaying coordinates or logging position.
- The STM32F072B-DISCO will be used only for prototyping; the final design will likely use an STM32F072RBT6-class MCU or similar.
- The clock needs RTC backup so it can keep time when GPS is unavailable.
Bill of Materials
Compatibility Notes
- The STM32F072 runs at 3.3 V logic, so any GPS module or RTC breakout should be selected for 3.3 V STM32F072RBT6 operation or level shifted if needed.
- The Nixie tube display requires a high-voltage rail, typically far above MCU logic levels, so the tube driver and HV supply must be isolated from the STM32 GPIO domain by proper driver circuitry.
- The GPS module UART output should connect directly to the STM32F072 UART if the module is 3.3 V logic; otherwise add level shifting.
- If you use a DS3231 breakout, confirm whether the breakout includes pullups to 5 V, because that would require either 3.3 V pullups or level translation for the STM32 I2C bus.
- The prototype can be powered from USB for logic, but the Nixie HV rail will still need a separate boost supply path.
You'll Also Need
- Nixie tube sockets and mechanical mounting hardware.
- High-voltage resistors, decoupling capacitors, and the full tube driver transistor/IC stage.
- GPS antenna and any required RF connector or cable.
- RTC backup battery holder or supercapacitor.
- Custom PCB, headers, test points, and enclosure.
- Mains input protection and an isolated AC/DC adapter if you are not using USB plus a separate HV supply.
Estimated BOM Cost: $95-105 (based on live distributor pricing)
Design Considerations
High-Voltage Nixie Drive
IN-16 tubes need a high-voltage rail and proper current limiting, so the display section is the main electrical risk in the design. Keep the MCU ground and HV switching loop tight, use adequate creepage/clearance, and expect to tune the anode/cathode resistors during bring-up. A noisy boost converter can also inject jitter into the RTC or GPS if layout is poor.
Timekeeping Strategy
Use the GPS as the absolute time reference and the RTC as the holdover clock. On startup, wait for a valid GPS fix before disciplining the RTC, then periodically resync and ignore obviously bad GPS data during cold starts or poor reception. This gives you stable time even when the antenna is indoors or temporarily disconnected.
Antenna and Reception
GPS time sync is only as good as the antenna placement and sky view. For a desktop clock, put the antenna near a window or use an active antenna if the module supports it, because indoor reception can be marginal and cause long time-to-first-fix. Design firmware to detect loss of fix and fall back gracefully to RTC-only operation.
Firmware Architecture
Structure the firmware as separate tasks for tube refresh, GPS parsing, RTC maintenance, and user interface. Avoid blocking delays in the display update path, because Nixie multiplexing and GPS UART parsing both benefit from deterministic timing. A watchdog is worthwhile because a hung high-voltage control loop can leave the display in an unsafe state.
Power Budget and Heat
The logic side is low power, but the Nixie HV supply and tube current dominate the thermal budget. Six tubes can easily make the clock warm, so measure the actual HV rail current and tube segment current during all-digit-on tests. If the enclosure is small, plan for ventilation and avoid placing the GPS antenna near the boost converter or hot tubes.
Prototype-to-Final Transition
The STM32F072RBT6 is fine for firmware development, but the final board should be laid out around the chosen MCU, RTC, GPS connector, and HV stage from the start. Keep the prototype pin mapping close to the intended final PCB so you do not rewrite the firmware pinout later. Also reserve test pads for UART, I2C, reset, and the HV enable line.
Want to customize this project or build something different?
Try the Project Advisor


