Skip to content

Commit 965b1d7

Browse files
committed
Bugfix, refactor, cleanup
1 parent e7af3f7 commit 965b1d7

File tree

2 files changed

+116
-190
lines changed

2 files changed

+116
-190
lines changed

README.md

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,30 @@
11
# arduino-nixie
22
Code for Arduino Nano in [RLB Designs](http://rlb-designs.com/) IN-12/17 clock v5.0
33

4-
Featuring timekeeping by DS1307 real-time clock and six digits multiplexed 3x2 via two SN74141 driver chips
4+
Featuring timekeeping by DS3231 real-time clock and six digits multiplexed 3x2 via two SN74141 driver chips
55

66
**This is an alternate codebase that is very much in progress!**
77

88
## Instructions
99

10-
_In these instructions, "Select" is the main pushbutton, and "Adjust" can be either a knob (rotary encoder) or a pair of up/down buttons (hold to set faster). Other variations may apply depending on the options selected in the code._
10+
_In these instructions, **Select** is the main pushbutton, and **Adjust** can be a pair of up/down buttons (hold to set faster), or a knob (rotary encoder). Other variations may apply depending on the options selected in the code._
1111

12-
**Use Adjust to see each of the clock's functions:** *(Alarm and Timer not yet implemented)*
12+
Press **Select** to cycle through the clock's functions. Some functions return to Time after a few seconds.
1313

14-
* **Time**
15-
* Shows the current time of day. (Choose 12h or 24h format in Setup.)
16-
* To set time, hold Select 'til display flashes; use Adjust to set (in 24h format), and push Select to save at the top of minute (seconds will set to :00).
17-
* **Date**
18-
* Shows month, date, and weekday as 0=Sunday, 6=Saturday. (Choose month/date or date/month in Setup.)
19-
* To set date, hold Select 'til display flashes; then set year, then month, then date, pushing Select to save each.
20-
* **Alarm**
21-
* Shows alarm time (in 24h format) and whether the alarm is on (1) or off (0).
22-
* To turn alarm on or off, press Select.
23-
* To set alarm, hold Select 'til display flashes; use Adjust to set (in 24h format), and push Select to save.
24-
* When alarm goes off, push Select to snooze, or hold to silence until tomorrow.
25-
* **Timer**
26-
* Shows a countdown timer (or 0min 00sec when idle).
27-
* To set timer, hold Select 'til display flashes; set time (in hrs, min, sec); and push Select to start. Hold to cancel.
28-
* When timer goes off, push Select to silence.
14+
To set a function, hold **Select** 'til the display flashes; use **Adjust** to set, and **Select** to save.
2915

30-
**Additional settings are available in the Setup menu.**
16+
| Function | Notes |
17+
| --- | --- |
18+
| **Time** shows the time of day, e.g. `12 34 56` for 12:34:56. | You can choose 12h or 24h format in Options. When setting, it's in 24h format (so you can tell AM from PM) and the seconds will reset to :00 when you save. |
19+
| **Date** shows the month, date, and weekday. e.g. `_2 _4 _0` for Sunday, February 4th. | The weekday is 0=Sunday, 6=Saturday. You can choose month/date or date/month format in Options. Setting is done in three stages: first year, then month, then date. |
20+
| **Day counter** shows the number of days until/since a date you specify, e.g. `_1 23 __` for 123 days. | The target date is set the same way as **Date.** |
21+
| **Thermometer** shows the temperature of the onboard DS3231 chip, e.g. `__ 38 25` for 38.25°C (I think). | This may not be very useful as it tends to read higher than ambient temperature and its tolerance is low. |
22+
| **Alarm** | _Not yet implemented_ |
23+
| **Timer** | _Not yet implemented_ |
3124

32-
* To enter **Setup**, hold Select for 3 seconds, until "1" appears on the small tubes, which indicates you are viewing the first option (see below). Its current setting is shown on the big tubes.
33-
* Push Select to cycle through options; use Adjust to set; hold Select to exit.
25+
Additional settings are available in the options menu. To access this, hold **Select** for 3 seconds until the display flashes something like `__ _0 _1`. The right tubes indicate you are viewing option 1, and the left tubes indicate its current setting. Use **Select** to cycle through options; **Adjust** to change the setting; and hold **Select** to exit.
3426

35-
| Option | Possible Settings |
27+
| Option | Settings |
3628
| --- | --- |
3729
| 1. Time format | 1 = 12-hour<br/>2 = 24-hour<br/>(time-of-day display only; setting times is always done in 24h) |
3830
| 2. Date display | 1 = month/date/weekday<br/>2 = date/month/weekday |
@@ -41,7 +33,7 @@ _In these instructions, "Select" is the main pushbutton, and "Adjust" can be eit
4133

4234
**Setup options not implemented yet**
4335

44-
| Option | Possible Settings |
36+
| Option | Settings |
4537
| --- | --- |
4638
| 5. Transition fade | 0–50 (in hundredths of a second) |
4739
| 6. Digit cycle (prevents [cathode poisoning](http://www.tube-tester.com/sites/nixie/different/cathode%20poisoning/cathode-poisoning.htm)) | 0 = before midnight and/or before day-off<br/>1 = every hour before :01 minute |

0 commit comments

Comments
 (0)