Simple Arduino Chess Clock

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

Be the First to Share

    Recommendations

    • Puzzles Speed Challenge

      Puzzles Speed Challenge
    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020

    9 Discussions

    0
    seongjep
    seongjep

    2 months 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 2 months 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 2 months 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.

    1
    rjunior5
    rjunior5

    Reply 2 months 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 2 months 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 2 months ago

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

    0
    rjunior5
    rjunior5

    Reply 2 months 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

    1
    TheLowerFloor
    TheLowerFloor

    1 year 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 1 year ago

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