Skip to content

Arduino Leonardo / Pro-Micro (ATmega32U4) based electronic chess board with tactile switches or reed switches

Notifications You must be signed in to change notification settings

asdfjkl/ArdEBoard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArdEBoard with tactile switches

I've created an electronic chess board based on tactile switches. It emulates a USB keyboard and sends the moves as key sequences. This works much better in practice than the board based on reed switches (see below), and is also simpler to build and to program.

This repository contains source code for an ATmega32U4 based Arduino to control the electronic chess board.

ArdEBoard

The controller board must be based on a ATmega32U4 in order to emulate a USB keyboard. Examples are

  • the Arduino Micro,
  • the Arduino Leonardo,
  • the SparkFun Pro Micro
  • or other clones.

More details on how to build such a board can be found at my blog or here

A video of playing with the board against Aart Bik's Chess for Android is available here.

The corresponding source code of the version with tactile switches is the latest commit in the repo.

Operation

Just plug in the board and trigger a move by pressing the switch on the source and the target field.

ArdEBoard with reed switches

Before I've created a board based on reed-switches and magnets glued under every chess piece. Building it is however more complex and expensive, and due to issues with man-machine interaction (e.g. how to recover if you accidently knock over some or all pieces) I abandoned that approach.

ArdEBoard

The controller board must be based on a ATmega32U4 in order to emulate a USB keyboard. Examples are

  • the Arduino Micro,
  • the Arduino Leonardo,
  • the SparkFun Pro Micro
  • or other clones.

When moving a piece, the resulting move is sent in UCI notation (e.g. "e2e4") as a keyboard sequence - many PC chess programs support that. As for mobiles, a good choice for an Android based program (a USB OTG adapter is required) is Art Bik's Chess for Android).

More details on how to build such a board can be found at my blog or here

Two videos of playing with the board against the chess GUI Jerry and ShredderChess are available here and here.

The corresponding source code for the version with reed switches is in commit 3b1d32dfd718304a2e914dcc728c0895affa4953.

Operation

  • When connecting the board, it will wait until all pieces are placed in the initial position. If the board recognizes all pieces to be placed correctly, it will confirm it with a long beep.
  • By default, no moves are submitted. After setting up the initial position, lifting up and placing down the white king on its initial square will trigger move submission for White. Same for the black player.
  • For castling moves, only the first move (e.g. "e1g1") is submitted. The next rook move is not submitted.

About

Arduino Leonardo / Pro-Micro (ATmega32U4) based electronic chess board with tactile switches or reed switches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •