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.
- 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
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- On Windows PC
- Create a virtual environment (recommended):
python -m venv env
cd env/Scripts
activate
- Install requirements
pip install -r requirements.txt
- On Raspberry Pi
- Create a virtual environment (recommended):
python3 -m venv env
source env/bin/activate
- Install requirements
pip3 install -r requirements.txt
- 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
cd <project_directory>
python Interface.py
Video
3270d00d5e40481ea37e976403f76419.mp4
Anyone is very welcome to contribute.
