I recently put together this kit. It ran all the demo programs fine except Demo 7, Real Time Clock. The clock seems to be working but I have not been able to set the time. This is the procedure I used:
Press the K3 (Menu) key until the LCD displays the minute (:XX). The D2 LED is also on.
Press the K2 (increase) key to set the minute. The LED display does not change and the buzzer beeps with each press of K2.
Repeat steps 1 and 2 for all remaining settings.
When the LED displays the time again, it has not changed.
Question: When I press the K2 key, should the number on the LED display increments?
Since the LED does not change, what may be the problem? I have the Tick Tock kit plugged into an Uno board.
I have run the program with DEBUG enabled. Here is the serial output when I tried to set the clock. It looks like I never received the CONFIRM system status after pressing the KEY UP a couple of times.
alarm = 11 : 2system_status = 1
Key_Menu pressed
Key_Menu release
Key_UP pressed
Key_UP pressed
Key_UP pressed
Key_UP pressed
Key_UP pressed
Key_UP pressed
system_status = 2
Key_Menu pressed
Key_Menu release
Key_UP pressed
Key_UP pressed
Key_UP pressed
system_status = 3
Key_Menu pressed
Key_Menu release
Key_UP pressed
Key_UP pressed
Key_UP pressed
system_status = 4
Key_Menu pressed
Key_Menu release
Key_UP pressed
system_status = 5
Key_Menu pressed
Key_Menu release
Key_UP pressed
Key_UP pressed
system_status = 6
Key_Menu pressed
Key_Menu release
system_status = 7
The code is actually working except that there are multiple key entries accepted as seen in the trace in my earlier posting. By changing the delay to 300 from 20 and 30, only one key entry is seen with each key press. Also the code commented out the update of the display. By uncommenting that line, the display is now updated as the key is pressed. Also I have issue with the code that is supposed to toggle the alarm enable when S2 is pressed. The bitwise operator (~) used in the code does not seem to work. By changing it to set the alarm enable flag to 1 or 0 corrects the problem.