Skip to content

Commit 2728ae4

Browse files
committed
Readme and option tweaks
1 parent c374940 commit 2728ae4

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212

1313
[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.
1414

15-
## Operating instructions, v1.7.0
15+
# Operating instructions, v1.7.0
1616

1717
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)
1818

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).
2020
* 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).
2121

22-
### Time of day
22+
## Time of day
2323

2424
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.
2525

26-
### Calendar
26+
## Calendar
2727

2828
The calendar cycles through several displays, before returning to the time of day:
2929

@@ -33,7 +33,7 @@ The calendar cycles through several displays, before returning to the time of da
3333
* **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.
3434
* 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.
3535

36-
### Alarm
36+
## Alarm
3737

3838
The alarm is always shown in 24h format so you can tell AM from PM.
3939

@@ -43,7 +43,7 @@ The alarm is always shown in 24h format so you can tell AM from PM.
4343
* 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).
4444
* 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.
4545

46-
### Timer/Chrono
46+
## Timer/Chrono
4747

4848
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).
4949

@@ -56,8 +56,8 @@ This feature can count down (timer) or up (chrono) to 100 hours. When idle, it d
5656
* 3 beeps: start the chrono, with a long signal
5757
* 4 beeps: start the chrono, with a short signal
5858
* 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.
6161

6262
Some variations may apply, depending on your [hardware configuration](#hardware-configuration):
6363

@@ -69,15 +69,15 @@ Some variations may apply, depending on your [hardware configuration](#hardware-
6969
* While the timer is running, **Up** will cycle through the runout options.
7070
* To stop, use **Down**.
7171

72-
### The Alt button
72+
## The Alt button
7373

7474
If your clock has an **Alt** button, it will do one of two things (depending on your [hardware configuration](#hardware-configuration)):
7575

7676
* If your clock has a switched relay with soft power switch enabled (such as for a radio), **Alt** acts as that switch.
7777
* 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.
7878
* 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.
7979

80-
### Options menu
80+
## Options menu
8181

8282
* 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.
8383
* 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
9696
| 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) |
9797
| | **Alarm** | |
9898
| 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) |
100100
| 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) |
101-
| 13 | Alarm beeper pattern | 0 = long (1/2-second beep)<br/>1 = short (1/4-second beep)<br/>2 = double (two 1/8-second beeps)<br/>3 = triple (three 1/12-second beeps)<br/>4 = quad (four 1/16-second beeps)<br/>5 = cuckoo (two 1/8-second beeps, descending major third)<br/>(Clocks with beeper and/or pulse relay only) |
101+
| 13 | Alarm beeper pattern | 0 = long (1/2-second beep)<br/>1 = short (1/4-second beep)<br/>2 = double (two 1/8-second beeps)<br/>3 = triple (three 1/12-second beeps)<br/>4 = quad (four 1/16-second beeps)<br/>5 = cuckoo (two 1/8-second beeps, descending major third)<br/>(Clocks with beeper only) |
102102
| 14 | Alarm snooze | 0–60 minutes. 0 disables snooze. |
103103
| 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)
104104
| | **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) |
106106
| 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) |
108108
| | **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) |
111111
| 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) |
113113
| | **Night/away shutoff** | |
114114
| 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. |
115115
| 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
126126

127127
To reset the clock to “factory” defaults, hold **Select** while powering up the clock.
128128

129-
## Hardware configuration
129+
# Hardware configuration
130130

131131
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.
132132

@@ -148,7 +148,7 @@ These settings include:
148148

149149
You can also set the **defaults for the options menu** (in main code, currently) to better suit the clock’s intended use.
150150

151-
### Compiling the sketch
151+
## Compiling the sketch
152152

153153
**To compile the sketch,** ensure these libraries are added and enabled in your Arduino IDE, via the Library Manager:
154154

arduino-nixie/arduino-nixie.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ Some are skipped when they wouldn't apply to a given clock's hardware config, se
7575
44 Strike signal - skipped when no pulse relay (start=0) or no piezo (start=1)
7676
45 Temperature format - skipped when fnIsTemp is not in fnsEnabled TODO also useful for weather display
7777
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
8181
50 Alarm Fibonacci mode
8282
*/
8383

@@ -585,8 +585,8 @@ void fnOptScroll(byte dir){
585585
//Certain options don't apply to some hardware configurations; skip those
586586
byte optLoc = optsLoc[fn-fnOpts];
587587
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
590590
|| ((relayPin<0 || piezoPin<0) && (optLoc==42||optLoc==43||optLoc==44)) //no relay or no piezo: no alarm/timer/strike signal
591591
|| ((relayMode==0) && (optLoc==44)) //relay is switch: no strike signal
592592
|| ((ledPin<0) && (optLoc==26)) //no led pin: no led control

0 commit comments

Comments
 (0)