Simple Arduino Chess Clock

7,398

7

15

Introduction: Simple Arduino Chess Clock

About: @naldin

When I thought of doing a Chess Clock with Arduino, the goal was to build using simple programming without use class and work with the AVR register. The base used was Arduino Reference. The most difficult thing was to manipulate the timer using only the Arduino millis (). The idea is the project can be useful by the beginner students of the Arduino.

Step 1: Features

  • Complete timer adjust using keypad to hour, minutes and seconds, of 1 sec up to 10 hours
  • Storage last adjust in eeprom
  • Time control by Sudden Death or Increment of up to 99 seg
  • Pause timer using any keypad key and release using game buttoon
  • Sound to check that game button was pressed and when game is over

Step 2: Parts

  • Arduino Uno or any other
  • 2 Push button R13-502
  • Buzzer
  • For LCD shield board, can be used LCD Keypad Shield or DIY using:
    • LCD 16x2
    • 6 Tactile Push Button Switch
    • Universal Circuit Board
    • Row Pin Header

Step 3: Circuit

The most complicated circuit is the LCD Keypad Shield, if this piece is bought ready the rest is so simple.

Step 4: Files

Step 5: Update - 2021 January

The diference in this new stand is that I used an Arduino Pro Mini instead Arduino Uno. As Pro Mini use the same Atmega 328 nothing was changed in code or electronics connections:

Arduino Stand Definitive Edition: https://www.thingiverse.com/thing:4710255

Be the First to Share

    Recommendations

    • Space Contest

      Space Contest
    • Retro Tech Challenge

      Retro Tech Challenge
    • Micro:bit Contest

      Micro:bit Contest

    15 Comments

    0
    bluzlp34
    bluzlp34

    5 months ago

    Hey, I have a question to your Projekt.
    I'm a total newbie and this is my first Projekt Overall. I bought the lcd finished and it's on his way but do I have to buy cabels or any other parts like diodes (shown in circuit)and connect them? There aren't any included in your Parts so I wasn't sure. If there are could u give me description of what to buy? Thank you!

    0
    rjunior5
    rjunior5

    Reply 5 months ago

    Hello, I think that it is not a good choice o project if you haven't a knowledge of electronics. It is not only bought parts and wired everything, seriously, this will not work. Please search for someone next to you that have a electronics knowledge to help you with this project ;)

    0
    lambertdoctore
    lambertdoctore

    9 months ago

    I'm totally newbie, instead of the lcd that has many pins on top, I've got the 1602 lcd version with IIC and theres only 4 pins (gnd,vcc,sda and scl) do I have to change the code to make it work? and how? thanks

    0
    rjunior5
    rjunior5

    Reply 9 months ago

    Yes, you need change the code to I2C, sorry but it not easy to newbie.My tip is see simple LCD codes of normal and I2C to try understand what change. I don't have a LCD I2C and really cannot help you.

    0
    FactoremInv
    FactoremInv

    1 year ago

    Hi, I was very interested in this project one month ago and I designed a box and a PCB for it. Do you know how to share them as an improvement to your project?

    0
    rjunior5
    rjunior5

    Reply 1 year ago

    Hi!!! Great. Really I dont't know how. Maybe in the icon hand that say "I made it".

    0
    seongjep
    seongjep

    1 year ago

    Hi Junior. I uploaded the firmware on arduino Uno, and I'm using an LCD keypad shield, but i have no image on display. Seems no to work at all. What could be the issue? PD: I did not installed yet the push buttons (green ones) nor buzzer. Thanks

    0
    rjunior5
    rjunior5

    Reply 1 year ago

    Hi!!! Maybe your shield have different pins to LCD, try get the datasheet of your LCD and compare with my schematics. If it is different you can easily change the code in line 77.

    0
    seongjep
    seongjep

    Reply 1 year ago

    Ola Ronaldo. Ja resolvi o problema. Era como vc disse, pins diferentes. troquei 12, 11, 5, 4, 3 e 2 por 8,9,4,5,6 e 7 e resolvi o problema. Agora tenho outro problema: o backlight fica apagado. Como faço pra ele ficar ligado sempre? Obrigado. Pode escrever em portugues a resposta.

    0
    rjunior5
    rjunior5

    Reply 1 year ago

    Tem um pino para o led do backlight também, é so descobrir e colocar no codigo o pino habilitado usando digitalWrite(). Eu como fiz a placa liguei o led direto no 5V com resistor.

    0
    seongjep
    seongjep

    Reply 1 year ago

    Eu sei que é o pino 10, mas nao sei como botar isso dentro de seu sketch. Ja tentei de tudo, e tudo deu erro. E se nao da erro, nao funciona.

    0
    seongjep
    seongjep

    Reply 1 year ago

    Agora to mais confuso ainda. alguns artigos dizem que nao devo usar o pin 10. Nossa senhora!

    0
    rjunior5
    rjunior5

    Reply 1 year ago

    Se for mesmo o 10 basta colocar dentro do função setup do Arduino. Tipo:
    pinMode(10,OUTPUT);
    digitalWrite(10,HIGH).
    Ou LOW se estiver conduzindo para terra, tem que funcionar.
    Rode o blink como exemplo tentando piscar o backlight:
    https://www.arduino.cc/en/Tutorial/Blink

    0
    TheLowerFloor
    TheLowerFloor

    2 years ago

    Clear / easy to understand / right to the point. A really cool instructables !
    I really wonder why some nicely made instructables/projects like yours with a lot of work behind aren't featured, to give you some visibility.
    Also cool chess set !

    0
    rjunior5
    rjunior5

    Reply 2 years ago

    Thank you. Happy to know that someone like this :)