Skip to content

mixographer/Attiny84_chess_clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attiny84 Chess Clock

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.

Modes

Sudden Death

In Sudden-death mode, your clock runs when it is your turn, and you lose when you run out of time.

Fischer Increment

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.

Hourglass

In Hourglass mode, as one player's time goes down, the other player's time goes up.

Operation

The Chess Clock has four buttons that are used during gameplay, and to set the parameters of the clock.

  1. Start/Reset
  2. Player 1/Down
  3. Player 2/Up
  4. Pause/Enter

Start

To begin using the clock press the Start/Reset button.

Set Time

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.

Set Mode

You will be prompted to set the mode of the clock.

Sudden Death

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

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

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.

Play

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.


License

Licensed under the MIT License. See LICENSE.txt.

About

A chess clock based on the Atmel Attiny84 micorcontroller

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages