You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,19 @@
2
2
3
3

4
4
5
-
**A digital clock sketch for the Arduino Nano and a nixie tube display.**
5
+
**A digital clock for the Arduino Nano and a nixie tube display.**
6
6
7
-
* Features a perpetual calendar with day counter and sunrise/sunset times, alarm with snooze and skip, countdown timer, and automatic DST change.
7
+
* Features a perpetual calendar, day counter, sunrise/sunset, alarm, timer, and automatic DST change.
8
8
* Supports four- or six-digit displays of Nixie tubes multiplexed in pairs via two SN74141 driver chips.
9
-
* Supports LED backlighting with PWM fading, a piezoelectric beeper, and a relay (configurable as an impulse device or an appliance switch, as for a radio).
10
-
* Timekeeping currently requires a DS3231 real-time clock via I2C, which keeps time during power outages and is thermocompensated.
11
-
12
-
Written for [RLB Designs’](http://rlb-designs.com/) Universal Nixie Driver Board (UNDB), with LED control for v8+ and relay for v9+.
9
+
* Supports switchable LED backlighting, a piezo beeper, and a relay (to switch an appliance or impulse device).
10
+
* Timekeeping currently requires a DS3231 real-time clock via I2C, which is battery-backed and thermocompensated.
11
+
* Written for [RLB Designs’](http://rlb-designs.com/) Universal Nixie Driver Board (UNDB), with LED control for v8+ and relay for v9+.
13
12
14
13
[The latest release can be downloaded here.](https://github.com/clockspot/arduino-nixie/releases/latest) Skip to [Hardware Configuration](#hardware-configuration) for details on how to tweak the sketch.
15
14
16
15
## Operating Instructions, v1.6.0
17
16
18
-
[Instructions for earlier software versions are here.](https://github.com/clockspot/arduino-nixie/releases) (The clock displays its software version on startup, since v1.6.0.)
17
+
[Instructions for earlier software versions are here.](https://github.com/clockspot/arduino-nixie/releases) (The clock displays its software version on startup, as of v1.6.0.)
19
18
20
19
Press **Select** to cycle through the clock’s functions: [Time](#time), [Calendar](#calendar), [Alarm](#alarm), and [Timer](#timer).
21
20
@@ -25,43 +24,46 @@ To set something, simply hold **Select** until it flashes; use **Up/Down** to se
25
24
26
25
This displays the time of day. You can specify 12h or 24h format in the [options menu](#options-menu), but when setting, it will display in 24h so you can tell AM from PM.
27
26
28
-
In the [options menu](#options-menu), you can also enable automatic daylight saving time adjustment, enable an hourly chime, and set the display to dim or shut off at certain times.
27
+
In the [options menu](#options-menu), you can also enable automatic daylight saving time adjustment, enable an hourly chime, and set the display to dim or shut off at certain times, among other things.
29
28
30
29
### Calendar
31
30
32
31
The calendar has several displays and automatically cycles through them, before returning to Time.
33
32
34
-
***The date.** You can specify its format in the [options menu](#options-menu). When setting, it will ask for the year, then month, then date.
33
+
***The date.** You can specify its format in the [options menu](#options-menu). When setting, it will ask for year, then month, then date.
34
+
35
+
***Day counter.** This will count down to, or up from, a date of your choice, repeating every year. When setting, it will ask for month, then date, then direction (0 = count down, 1 = count up).
35
36
36
-
***Day counter.** This will count down to, or up from, a date of your choice, repeating every year. When setting, it will ask for the month, then date, then direction (0 = count down, 1 = count up).
37
37
* TIP: To display the day of the year, set it to count up from December 31.
38
38
39
-
***Sunrise and sunset.** These two displays show the previous and next sunrise or sunset (indicated by `1` or `0` on the seconds tubes). For this to work correctly, please set your latitude, longitude, and UTC offset in the [options menu](#options-menu).
39
+
***Sunrise and sunset.** These two displays show the previous and next sunrise or sunset (indicated by `1` or `0` on the seconds tubes). For this to work correctly, set your latitude, longitude, and UTC offset in the [options menu](#options-menu).
40
40
41
41
### Alarm
42
42
43
-
The alarm is always shown in 24h format so you can tell AM from PM. Use **Up/Down** to switch the alarm on and off (indicated by `1` or `0` on the seconds tubes, and high and low beeps).
43
+
The alarm is always shown in 24h format so you can tell AM from PM. Use **Up/Down** to switch the alarm between **on, skip, and off** (indicated by `1`/`01`/`0` on the seconds tubes, and high/medium/low beeps).
44
44
45
-
The “skip” feature (indicated by `01` on the seconds tubes, and a medium beep), allows you to skip the next alarm time, but leave it on for the time after that. This way, if you’re taking the day off tomorrow, or you wake up before your alarm, you can silence it for the day in advance.
45
+
The **skip** mode is temporary, and allows you to skip the next alarm time, but leave it on for the time after that. This way, if you’re taking a day off tomorrow, or you wake up before your alarm, you can silence it for the day in advance.
46
46
47
-
In the [options menu](#options-menu), you can set the clock to automatically skip the alarm during the work week or on weekends. When this is active, you can also “unskip” the next alarm time – such as if you need to get up on time on a particular Saturday – by switching it to `1`.
47
+
In the [options menu](#options-menu), you can set the clock to skip the alarm automatically during the work week or on weekends. When this is active, you can also “unskip” the next alarm time – such as if you need to get up on time on a particular Saturday – by switching the alarm to `1`.
48
48
49
49
When the alarm goes off, press any button to snooze it, or briefly hold any button to silence it for the day (it will blink the display and give a short beep).
50
50
51
-
In the [options menu](#options-menu), you can set the snooze length and the alarm sound. If your clock has a relay in switched mode (see [Hardware Configuration](#hardware-configuration)), you can also choose to switch on the relay at alarm time (like a clock radio), instead of sounding the beeper.
51
+
In the [options menu](#options-menu), you can set the snooze length and the alarm sound. If your clock has a [relay in switched mode](#hardware-configuration), you can also choose to switch on the relay at alarm time (like a clock radio) instead of sounding the beeper.
52
52
53
53
### Timer
54
54
55
55
This countdown timer can be set up to 18 hours. It begins running as soon as you finish setting it, and will continue to run in the background if you change to a different function. To cancel the running timer, hold **Select**. When the timer runs out, press any button to silence. If power is lost, the timer will clear.
56
56
57
-
In the [options menu](#options-menu), you can set it to be an interval timer (restarting when it reaches zero), and can also select the timer sound. If your clock has a relay in switched mode (see [Hardware Configuration](#hardware-configuration)), you can also choose to switch on the relay while the timer is running (like the “sleep” function on a clock radio), instead of sounding the beeper.
57
+
In the [options menu](#options-menu), you can set it to be an interval timer (restarting when it reaches zero), and can also select the timer sound. If your clock has a [relay in switched mode](#hardware-configuration), you can also choose to switch on the relay while the timer is running (like the “sleep” function on a clock radio) instead of sounding the beeper.
58
58
59
59
### The Alt Button
60
60
61
61
If your clock is equipped with an **Alt** button, it will do one of two things (depending on your [hardware configuration](#hardware-configuration)):
62
62
63
63
* In most cases, the **Alt** button works as a function preset, similar to a preset button in a car radio. While viewing the function you want quick access to, hold **Alt** until it beeps twice; then you can use **Alt** to jump straight to that function. It works best for Alarm or Timer.
64
+
64
65
* TIP: If used with Alarm, the **Alt** button will also toggle the “skip” state – so to skip or unskip the next alarm, you only need to press the **Alt** button twice: once to show it, and once to change it.
66
+
65
67
* If your clock has a switched relay with soft power switch enabled, the **Alt** button switches the relay on and off – great for using the clock as an appliance timer.
0 commit comments