Skip to content

amerfarooq/chess-robot

Repository files navigation

Autonomous Chess-Playing Robot

logo

Videos of the Robot:

  1. Robot playing against a player
  2. Short Promotional Video

Installation:

  1. Install Python 3.7. Do not install the latest 3.8 version as it is not compatible with TensorFlow.
  2. Install the Arduino application.
  3. Install DRV8825.h libray from Sketch -> Include Libraries -> Manage Libraries
  4. Select Arduino Nano from Tools -> Board
  5. Select ATmega328P (Old Bootloader) from Tools -> Processor
  6. Connect the Arduino to the laptop containing the rest of the code.
  7. Upload the automatic.ino file from the repository to the Arduino.
  8. Install Stockfish.
  9. Create a new conda environment using the requirements.txt from the repository.
  10. Configure the constants in config.py, specifically providing paths for the Stockfish engine, the CNN model and the Squares.txt file.
  11. Install IPWebcam application on an Android phone and start it. Copy the associated IP to the constants in config.py
  12. Look up the port in Arduino and copy it to the constants as well.
  13. Place the phone on the stand, making sure the whole chessboard is visible.
  14. Make sure all the chess pieces are in their correct places.
  15. Run main.py

Inspired by:

Raspberry Turk, by Joey Meyer. His implementation can be found at http://www.raspberryturk.com/

About

A robot that plays chess against a human player.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •