StockBot – 4-DOF Autonomous Chess Manipulator

Assignment 4 in IN5590
By David Geier and Karsten Løvli Olsen
Printer: ELON
Topic F: Make a ≥ 4 DOF manipulator

Assignment text can be found here.

Topic and motivation

We chose topic F) Make a ≥ 4 DOF manipulator.

There was no disagreement regarding the choice of topic. David will probably work with a UR5 robotic arm in his master's thesis and is taking the course TEK4030, which covers the dynamics and control of manipulators. Karsten previously completed a project where he built a 3-DOF manipulator using hobby servos and 3D-printed links.

We therefore both wished to apply and further develop our existing knowledge in robotics, mechanical design, and control. In addition, we had several ideas for functionality that we could implement if the project progresses as planned.

Goals

The main goal of the project is to design, build and demonstrate a 4-DOF autonomous chess manipulator capable of detecting a human chess move and physically executing a counter-move.

The primary robot-control approach will use LeRobot and imitation learning. The robot will first be manually teleoperated while camera images, joint states and robot actions are recorded. These demonstrations will then be used to train a policy that can reproduce the required manipulation movements autonomously.

Physical Design Goals (Hardware Challenge)

To ensure this project addresses physical engineering challenges rather than purely off-the-shelf software integration, the mechanical design focuses on compliance, safety, and workspace optimisation.

Passive Z-Compliance End-Effector:
Chess pieces vary in height, and board surfaces have slight dimensional variations. A fully rigid arm risks colliding with the board, stripping servo gears, or failing to make magnetic contact. We will design a 3D-printed, spring-loaded compliant mechanism for the electromagnet mount. This mechanism must passively absorb up to $8\text{ mm}$ of vertical downward travel.

Kinematic Reach and Deflection:
The arm must cover all 64 squares plus an off-board area for captured pieces, requiring a maximum radial reach of approximately $350\text{ mm}$. Link 1 and 2 will use carbon-fibre elements, while the remaining structural components will mainly be 3D-printed in PLA. The lightweight design should maintain a total moving arm mass below $450\text{ g}$ while ensuring that vertical tip deflection remains below $2.0\text{ mm}$ when lifting the heaviest piece ($50\text{ g}$).

Accuracy and repeatability

If time permits after achieving the core autonomous chess workflow, we will pursue the following extensions:

Inspiration

OpenManipulator-X[^1] is a 4-DOF manipulator built with Dynamixel actuators. Its joint configurations and modular bracket design inspire the kinematic link structure and motor mount layouts of our arm. While OpenManipulator-X uses a direct-drive mechanical gripper, we adapt the concept to support our custom compliant electromagnet mount.

For vision-guided manipulation, we draw inspiration from the Dobot Vision Kit[^2] and the Hiwonder ArmPi Ultra[^3]. These systems illustrate contrasting computer vision approaches: Dobot uses a fixed overhead camera ("eye-to-hand"), whereas ArmPi mounts the camera onto the manipulator itself ("eye-in-hand"). The core version of StockBot will use a fixed overhead USB camera. An eye-in-hand camera may be investigated as an extended goal.

[^1]: ROBOTIS, "OpenManipulator-X". Available: https://emanual.robotis.com/docs/en/platform/openmanipulator_x/overview/ [^2]: Dobot, "Vision Kit". Available: https://www.dobot-robots.com/ecosystem/accessories/700.html [^3]: RobotShop, "Hiwonder ArmPi Ultra". Available: https://www.robotshop.com/products/hiwonder-hiwonder-armpi-ultra-ros2-3d-vision-robot-arm-with-multimodal-large-ai-model-chatgpt-ai-voice-interaction-vision-recognition-tracking-sorting-advanced-kit-with-rpi-5-4gb

Sketch

The project consists of a 4-DOF manipulator controlled from a laptop/PC. The manipulator features one yaw joint in the base and three pitch joints (shoulder, elbow, and wrist pitch).

A total of five Dynamixel servos will be used. One of the heavily loaded lower joints will be driven by two mechanically coupled Dynamixel MX-64AT servos operating together as a single joint. The remaining three joints will each be driven by one Dynamixel AX-18A servo. The use of two servos on the same joint increases the available torque without adding an additional degree of freedom.

The computer will communicate with the Dynamixel bus through a USB-to-TTL Dynamixel interface.

Link 1 and 2 will be made from carbon-fibre tubes/rods to reduce weight while maintaining high stiffness. The remaining structural components, including motor brackets, joint housings and the compliant end-effector, will mainly be 3D-printed in PLA. This combination is intended to reduce the moving mass of the arm while limiting bending deflection across its reach.

At the wrist, the end-effector features a custom 3D-printed, spring-loaded compliant mount fitted with an electromagnet. The chess pieces will have a small steel washer or screw installed at the top so that the electromagnet can pick them up reliably.

A USB webcam mounted above the chessboard provides an overview of the entire board. The camera will be used both for board-state detection and as visual input during data collection and learned robot control.

