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
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,18 +12,18 @@
12
12
13
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 tweaking the sketch.
14
14
15
-
##Operating instructions, v1.7.0
15
+
# Operating instructions, v1.7.0
16
16
17
17
The clock displays its software version when powered up (as of v1.6). [Instructions for earlier versions are here.](https://github.com/clockspot/arduino-nixie/releases)
18
18
19
-
* Press **Select** to cycle through [Time of Day](#time-of-day), [Calendar](#calendar), [Alarm](#alarm), and [Countdown Timer](#countdown-timer).
19
+
* Press **Select** to cycle through [time of day](#time-of-day), [calendar](#calendar), [alarm](#alarm), and [timer/chrono](#timer/chrono).
20
20
* To set anything, simply hold **Select** until the display flashes; use **Up/Down** to set, and **Select** to save. Additional settings are available in the [options menu](#options-menu).
21
21
22
-
###Time of day
22
+
## Time of day
23
23
24
24
The time of day is shown in 12h or 24h format per the [options menu](#options-menu), but when setting, it is shown in 24h so you can tell AM from PM. When exiting setting, seconds will reset to zero, unless the time was not changed.
25
25
26
-
###Calendar
26
+
## Calendar
27
27
28
28
The calendar cycles through several displays, before returning to the time of day:
29
29
@@ -33,7 +33,7 @@ The calendar cycles through several displays, before returning to the time of da
33
33
***Sunrise/sunset.** These two displays show the previous and next apparent sunrise/sunset times (indicated by `1` or `0` on the seconds tubes – during the day, it shows sunrise then sunset; at night, sunset then sunrise). The times are calculated using the latitude, longitude, UTC offset, and auto DST rule specified in the [options menu](#options-menu), and shown in the same 12h/24h format as the time of day.
34
34
* NOTE: At this writing, the times may be incorrect by a few minutes, depending on [your longitude and time of year](https://docs.google.com/spreadsheets/d/1dYchVCJAuhvosrCdtEeHLT3ZXcLZK8X0UtENItZR32M/edit#gid=0). I believe this to be a rounding error(s) in the [Dusk2Dawn library](https://github.com/dmkishi/Dusk2Dawn) (compared to the [NOAA Solar Calculator](https://www.esrl.noaa.gov/gmd/grad/solcalc/) it’s based on) and plan to investigate.
35
35
36
-
###Alarm
36
+
## Alarm
37
37
38
38
The alarm is always shown in 24h format so you can tell AM from PM.
39
39
@@ -43,7 +43,7 @@ The alarm is always shown in 24h format so you can tell AM from PM.
43
43
* When the alarm sounds, press any button – once to snooze, and again to cancel the snooze / silence the alarm for the day (it will give a short low beep, and the display will blink once).
44
44
* In **Fibonacci mode** (see [options menu](#options-menu)), snooze does not take effect; any button press will silence the alarm for the day, even if the set alarm time hasn’t been reached yet.
45
45
46
-
###Timer/Chrono
46
+
## Timer/Chrono
47
47
48
48
This feature can count down (timer) or up (chrono) to 100 hours. When idle, it displays `0` (or `000000` if you have leading zeros enabled).
49
49
@@ -56,8 +56,8 @@ This feature can count down (timer) or up (chrono) to 100 hours. When idle, it d
56
56
* 3 beeps: start the chrono, with a long signal
57
57
* 4 beeps: start the chrono, with a short signal
58
58
* To reset to `0`, hold **Select**.
59
-
* When the timer signal sounds, press **Select** to silence it.
60
-
*You can switch displays while the timer/chrono is running, and it will continue to run in the background. If you switch displays while it is stopped, it will reset. It will also reset if it is stopped for an hour, if it reaches 100 hours, or if power is lost.
59
+
* It will automatically reset if you switch to a different function while it’s stopped, if it’s left stopped for an hour, if the chrono reaches 100 hours, or if power is lost. However, you can switch functions while it’s running, and it will continue to run in the background.
60
+
*When the timer signal sounds, press any button to silence it.
61
61
62
62
Some variations may apply, depending on your [hardware configuration](#hardware-configuration):
63
63
@@ -69,15 +69,15 @@ Some variations may apply, depending on your [hardware configuration](#hardware-
69
69
* While the timer is running, **Up** will cycle through the runout options.
70
70
* To stop, use **Down**.
71
71
72
-
###The Alt button
72
+
## The Alt button
73
73
74
74
If your clock has an **Alt** button, it will do one of two things (depending on your [hardware configuration](#hardware-configuration)):
75
75
76
76
* If your clock has a switched relay with soft power switch enabled (such as for a radio), **Alt** acts as that switch.
77
77
* Otherwise, it works as a preset button. While viewing the display you want quick access to (such as the alarm or timer/chrono), hold **Alt** until it beeps twice; then you can use **Alt** to jump straight there.
78
78
* TIP: If **Alt** is set as the alarm preset, it will switch the alarm as well – so you can check and switch it with a few presses of a single button.
79
79
80
-
###Options menu
80
+
## Options menu
81
81
82
82
* To enter the options menu, hold **Select** for 3 seconds until you see a single `1` on the hour tubes. This indicates option number 1.
83
83
* 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.
@@ -96,20 +96,20 @@ If your clock has an **Alt** button, it will do one of two things (depending on
96
96
| 8 | Anti-cathode poisoning | Briefly cycles all digits to prevent [cathode poisoning](http://www.tube-tester.com/sites/nixie/different/cathode%20poisoning/cathode-poisoning.htm)<br/>0 = once a day, either at midnight or when night shutoff starts (if enabled)<br/>1 = at the top of every hour<br/>2 = at the top of every minute<br/>(Will not trigger during night/away shutoff) |
97
97
||**Alarm**||
98
98
| 10 | Alarm auto-skip | 0 = alarm triggers every day<br/>1 = work week only, skipping weekends (per settings below)<br/>2 = weekend only, skipping work week |
99
-
| 11 | Alarm signal | 0 = beeper<br/>1 = relay (if in switch mode, will stay on for 2 hours)<br/>(Clocks with both beeper and relay only) |
99
+
| 11 | Alarm signal | 0 = beeper (uses pitch and pattern below)<br/>1 = relay (if in switch mode, will stay on for 2 hours)<br/>(Clocks with both beeper and relay only) |
100
100
| 12 | Alarm beeper pitch |[Note number](https://en.wikipedia.org/wiki/Piano_key_frequencies), from 49 (A4) to 88 (C8).<br/>(Clocks with beeper only) |
| 15 | Fibonacci mode | 0 = off<br/>1 = on<br/>To wake you more gradually, starting about half an hour before the set time, the clock will beep at intervals per the [Fibonacci sequence](https://en.wikipedia.org/wiki/Fibonacci_number) (610 seconds, then 337, then 233...). In this mode, snooze does not take effect; any button press will silence the alarm for the day, even if the set alarm time hasn’t been reached yet.<br/>(Clocks with beeper and/or pulse relay only)
104
104
||**Timer/chrono**||
105
-
| 21 | Timer signal | 0 = beeper<br/>1 = relay (if in switch mode, will stay on until timer runs down)</br>(Clocks with both beeper and relay only) |
105
+
| 21 | Timer signal | 0 = beeper (uses pitch and pattern below)<br/>1 = relay (if in switch mode, will stay on until timer runs down)</br>(Clocks with both beeper and relay only) |
106
106
| 22 | Timer beeper pitch |[Note number](https://en.wikipedia.org/wiki/Piano_key_frequencies), from 49 (A4) to 88 (C8).<br/>(Clocks with beeper only) |
107
-
| 23 | Timer beeper pattern | Same options as alarm beeper pattern.<br/>(Clocks with beeper and/or pulse relay only) |
107
+
| 23 | Timer beeper pattern | Same options as alarm beeper pattern.<br/>(Clocks with beeper only) |
108
108
||**Chime**||
109
-
| 30 | Chime | Make noise on the hour:<br/>0 = off<br/>1 = single beep<br/>2 = [the pips](https://en.wikipedia.org/wiki/Greenwich_Time_Signal) (overrides pitch and pattern settings)<br/>3 = chime the hour (1 to 12)<br/>4 = ship’s bell (hour and half hour)<br/>Will not sound during night/away shutoff (except when off starts at top of hour)<br/>(Clocks with beeper or pulse relay only) |
110
-
| 31 | Chime signal | 0 = beeper<br/>1 = relay<br/>(Clocks with both beeper and pulse relay only) |
109
+
| 30 | Chime | Make noise on the hour:<br/>0 = off<br/>1 = single pulse<br/>2 = [the pips](https://en.wikipedia.org/wiki/Greenwich_Time_Signal) (overrides pitch and pattern settings)<br/>3 = pulse the hour (1 to 12)<br/>4 = ship’s bell (hour and half hour)<br/>Will not sound during night/away shutoff (except when off starts at top of hour)<br/>(Clocks with beeper or pulse relay only) |
110
+
| 31 | Chime signal | 0 = beeper (uses pitch and pattern below)<br/>1 = relay<br/>(Clocks with both beeper and pulse relay only) |
111
111
| 32 | Chime beeper pitch |[Note number](https://en.wikipedia.org/wiki/Piano_key_frequencies), from 49 (A4) to 88 (C8).<br/>(Clocks with beeper only) |
112
-
| 33 | Chime beeper pattern | Same options as alarm beeper pattern.<br/>(Clocks with beeper and/or pulse relay only) |
112
+
| 33 | Chime beeper pattern | Same options as alarm beeper pattern. Cuckoo recommended!<br/>(Clocks with beeper only) |
113
113
||**Night/away shutoff**||
114
114
| 40 | Night shutoff | To save tube life and/or preserve your sleep, dim or shut off tubes nightly when you’re not around or sleeping.<br/>0 = none (tubes fully on at night)<br/>1 = dim tubes at night<br/>2 = shut off tubes at night<br/>When off, you can press **Select** to illuminate the tubes briefly. |
115
115
| 41 | Night starts at | Time of day. |
@@ -126,7 +126,7 @@ If your clock has an **Alt** button, it will do one of two things (depending on
126
126
127
127
To reset the clock to “factory” defaults, hold **Select** while powering up the clock.
128
128
129
-
##Hardware configuration
129
+
# Hardware configuration
130
130
131
131
A number of hardware-related settings are specified in config files, so you can easily maintain multiple clocks with different hardware, by including the correct config file at the top of the sketch before compiling.
132
132
@@ -148,7 +148,7 @@ These settings include:
148
148
149
149
You can also set the **defaults for the options menu** (in main code, currently) to better suit the clock’s intended use.
150
150
151
-
###Compiling the sketch
151
+
## Compiling the sketch
152
152
153
153
**To compile the sketch,** ensure these libraries are added and enabled in your Arduino IDE, via the Library Manager:
Copy file name to clipboardExpand all lines: arduino-nixie/arduino-nixie.ino
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -75,9 +75,9 @@ Some are skipped when they wouldn't apply to a given clock's hardware config, se
75
75
44 Strike signal - skipped when no pulse relay (start=0) or no piezo (start=1)
76
76
45 Temperature format - skipped when fnIsTemp is not in fnsEnabled TODO also useful for weather display
77
77
46 Anti-cathode poisoning
78
-
47 Alarm beeper pattern
79
-
48 Timer beeper pattern
80
-
49 Strike beeper pattern
78
+
47 Alarm beeper pattern - skipped when no piezo
79
+
48 Timer beeper pattern - skipped when no piezo
80
+
49 Strike beeper pattern - skipped when no piezo
81
81
50 Alarm Fibonacci mode
82
82
*/
83
83
@@ -585,8 +585,8 @@ void fnOptScroll(byte dir){
585
585
//Certain options don't apply to some hardware configurations; skip those
586
586
byte optLoc = optsLoc[fn-fnOpts];
587
587
if(
588
-
(piezoPin<0 && (optLoc==39||optLoc==40||optLoc==41)) //no piezo: no signal pitches
589
-
|| ((piezoPin<0 && relayMode==0) && (optLoc==21||optLoc==25||optLoc==47||optLoc==48||optLoc==49||optLoc==50)) //no piezo, and relay is switch: no strike, timer interval mode, alarm fibonacci mode, or alarm/timer/strike beeper pattern
588
+
(piezoPin<0 && (optLoc==39||optLoc==40||optLoc==41||optLoc==47||optLoc==48||optLoc==49)) //no piezo: no signal pitches or alarm/timer/strike beeper pattern
589
+
|| ((piezoPin<0 && relayMode==0) && (optLoc==21||optLoc==25||optLoc==50)) //no piezo, and relay is switch: no strike, timer interval mode, or alarm fibonacci mode
590
590
|| ((relayPin<0 || piezoPin<0) && (optLoc==42||optLoc==43||optLoc==44)) //no relay or no piezo: no alarm/timer/strike signal
591
591
|| ((relayMode==0) && (optLoc==44)) //relay is switch: no strike signal
592
592
|| ((ledPin<0) && (optLoc==26)) //no led pin: no led control
0 commit comments