Design and Implementation of Chess-Playing Robotic System: Firas Abdullah Thweny Al-Saedi, Ali H. Mohammed
Design and Implementation of Chess-Playing Robotic System: Firas Abdullah Thweny Al-Saedi, Ali H. Mohammed
Abstract - This paper introduces a chess-playing robotic                   programmed can have a huge impact on its performance
system that is designed to autonomously play board games                   and following range of applications [4].
against human opponents. The control of the robotic arm                        In term of robot control, it can be specified by defined
manipulator is addressed in terms of speed and position                    speed and position of the end effector. The problem has
control. A complete control system is proposed to control the
Lab-Volt 5150 robotic manipulator which is a five degree of
                                                                           become important in both the medical and the
freedom (DOF) robotic manipulator arm. A smart chessboard                  manufacturing fields, where the robot arm must be suitably
is built for tracking opponent’s movement. Board                           placed with respect to targets (tasks) that cannot be moved.
representation and search techniques are provided by using                 An applicable numerical formulation is presented. While
the free and open source chess application the "SharpChess".               other methods are used the inverse kinematics solutions in
It was modified under VC# environment to fulfill the project               their formulation for defining a locality for the manipulator
requirement. The implemented control is a networked control                base, this kind of solution is difficult to accomplish because
system (NCS) scheme, the network exchanges the necessary                   of the inherent complexities in determining all inverse
information between the system parts. The proposed systems                 kinematic solutions [5].
with all of their parts are tested in a real time with a real chess
tournament and the system gave satisfactory results.
                                                                               A typical open-loop motion control system includes
                                                                           either a stepper motor with a programmable indexer or
Keywords - Smart Chessboard, Robotic Manipulator, Lab-Volt                 pulse generator and motor driver. This system does not
5150                                                                       need the feedback sensors because load position and
                                                                           velocity are controlled by the predetermined number and
                      I. INTRODUCTION                                      the direction of input digital pulses sent to the motor driver
                                                                           from the controller. Because load position is not
    On May 11, 1997, IBM’s Deep Blue computer defeated                     continuously sampled by the feedback sensor, load
the best human chess player Garry Kasparov [1]. However,                   positioning accuracy is lower and position errors
when saying a computer is not entirely true. In reality, the               (commonly called step errors) accumulate over time. For
computer only calculated the movements and a human still                   these reasons the open-loop systems are most often
assisted him for executing the movement on the chessboard.                 specified in applications where the load remains constant,
Board games are rich issues for human robot cooperation                    load motion is simple, and low positioning speed is
research because these games have an intermediate and an                   acceptable [6].
easily adjustable degree of structure. Perception of the                       SharpChess is a free and an open source computer
chessboard and game pieces, observation of the human,                      application that enables the human to play chess against the
game state and thinking about the game, and manipulation                   computer.      SharpChess      uses      the    chess   engine
of the chess pieces while playing with the human opponent                  communication protocol so it can play against other chess
was involved. Development on physical chessboard game                      engines by using WinBoard [7].
playing systems opens the way for more general human-                          The smart chessboard is a chessboard with switches
robot interactions systems that considered less structure.                 which are used to recognize movements that act as a
For example, this type of work could lead in the end to a                  dedicated input device to enter movements to the chess
manipulator capable of helping engineering as a field                      engine.
assistant that performs manipulation tasks in different field                  Many chess playing systems have been proposed by
environments [2].                                                          many researchers, some are listed hereafter:
    The term robot was first introduced by the Czech                           Nasrul et al. [8] used reed switches to detect the chess
playwright Karel Capek in his 1920 play Rossum’s                           pieces that played on the chessboard. The author used the
Universal Robots [3]. A robot manipulator should be                        direct method to read all the 64 locations with the aid of the
considered as more than as series of mechanical linkages.                  multiplexers which reduce the input lines from 64 to eight
The mechanical arm is only one element in an aggregate                     inputs only. This design adds an unnecessary cost and
robotic system which consists of several parts: the arm,                   complexity to the hardware of the board but it makes the
end-of-arm tooling, external power source, computer                        scanning procedure a lot easier.
interface, external and internal sensors, and control                          Nandan et al. [9] presented a simple 3-DOF robotic
computer. Furthermore the programmed software should be                    serial manipulator capable of playing chess in real time.
accounted as an integral section of the aggregate system,                  The chess pieces on the chessboard were detected by using
since the method in which the manipulator is controlled and                standard image processing techniques. HD Logitech
                                                                      90
             Firas Abdullah Thweny Al-Saedi et al | IJCSET(www.ijcset.net) | May 2015 | Vol 5, Issue 5,90-98
   The range of movement of the base, shoulder, elbow,                   IV. LAB-VOLT 5150 MANIPULATOR FORWARD
