Git Product home page Git Product logo

chess-robot's Introduction

LSS Chess Robot

The LSS 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

  • Lynxmotion Smart Servo (LSS) 4 DoF Robotic Arm
  • Raspberry Pi or Windows PC
  • Display
  • Keyboard
  • Mouse
  • Camera (USB or Raspberry Pi Camera Module)
  • Lighting
  • Chess board and pieces
  • Speaker or Headphones (Optional)

Software

Modules list

Getting Started

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

cd <some_directory>
git clone https://github.com/Robotics-Technology/Chess-Robot.git

Install

  • On Windows PC
pip install -r requirements.txt
  • On Raspberry Pi
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==3.4.6.27
sudo pip3 install opencv-contrib-python==3.4.6.27

Run

cd <project_directory>
python Interface.py

Chess Robot Interface

Chess Robot Gameplay

Gameplay Video

Authors

License

LSS Chess Robot is available under the GNU General Public License v3.0

Contributing

Anyone is very welcome to contribute. Below is a list of identified improvements.

To do

  • Change the gripper aperture acording to the chess piecce type
  • Allow re-taking pictures in the case of board obstruction

Limitations

  • The chessboard is limited by the reach of the arm and the squares need to be big enough so the arm gripper doesn’t stumble upon adjacent pieces.
  • This project was specifically made to be used with LSS smart servo motors using the LSS serial communication protocol so if you want to use it for a different robotic arm you will need to change how the servos are controlled and change the inverse kinematics parameters to match your specific arm.

Resources

Every module of the project is explained in the tutorial series available here.

Read more about the LSS Robotic Arm in the wiki.

Purchase the LSS arm on RobotShop.

Official Lynxmotion Smart Servo (LSS) libraries for Python available here.

If you want more details about the LSS protocol, go here.

Have any questions? Ask them on the Robotshop Community.

chess-robot's People

Contributors

geraldinebc avatar edgetronics-official avatar dependabot[bot] avatar eduardofna avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.