Physical Setup - miloboyd/chess-robot GitHub Wiki

Physical Setup Guide – Hardware Positioning



Included Components

The following physical components are used to assemble the play area and enable consistent chesspiece detection and movement:

  • 4x 3D printed chessboard quadrants (total area: 30 cm × 30 cm)
  • 1x alignment board (frame for quadrant placement)
  • 16x custom white chess pieces
  • 16x custom black chess pieces
  • 1x tripod-mounted RGBD camera (Intel RealSense)
  • 1x UR3e robot arm with RG2 gripper
  • 1x Linux Computer

Board Setup Instructions

Follow these steps to assemble the board in a consistent and accurate layout:

  1. Place the alignment board on the UR3e bench surface.
    Corners must align with the bench edges to maintain coordinate origin consistency.
  1. Ensure all quadrant locating holes are cleared of any objects.
  1. Insert all 4 quadrants into the alignment board.
    Use the markings on the back to ensure correct quadrant order and orientation.
  1. Place white pieces on their starting squares.
    Ensure the white queen is placed on a white square.

  2. Place black pieces on the opposing side.
    Ensure the black queen is placed on a black square.

  1. Confirm that each piece sits fully inside the printed indents.
    This ensures consistent vision detection and reliable gripping.

Camera Setup

  1. Mount the RealSense camera on a tripod.
  2. Position the camera to face from behind the white player’s side, slightly off-centre to align with the lens placement.
  3. Ensure it is:
    • Centered over the full 30 cm × 30 cm chessboard
    • At a height of 40–50 cm
    • As perpendicular as possible for minimal distortion
      front_with_cam top_with_cam

UR3e Setup

  1. Power on the UR3e at the power point and plug in the ethernet cable to the host computer. 494858254_967800478601004_3037219354705822561_n

  2. Press the power button on the teach pendant and wait for the initialisation screen to appear (press the red button in the left corner if it doesn't). Then press the green 'ON' button. 494815040_1232781785254680_8185171720941731696_n

  3. Wait for the 'Robot Active' step to become yellow. Then press the green 'START' button. 494859496_1043247031240271_5721113924884884601_n

  4. Wait for the robot to start itself. Ensure that the 'Gripper' payload is selected. When all steps are green as in the image, press 'Exit' in the bottom left. 494825016_1228320905496217_4623201436499589223_n

  5. Click 'Run' in the top left, then the blue 'Load Program' button. 494820659_23863413029962910_4990829525157329719_n

  6. Click the 'ur_ros_driver.urp' file, and press 'Open' in the bottom right. Then press exit (if it doesn't automatically close). 494820625_693135656904239_8177170736794424199_n

  7. Back on the home screen, press 'Local' in the top right, then from the drop-down list press 'Settings'. 494818624_1350466832696898_3356655694669456302_n

  8. Record the IP address to use as the robot IP when connecting. 494815845_1236402024734718_2451828492868940925_n

  9. Press 'Installation' in the top left. Press 'General', then press 'Tool I/O'. Match the settings to the screenshot: 494826921_1906289286880188_7283982557680278390_n

  10. Press 'URCaps', then press 'OnRobot Setup'. Make sure 'No connection' is selected. 494821913_2380053185700622_7825010742044542399_n

  11. If the robot is not homed, press 'Move' in the top left, then press 'Home' below the UR3e graphic. 494820663_1240968210993280_4375995880247341630_n

  12. Press and hold 'Move robot to: New position' until the robot has completed its movement. Then press 'Continue'. 494813916_3808378336070668_8712362376722153495_n


Setup Checklist

Use this list to verify correct setup before each run:

  • Alignment board placed and quadrants locked in correct order
  • Chess pieces arranged correctly (queens on correct colour)
  • Camera mounted, centered, and level
  • Entire board visible in camera feed with minimal perspective distortion
  • UR3e can reach all squares with clearance
⚠️ **GitHub.com Fallback** ⚠️