Summary

 A common issue among chess enthusiasts is finding an opponent to play against in a physical board. They therefore move to online play/chess apps. But as any serious chess player would agree, playing on a physical board has a lot of perks that software and online games can’t provide. Given an option between the two, people almost always choose to play chess using a physical board rather than a software. The AI powered Chessboard provides a way through which the user can get the best of both worlds. They don’t need to find an opponent to play against and they can still play in a physical chessboard.

 To achieve this goal, a robotic arm that can move in 2 axes has been designed. This mechanism contains a magnetic head that can move the pieces under–the–hood. This is possible because the pieces are also magnetic. To detect the user moves, a sensor matrix has been designed. This sensor matrix contains of 64 sensors – one for each cell of the board. This matrix lies directly below the chessboard and can detect changes in magnetic field and from these changes the user move is calculated.

Goals
  • To design a board that the user can play against
  • Not to compromise on the look and feel of the chessboard
  • a mechanism to move pieces under-the-hood
  • a mechanism to sense the positions of the pieces under-the-hood
  • Design an AI that can decide on the next best move from the current board state.
  • Project Details
    Hardware and Software

    The Hardware components and Software packages used to design the project.

    Hardware:
  • Motors: DC motor(load: 5kg,Output: 9 - 12 V)
  • Motor Drivers: L293D
  • Diodes: DN4148
  • Reed switch: Reed switches (15 mm diameter)
  • Power Supply: Rechargeable batteries (Output 9V)
  • Prototype Board: Raspberry Pi 2 model B
  • Software:
  • IDE: Python IDLE, Dev C++
  • Languages: C, Python
  • Packages: Delegator.py, Servo.h. Rpi.GPIO
  • misc: Arena GUI
  • Flow Chart

    The Entire Flow of the Project is shown here.

    Circuit Diagram

    The entire layout of the components in the project is shown here

    Demonstration
    The ChessBoard

    This Video shows the entire project in action. The A.I Plays the White pieces and player plays the Black Pieces. In the end the A.I decides to capture the piece.