Designer of Antique & Steampunk Nixie Clocks

Home Clocks Gallery New Projects Ordering Contact

 

UNDB

Universal Nixie Driver Board UNDB

A Plug & Play digital clock board with perpetual calendar, alarm, countdown timer/appliance timer, and day counter. Written for the Arduino Nano which is at the heart of RLB Designs' Universal Nixie Driver Board (UNDB), featuring a DS3231 RTC real-time clock with battery backup, and driving up to 6 Nixie Tubes, multiplexed in pairs via two SN74141 (К155ИД1) driver chips. Includes support for LED and relay control for UNDB V9 boards to be released in Janruary 2019.

Clock Operating Instructions
Note: Many variations are possible, depending on your clock's hardware; but this covers most cases.
Clock Functions

  • Press Select to cycle through the clock's functions.
  • After a few seconds, the display will return to Time, except for the running timer and the preset function (see below).
  • To set, hold Select until the display flashes; use Up/Down to set, and Select to save.

Function

Looks like

Notes

Time

12 34 56

The time of day. You can choose 12h or 24h format in the options menu (1). When setting, it's in 24h format (so you can tell AM from PM) and the seconds will reset to :00 when you save. The clock keeps time during power outages and compensates for temperature effects.

Date

_2 _4 _0
(for Sun 2/4)

You can choose the date format in the options menu (2). Setting is done in three stages: first year, then month, then date.
Weekdays are: 0=Sun, 1=Mon, 2=Tue, 3=Wed, 4=Thu, 5=Fri, 6=Sat

Alarm

_7 00 1_

Shows alarm time (always in 24hr format) and on/off status on 5th tube (1=on, 0=off) and by display brightness (bright=on, dim=off). Use Up to switch on, and Down to switch off. Hold Select to set time (same way as Time). When alarm sounds, press any button to snooze, or hold for 1sec (followed by a short beep) to silence the alarm for the day. Options menu lets you restrict the alarm to your workweek or weekend only. In a power outage, the alarm will remain set, but it will not sound if power is disconnected at alarm time.

Timer

__ __ _0

A countdown timer, in hours, minutes, and seconds; or 0 when stopped. Can be set to the minute, up to 18 hours. Begins running as soon as you set it, and will continue to run in the background if you change to a different function. To cancel while running, hold Select. When timer runs out, press Select to silence. If power is lost, the timer will reset to 0. Can be configured to work as an interval timer in the options menu (10).

Day counter

_1 23 __

Shows the number of days until/since a date you specify. Set the same way as Date.

Temperature

__ 38 25

Shows the temperature of the onboard DS3231 chip (e.g. 38.25°C ). Negative temperatures indicated with leading zeroes.

Tube tester

88 88 88

(Disabled by default.) Cycles through all the digits on all the tubes.

 

LEDs and Relay (Version 9 onwards)

Later UNDBs (V9) are equipped with controllable LEDs, as well as a relay, which can be enabled in the hardware configuration in switch mode (such as for a radio) or pulse mode (such as for a bell striker). If you have one of these UNDBs:

  • The LED behavior is configurable in option 7, and can be set to switch on and off with the relay if enabled (great for a radio!)
  • The alarm, timer, and strike signals can be configured to use either the beeper or the relay if enabled (options 11, 21, and 31 – strike can only use the relay in pulse mode).
  • With the relay in switch mode:
    • Alt will switch it on and off at any time (except in options menu, and only if the soft power switch is enabled).
    • If the alarm is set to use the relay, it will switch on the relay at alarm time, and switch off two hours later. If Alt is used to switch it off, the alarm will be silenced for the day (skipping snooze).
    • If the timer is set to use the relay, it will switch on while the timer is running, and switch off when it runs out, like a clock radio's sleep function. If Alt is used to switch it off, the timer will be cancelled. (The interval timer option cannot be used with the relay in switch mode.)

Function Preset

If you are not using a switched relay and/or the soft power switch is not enabled, the Alt button acts as a function preset, to let you quickly access a function of your choice.

  • Press Alt to jump immediately to the preset function (or back to Time).
  • To change the preset function, use Select to scroll to that function, then hold Alt until the display flashes and you hear two beeps.
  • Most functions return to Time after a few seconds, but the preset function will not. You can use this to make a function stay on display.

 

Options Menu

  • To access this, hold Select for >3 seconds until you see a single 1 on the hour tubes. This indicates option number 1 is selected.
  • Use Up/Down to go to the option number you want to set (see table below); press Select to open it for setting (display will flash); use Up/Down to set; and Select to save.
  • When all done, hold Select to exit the options menu.

Option

Settings

General

1

Time format

1 = 12-hour
2 = 24-hour
(time-of-day display only; setting times is always done in 24h)

2

Date format

1 = month/date/weekday
2 = date/month/weekday
3 = month/date/year
4 = date/month/year
5 = year/month/date
Note that four-tube clocks will display only the first two values in each of these options.

3

Display date during time?

0 = never
1 = date instead of seconds
2 = full date (as above) every minute at :30 seconds
3 = same as 2, but scrolls in and out

4

Leading zero in hour, date, and month?

0 = no
1 = yes

5

Digit fade

0–20 (in hundredths of a second)

6

Auto DST