pitch, and roll are 338°, 181°, 198°, 185°, and 360°                                      KINEMATICS
respectively. The robot can reach most points inside an
imaginary hemisphere with a 432 mm radius that centered                 The position and orientation of the Lab-Volt 5150 wrist
on the shoulder joint. The operational space of the Lab-Volt         center can be calculated as [13]:
5150 manipulator was obtained by using MATLAB robotic
toolbox [16] and surface plot and it is depicted in Figure
(1).
                                                                91
                         Firas Abdullah Thweny Al-Saedi et al | IJCSET(www.ijcset.net) | May 2015 | Vol 5, Issue 5,90-98
                 	                    		 		 115
     	           	                	       	 115
	                                                                                 (2)
                                        0     0
            0             0             0     1
                                                                                              gives:
    The first three entries of the last column which
ingredients the origin o5 in the base frame are x, y, and z are                                       tan                                                                       (8)
the coordinates of the end effector in the base frame [13]:
                                                                                              or:
           190   190    115
                                                                                                                tan                                                             (9)
           190   190    115                                                        (4)
         255 190    190    115                                                                    Third, considering the plane is formed by the second
                                                                                              and the third links as demonstrated in Figure (4). Applying
    The rotational part of 0T5 gives the orientation of the                                   the law of cosines to obtain:
origin o5 which relates to the base frame, that is the
orientation of the end effector relative to the base frame.                                                                   	
                                                                                              cos                                                                              (11)
                                         	 		                  				          		
                                         			                  	 			         		     (5)
                                                                          		
                     	                                   	            	
                                                                                              since:
            VI. LAB-VOLT 5150 INVERSE POSITION
                                                                                               cos                      sin               1
    Given the desired x, y, z, pitch and roll, it is possible to                              then:
find the inverse kinematic of Lab-Volt 5150 robot by using
                                                                                                      	
kinematic decoupling and the geometric method. First, the                                     sin               ∓√1                 		        ′
wrist center can be found as:                                                                 and:
                                                                                         92
                                          Firas Abdullah Thweny Al-Saedi et al | IJCSET(www.ijcset.net) | May 2015 | Vol 5, Issue 5,90-98
                tan                                                                     (13)
or:
                tan                                                                     (14)
   The two solutions for θ3 correspond to both the elbow-
up position and the elbow-down position, respectively.
Similarly, θ2 is given as
                                                                ∗
                tan                         tan                     ∗
                                                                                        (15)
and:
                tan                                                                     (20)
                                                                                               93
             Firas Abdullah Thweny Al-Saedi et al | IJCSET(www.ijcset.net) | May 2015 | Vol 5, Issue 5,90-98
                                                                 94
             Firas Abdullah Thweny Al-Saedi et al | IJCSET(www.ijcset.net) | May 2015 | Vol 5, Issue 5,90-98
                                                                95
             Firas Abdullah Thweny Al-Saedi et al | IJCSET(www.ijcset.net) | May 2015 | Vol 5, Issue 5,90-98
C- Wr-Pitch Joint
XV. RESULTS
     1- Joints Accuracy
          In order to measure the accuracy for the robot
joints, the following tools were used:
      Samsung Galaxy Grand 2 smartphone.
      The android application "Clinometer" used as
          gyroscope data logger.
                                                                                        Fig. 16 Wr-Pitch joint tests.
After attaching the smart phone to the robot links and
calibrating the robot and "Clinometer" the following
results were obtained.                                              D- Wr-Roll Joint
A- Shoulder Joint
                                                                       The results for this joint were obtained by attaching the
   The results for this joint were obtained by attaching the        smartphone by the gripper. Figure (17) shows the results
smartphone to the upper. Figure (14) shows the results              obtained.
obtained for the following joints.
                                                               96
             Firas Abdullah Thweny Al-Saedi et al | IJCSET(www.ijcset.net) | May 2015 | Vol 5, Issue 5,90-98
