Skip to content

Repository files navigation

IMG_20250522_162849365

Chess Robot

The Chess Robot is a robotic arm that can play chess against you. This is a free and open source project that integrates aspects of robotics, computer vision, and of course chess.

Table of Contents

Requirements

Hardware

  • 3 x 360 degree servo motor MG995
  • 3 x 180 degree servo motors MG90S
  • Raspberry Pi or Windows PC
  • External power supply: SMPS
  • PCA9685 servo motor driver
  • Camera (USB or Raspberry Pi Camera Module)
  • Lighting
  • Chess board and pieces

Software

Getting Started

To start using this project, proceed to the standard clone procedure:

cd <some_directory>
git clone https://github.com/Darkrock04/Automatic-chess-robot-arm.git

Install

  • On Windows PC
  1. Create a virtual environment (recommended):
python -m venv env
cd env/Scripts
activate
  1. Install requirements
pip install -r requirements.txt
  • On Raspberry Pi
  1. Create a virtual environment (recommended):
python3 -m venv env
source env/bin/activate
  1. Install requirements
pip3 install -r requirements.txt
  1. If you are using the Raspberry Camera Module
pip3 install "picamera[array]"

Note: To avoid incompatibilities use the versions established in the "requirements", for this it is recommended to use a virtual environment.

If you have issues with OpenCV on the Raspberry Pi try the following commands:

sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
sudo apt-get install libqtgui4
sudo apt-get install libqt4-test
sudo apt-get install libhdf5-dev 
sudo apt-get install libhdf5-serial-dev
sudo apt-get install python3-pyqt5
sudo apt-get install stockfish
sudo pip3 install opencv-python==4.5.5.64
sudo pip3 install opencv-contrib-python

Run

cd <project_directory>
python Interface.py

Video

3270d00d5e40481ea37e976403f76419.mp4

Contributing

Anyone is very welcome to contribute.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages