A chess clock based on the Atmel Attiny84 micorcontroller.
This project is a simple chess clock based on the Atmel Attiny84 micoprocessor. It uses the SCD55104 LED Display module to display player times and user interface menus. The time periods are adjustable and the clock operated in three different modes.
In Sudden-death mode, your clock runs when it is your turn, and you lose when you run out of time.
In Fischer Increment mode, an increment is added at the start of each turn. In Fischer Increment mode you can actually add time to your total if you move faster than the increment amount.
In Hourglass mode, as one player's time goes down, the other player's time goes up.
The Chess Clock has four buttons that are used during gameplay, and to set the parameters of the clock.
- Start/Reset
- Player 1/Down
- Player 2/Up
- Pause/Enter
To begin using the clock press the Start/Reset button.
You will be prompted to set the time period for the game with the text "Set Time:" Use the 'Player 1/Down' and 'Player 2/Up' buttons to set the time period. The default time is 2 minutes. The 'down' button reduces the time period while the 'up' button adds time. If the current time setting is 1:00 the down button will reduce the time period by 50%. The 'up' button adds 1 minute to the time period.
When you have set the desired time period with the 'down' and 'up' buttons, press the 'Pause/Enter' button to accept the time period.
You will be prompted to set the mode of the clock.
The default mode is Sudden Death or Guillotine. If you would like this mode simply hit the "Pause/Enter" button. The time period will be displayed for both players, and a play can begin. You can also scroll through the all modes with the 'Player 1/Down' and Player 2/Up' buttons.
Fischer increment mode can be selected by pressing the 'Player 1/Down' or 'Player2/Up button at the 'Set Mode' prompt. When 'Fischer' is displayed on the clock you can accept Fischer delay mode by pressing the 'Pause/Enter' button.
Set the increment. In Fischer increment mode, an increment period is required. The clock will prompt for the increment with the display "Inc?: 0:05." Set the desired increment with the 'Player 1/Down' and 'Player 2/Up' buttons. The increment adjusts in 1 second increments. Accept the increment with the 'Pause/Enter' button, the time period will be displayed and play can begin.
Hourglass mode can be selected by pressing the 'Player 1/Down' or 'Player2/Up' button at the 'Set Mode' prompt. Hourglass mode operates like an hourglass. As time is decreasing for one player, it is increasing for the other player. Once 'Hourglass' is displayed, press the 'Pause/Enter' button and play can begin.
Once the time period and mode have been set, the clock is ready to use. When time runs out for a player and indicator light will illuminate and the word "FLAG" will appear for the player who ran out of time. After a short period of time the clock will shut down. To start a new game, press the 'Start/Reset' button.
If during play, the clock needs to be paused for any reason, the 'Pause/Enter' will stop the clock at the current time. Play may be restarted by pressing either the 'Player1' or 'Player 2' button. Do not leave the clock paused for extended periods of time as that will prevent the clock from powering down and will drain the batteries.
###Keywords Chess Clock, DIY Chess Clock, Atmel, Attiny, Blitz, Bullet, Chess.
Licensed under the MIT License. See LICENSE.txt.