XVI. DISCUSSION
                                                                97
                Firas Abdullah Thweny Al-Saedi et al | IJCSET(www.ijcset.net) | May 2015 | Vol 5, Issue 5,90-98
  robot will hit the workspace if the robot is ordered to go                   [3]    M. W. Spong, S. Hutchinson, and M. Vidyasagar, "Robot Dynamics
                                                                                      and Control, Second Edition", John Wiley and Sons, 2004.
  to the calibration position.                                                 [4]    A. H. Mohammed, "Design and Implementation of PSO-BASED
 Open loop stepping systems of the Lab-Volt 5150 robot                               PID Controller for MA2000 Robotic Manipulator", M.SC. Thesis,
  loses the accuracy gradually over the time no matter                                University of Al-Nahrain, 2012.
  how the stepper motor accuracy was due to the physical                       [5]    J. J. Yang, W. Yu, J. Kim, and K. Abdel-Malek, "On the Placement
                                                                                      of Open-Loop Robotic Manipulators for Reachability", Mechanism
  properties of the said robot.                                                       and Machine Theory, 2009.
 The proposed chess and robot software can be used to                         [6]    P. E. Sandin, "Robot Mechanisms and Mechanical Devices
  control other robot manipulators by modifying the                                   Illustrated", McGraw-Hill, 2003.
  kinematics class, also it can be used to control any picks                   [7]    Sharpchess, "SharpChess C# Chess Game". Available at:
                                                                                      http://sharpchess.com/.
  and drops operations.                                                        [8]    N. H. Mahmood and C. K. M. Long, "Smart Electronic Chess
 It is recommended to calibrate the of the Lab-Volt 5150                             Board Using Reed Switch", penerbit UTM Press, 2011.
  robot on regular times according to its working plan.                        [9]    N. Banerjee, D. Saha, A. Singh and G. Sanyal, "A Simple
                                                                                      Autonomous Robotic Manipulator for Playing Chess Against Any
                                                                                      Opponent in Real Time", Proceedings of the International
                                                                                      Conference on Computational Vision and Robotics, 2011.
        XVIII. SUGGESTIONS FOR FUTURE WORK                                     [10]   G. Kaur, A. K. Yadav and V. Anand, "Design and Implementation
                                                                                      of Artificially Intelligent          Microcontroller based Chess
Design and implement the following:                                                   Opponent", Proceedings of the World Congress on Engineering,
 A trajectory tracking control scheme, taking into                                   2010.
                                                                               [11]   M. Santhosh, "A Robotic Arm Based Chessboard for Visually
   account the robot dynamic model in order to perform                                Challenged", IIIYEAR CSE, 2010.
   effective trajectory tracking capabilities like welding,                    [12]   V. Sanchez, R. Gutierrez, G. Valdovinos and P. Ortega, "5-DOF
   cutting, and speed controlled tasks.                                               Manipulator Simulation Based on MATLAB Simulink
                                                                                      Methodology", Communications and Computer (CONIELECOMP),
 Image recognition algorithm to detect the chess pieces                              2010.
   on the chessboard.                                                          [13]   T. F. Abbas, "Forward Kinematics Modeling of 5-DOF Stationary
 A grippe for the robot specialized for picking and                                  Articulated Robots", University of Technology, 2013.
   dropping the chess pieces.                                                  [14]    V. A. Deshpande and P. M. George, "Analytical Solution for
                                                                                      Inverse Kinematics of SCORBOT-ER-Vplus Robot", International
 A distributed system algorithm to increase chess engine                             Journal of Emerging Technology and Advanced Engineering, 2012.
   strength.                                                                   [15]   J. J. Yang, W. Yu, J. Kim, and K. Abdel-Malek, "On the Placement
 A virtual reality based control scheme for the Lab-Volt                             of Open-Loop Robotic Manipulators for Reachability", Mechanism
                                                                                      and Machine Theory, 2009.
   5150, in order to move the pieces on the chessboard.
                                                                               [16]   P. I. Corke, "Robotics Toolbox 9 for MATLAB", MathWorks Inc,
                                                                                      2011.
                            REFERENCES                                         [17]   USB-4704, "USB-4704 User Manual", Advantic ltd., 2010.
[1]   M. Newborn, "Beyond Deep Blue: Chess in the Stratosphere",               [18]        Dribin,     "Keyboard      Matrix     Help".Available    at:
      Springer, 2011.                                                                 http://www.dribin.org/dave/keyboard/one_html/.
[2]   C. Matuszek, B. Mayton, R. Aimi, M. P. Deisenroth, L. Bo, R. Chu,        [19]   COM-08642, "Reed Switch Data Sheet", Hamlin Inc. Available at:
      M. Kung, L. LeGrand, J. R. Smith and D. Fox, "Gambit: An                        https://www.sparkfun.com/products/8642.
      Autonomous Chess-Playing Robotic System", 2011 IEEE
      International Conference on Robotics and Automation (ICRA),
      2011.
98