Cy Clock User Manual
Introduction
Cy Clock is designed around an Altera-Intel MAX 10M08 evaluation board, a Newhaven Display OLED display module, a Grayhill keypad, and a custom circuit board to connect the pieces together. The clock is named Cy Clock because I designed it with my grandson, Cy, as a teaching tool. If you lose this manual it is available online. Search my name, Matthew (or Matt) Proujansky, and go to mattproengineering.com.
Powering the Clock
First plug the USB connector into the clock. Then plug the power supply with its USB connector into an outlet. This will cause clock power to come up smoothly. You can plug the USB power supply into an outlet first. This usually works, and it won’t damage anything. But the clock program may not activate, and the display will be blank.
Modes
There are three modes of clock control.
Mode 0 Display formatting
Mode 1 Time setting
Mode 2 Daylight Saving Time adjustment
Modes Operations—General Rules
The keypad controls mode entering, mode exiting, and setting parameters.
To enter a mode press * followed by the mode number.
Note that when * is pressed, a red LED will light. This indicates that mode entry is active and a valid mode number (0, 1, or 2) is expected to be entered.
However, if mode entry is to be cancelled, then pressing any key other than 0, 1, or 2 will cause mode entry to become inactive and the LED will turn off.
Examples: ** or *# or *9 will activate then cancel mode entry, while *1 will cause entry into mode 1.
To exit a mode that has been entered press #.
Each mode has a set number of parameters (characters) that need to be entered to implement its function. Time setting requires 7 characters. Display format requires 1 character. Daylight saving time adjustment requires 1 character.
If the full set of parameters is entered, followed by the # (i.e. exit) key, the mode function will be implemented.
If no parameters or only a partial set of parameters is entered, followed by the exit # key, the mode will be exited without the mode function being implemented.
Time Setting—Mode 1
To set the time:
Enter the Time Setting mode by pressing *1.
The display will prompt entry by showing Set Time:HHMMSSap.
Enter hours, minutes, seconds, and 0 for am or 1 for pm.
For hours, minutes, or seconds less than 10 enter a leading zero e.g. 09.
Out of range characters will be ignored.
Press # to exit the Time Setting mode.
When exiting, if fewer than 7 characters have been entered, a new time will not be set.
To see exactly what time it is I use the web site “time.is”.
Display Format—Mode 0
There are three possible display formats.
Since the display is quite bright, at times one may want the display to be turned off. One format blanks the display.
A second format displays the current time including seconds.
The third format displays time without seconds being shown.
To set the display format:
Enter the Display Format mode by pressing *0.
To blank the display enter 0. To display time including seconds enter 1. To display time without seconds enter 2.
Parameters other than 0, 1, or 2 will be ignored.
Press # to exit the Display Format mode.
When exiting, if no parameter (0,1, or 2) has been entered the display will remain in its current state.
When entering parameters, if 0, 1, or 2 is pressed more than once the last parameter entered will be the parameter used. For example, *0 210 # will blank the display.
When the display is blanked, time keeping will still be active, and when the display is shown the time will be correct.
Daylight Saving Time Adjustment—Mode 2
Mode 2 is used for advancing or turning back time by one hour to accommodate daylight saving time changes:
Enter Daylight Saving Time adjustment mode by pressing *2.
To leave the clock as is, enter 0. To advance the clock 1 hour (spring forward), enter 1. To turn the clock back 1 hour (fall back), enter 2.
When entering parameters, if 0, 1, or 2 is pressed more than once the last parameter entered will be the parameter used.
Press # to exit the daylight saving time adjustment mode.