Add 1h for daylight saving time between these dates (at 2am):
0 = off
1 = second Sunday in March to first Sunday in November (US/CA)
2 = last Sunday in March to last Sunday in October (UK/EU)
3 = first Sunday in April to last Sunday in October (MX)
4 = last Sunday in September to first Sunday in April (NZ)
5 = first Sunday in October to first Sunday in April (AU)
6 = third Sunday in October to third Sunday in February (BZ)

7

LED behavior

0 = always off
1 = always on
2 = on, but follow night/away modes if enabled
3 = off, but on when alarm/timer sounds
4 = off, but on with switched relay (if equipped)
(Clocks with LED control only, UNDB V9+)

8

Anti-cathode poisoning

Briefly cycles all digits to prevent cathode poisoning
0 = once a day, either at midnight or at night mode start time (if enabled)
1 = at the top of every hour
2 = at the top of every minute
(Will not trigger during night/away modes)

9

Temperature format

0 = Celsius
1 = Fahrenheit
(Clocks with temperature function enabled only)

Alarm

10

Alarm days

0 = every day
1 = work week only (per settings below)
2 = weekend only

11

Alarm signal

0 = beeper
1 = relay (if in switch mode, will stay on for 2 hours)
(Clocks with both beeper and relay only)

12

Alarm beeper pitch

Note number on a piano keyboard, from 49 (A4) to 88 (C8). Some are louder than others!
(Clocks with beeper only)

13

Alarm snooze

0–60 minutes. 0 disables snooze.

Timer

20

Timer interval mode

0 = count down and stop
1 = count down and restart (interval mode)
(Clocks with beeper and/or pulse relay only)

21

Timer signal

0 = beeper
1 = relay (if in switch mode, will stay on until timer runs down)
(Clocks with both beeper and relay only)

22

Timer beeper pitch

Set the same way as the alarm pitch, above
(Clocks with beeper only)

Strike

30

Strike

Make noise on the hour:
0 = off
1 = single beep
2 = pips
3 = strike the hour (1 to 12)
4 = ship's bell (hour and half hour)
Will not sound during night/away modes (except when off starts at top of hour)
(Clocks with beeper or pulse relay only)

31

Strike signal

0 = beeper
1 = relay
(Clocks with both beeper and pulse relay only)

32

Strike beeper pitch

Set the same way as the alarm signal pitch, above. If using the pips, 63 (987 Hz) is closest to the real BBC pips frequency (1000 Hz).
(Clocks with beeper only)

Night mode and away mode

40

Night mode

To save tube life and/or preserve your sleep, dim or shut off tubes nightly when you're not around or sleeping.
0 = none (tubes fully on at night)
1 = dim tubes at night
2 = shut off tubes at night
When off, you can press Select to illuminate the tubes briefly.

41

Night starts at

Time of day.

42

Night ends at

Time of day. Set to 0:00 to use the alarm time.

43

Away mode

To further save tube life, shut off tubes during the day when you're not around.
0 = none (tubes fully on during the day)
1 = clock at work (shut off all day on weekends)
2 = clock at home (shut off during work hours)
When off, you can press Select to illuminuate the tubes briefly.

44

First day of work week

0–6 (Sunday–Saturday)

45

Last day of work week

0–6 (Sunday–Saturday)

46

Work starts at

Time of day.

47

Work ends at

Time of day.

To reset the options menu settings to "factory" defaults, hold Select while connecting the clock to power.

 

Hardware Configuration

A number of hardware-related settings are specified in config files, one of which is included at the top of the sketch (so you can easily maintain multiple clocks with different hardware). These settings include:

  • How many tubes in the display module. Default is 6; small display adjustments are made for 4-tube clocks.
  • Which functions are enabled. Default is all but temperature and tube tester.
  • Which pins are associated with the inputs (controls) and outputs (LED, relay, anodes, cathodes).
  • What type of Up/Down controls are equipped: pushbuttons (default) or rotary encoder (unimplemented).
  • What type of signal outputs are equipped: a piezo beeper (default) and/or a relay.
    • Signal duration (default 3min) and piezo pulse duration (default 500ms)
    • If relay is equipped, relay mode:
      • In switched mode (default), the relay will be switched to control an appliance like a radio or light fixture. If used with timer, it will switch on while timer is running (like a "sleep" function). If used with alarm, it will switch on when alarm trips; specify relay switch duration (default 2 hours).
      • In pulse mode, the relay will be pulsed, like the beeper is, to control an intermittent signaling device like a solenoid or indicator lamp; specify relay pulse duration (default 200ms).
  • Soft alarm switch enabled: default is yes; it is switched with Up (on) and Down (off) while viewing the alarm time. Change to no if the signal output/appliance has its own switch on this relay circuit; the clock's alarm will be permanently on.
  • Soft power switch enabled (switched relay only): default is yes; appliance can be toggled on/off with Alt. Change to no if the appliance has its own power switch (independent of this relay circuit) or does not need to be manually switched. (If set to no, or not using a switched relay, Alt acts as a function preset, as above.)
  • Various other durations for things like scrolling speed, set mode timeouts, short and long button holds, "hold to set faster" thresholds, etc.

 

 

 

 

©2023 RLB Designs

Contact: rlb-designs@outlook.com