Chess Robot’s Got the Moves

[RoboAvatar]’s Chess Robot consists of a gantry-mounted arm that picks up chess pieces and places them in their new location, as directed by the software. The game begins when the human, playing white, makes a move. When a play has been made, the human player presses a button to let the robot to take its turn. You can see it in action in the videos we’ve posted below the break.

Running the robot is an Arduino UNO with a MUX shield as well as a pair of MCP23017 I/O expander chips — a total of 93 pins available! Thanks to all those pins, the Arduino is able to listen to 64 reed switches, one for every square.

The robot detects the human’s move by listening to its reed switches and identifying when there is a change. The gantry consists of X and Y tracks made out of PVC slabs, with half-inch lead screws turned by NEMA-23s and powered by ST-6600 stepper drivers.

Unlike some chess robots that rely on pre-existing software, this one features a custom minimax chess algorithm that [RoboAvatar] coded himself. It consists of Python scripts run on a computer, which interacts with the Arduino via a serial connection. In the second video, he explains how his algorithm works. You can also download the Arduino and Python files from [RoboAvatar]’s GitHub repository.

You’d be surprised how many chess-playing robots we’ve published, like the ChessM8 robot and this voice-controlled chess robot.

13 thoughts on “Chess Robot’s Got the Moves

  1. This chess robot is quite nice. It has been a while since I failed to make my own. And it brings back some good memories.

    There are a few things to note about this chess computer. The current implementation is quite hacky, using a breadboard with buttons won’t last. The use of 64 reed switches and io expanders is a good solution. Using multiplexing will reduce the number of pins needed.

    He wrote his own chess code. This is not a simple task. For information on chess programming and algorithms look on https://chessprogramming.wikispaces.com/. You can use someone else his/her chess computer. I like the Micro-Max computer. https://chessprogramming.wikispaces.com/Micro-Max This chess computer has been ported to a 8-bit 8kB AVR by Elektor in 2009.

    I based my failed project on this implementation. First by porting it to PIC and secondly being stuck in ‘theoretical world’. The first thing just should have been getting it running not implementing all chess variations…

      1. When you want to detect 2 pieces on a matrix and detect 4 they call it ghosting. By adding one diode to each reed switch you can eliminate ghosting. It’s pretty common to do so. For multiplexing there are better options like buying dedicated chips.

          1. My mistake, DOES need 9 pins to charlieplex – gives 9×8 sensors, EG 8×8 reed switches and 8 other buttons (or LEDs) if you want – want a chess clock? “Resign” buttons? Big red panic button “robot is attempting to kill humans”?

  2. Well this is a new one! Might try this out for my local chess club! We started this club on a tight budget so hacks like this are needed along with free material for our lessons on sites like chess.com, chesstempo, and chessbounty.com. Thanks a lot!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s