Before autonomous operation, the manipulator will be manually teleoperated. During these demonstrations, the system will record synchronized camera images, current joint states and the actions sent to the servos. The recorded demonstrations will be used to train a LeRobot imitation-learning policy.

Once the system has been trained and the user completes a chess move:

  1. The overhead camera captures the updated board state.
  2. The system determines which chess move was made.
  3. The chess engine calculates the counter-move.
  4. The target move is provided to the robot-control system.
  5. The trained LeRobot policy uses visual observations and the current robot state to generate the actions required to manipulate the selected piece.
  6. The robot activates the electromagnet, moves the piece to the destination square or captured-piece area, releases it and returns to a suitable position.

Conventional inverse kinematics and waypoint-based control may be implemented as a backup or comparison method if time permits.

Bill of materials (BOM)

Item Description Quantity
1 Dynamixel MX-64AT Servos (paired on one heavily loaded lower joint) 2
2 Dynamixel AX-18A Servos 3
3 5V / 12V DC Electromagnet (~25 N holding force) 1
4 MOSFET driver module 1
5 Dynamixel 3-pin TTL cables / bus connections 1 set
6 USB-to-TTL Dynamixel adapter (U2D2 or equivalent) 1
7 12V DC Power Supply (for Dynamixel servos and electromagnet) 1
8 Laptop/PC for robot control, vision processing, data collection and LeRobot inference 1
9 USB webcam (overhead chessboard camera) 1
10 Compression spring (for compliant Z-mount) 1
11 Chess set with steel tops 1
12 Polymaker PLA filament 1 spool
13 Carbon-fibre tubes/rods for link 1 and 2 2
14 Raspberry Pi 5 (4GB) – Extended goal 1
15 Raspberry Pi Camera Module – Extended goal 1
16 5V 5A USB-C Power Supply for Raspberry Pi 5 – Extended goal 1
17 Raspberry Pi AI HAT 13 TOPS – Extended goal 1

Plan

Milestone Work / activities Expected result Deadline Main responsibility
1. Concept and requirements Finalise the robot concept, number of degrees of freedom, workspace, dimensions, motors, camera configuration, compliant end-effector and Bill of Materials. A complete project concept with defined technical requirements and required components. October 25 David
2. Mechanical design Design the base, links, joints, motor mounts and spring-loaded compliant end-effector in CAD. Verify the required workspace and approximately 350 mm reach. Complete first CAD model of the manipulator and compliant end-effector. October 31 Karsten
3. Initial production and assembly Manufacture the carbon-fibre links, 3D-print the remaining mechanical parts and assemble the Dynamixel motors, links and base. Evaluate mechanical stiffness, range of motion and component fit. First assembled mechanical prototype of the robot arm. November 8 – Project part 1 Karsten
4. Motor control Establish communication between the computer and the Dynamixel servos through the USB-to-TTL interface. Implement individual joint position control and basic safety limits. All four robot joints can be controlled from the computer, with the two MX-64AT servos synchronised to operate as one joint. November 8 – Project part 1 Karsten
5. Manual control and data collection setup Implement safe manual teleoperation of the robot. Record synchronized camera images, joint states and robot actions in a format suitable for LeRobot training. The manipulator can be teleoperated safely and training demonstrations can be recorded. November 12 Karsten
6. Compliant end-effector and electromagnet Manufacture and test the spring-loaded Z-compliance mechanism. Integrate the electromagnet and MOSFET driver and test reliable pickup and release of chess pieces. The end-effector can pick up and release chess pieces while providing approximately 8 mm of passive vertical compliance. November 15 – Project part 2 David
7. Camera integration Mount the overhead USB webcam and establish a stable video stream on the computer. Verify that the chessboard and robot workspace are clearly visible during demonstrations. Stable visual input suitable for board detection and LeRobot data collection. November 18 David
8. LeRobot dataset and training Record repeated pick-and-place demonstrations using manual teleoperation. Train an imitation-learning policy using the recorded camera images, joint states and actions. A trained LeRobot policy capable of reproducing basic chess-piece manipulation. November 22 David
9. Chessboard detection and system integration Implement board-state detection and connect the chess engine, learned robot-control policy, motor control and electromagnet control. First complete automated response to a human chess move. November 25 David
10. Accuracy and repeatability testing Perform repeated chess-piece movements using the trained policy. Measure repeatability, positioning accuracy, end-effector deflection and task success rate. Quantitative measurements can be compared with the project's defined success criteria. November 27 David
11. Iterative improvement Use the test results to improve mechanical stiffness, demonstration quality, dataset quality, policy training, camera setup and software reliability. Record additional demonstrations or modify mechanical parts where necessary. Improved and more reliable version of the complete robot system. November 29 Karsten
12. Final testing and documentation Perform the final chess demonstration and document the completed system with measurements, images, videos and descriptions of design decisions, challenges and results. Finished prototype and final project documentation. November 30 – Project part 3 David


Parts of the text have been proofread and grammatically corrected with the help of ChatGPT.