Post

Chess-Playing Robot — Concept & Design

Concept for a fully automated chessboard that can detect and move pieces using an XY gantry and sensors. The project combines mechanical design, embedded control, and maybe a bit of AI for game logic.

Chess-Playing Robot — Concept & Design

Work in Progress — Concept Stage
A personal robotics build exploring automation, sensing, and mechanical precision through a classic game: chess.

The Idea

I’ve always loved projects that sit at the intersection of mechanical design, control systems, and playful interaction.

And I love chess. But I’m not very good.

The goal here is to build a fully autonomous chessboard that can detect where every piece is and move them using an XY gantry, much like a compact CNC machine.

PPCC Logo And win games against my friends that I cant beat. For a full an comprehensive look at all the friends I can’t beat check out Prospect Park Chess Club another of my projects.

Concept Sketch Pieces will be embedded with RFID tags or small magnets, and the board will use reed switches or Hall sensors arranged in an 8×8 grid to detect their presence.
The robot will handle everything from opening moves to checkmates — with the human opponent just sitting back and watching the system beat them. Probably with Stockfish.


Project Goals

  • Detect all 64 board positions automatically
  • Move pieces precisely using a 2-axis gantry and gripper
  • Integrate computer vision or engine-based move logic later
  • Learn about sensor multiplexing, embedded control, and motion planning
  • Keep the aesthetic of a normal chessboard — not a lab bench robot
  • AS MANY GOOGLY EYES AS POSSIBLE

Design Overview

Abandoned attempt to train a tortoise to play chess Since I was forced to abandon my attempts to train a tortoise to play chess, I will have to build a robot instead, since my cats are not interested.

The robot will use a CNC-style XY gantry with an end effector that slides over the board surface. Each square will be equipped with some kind of sensor, wired in a matrix or multiplexed configuration to minimize pin count. Currently investigating the pros and cons of reed switches RFID tags and hall effect sensors. I may also revisit my chess computer vision algorithm, but we’ll call that a stretch goal (as is the post about it).

Sensor Comparison: Reed vs. RFID vs. Hall Effect

FeatureReed SwitchesHall Effect SensorsRFID Sensors
Detection TypeMechanical magnetic switch (open/close)Solid-state magnetic field detectorPassive tag + active reader antenna
OutputDigital (binary on/off)Digital or analog (field strength & polarity)Digital ID from tag
CostVery low (~$0.05–$0.20 each)Low-moderate (~$0.30–$0.80 each)High (reader + tag per square)
Wiring ComplexitySimple matrix scanningRequires power & signal linesComplex (multiple readers or multiplexing)
Power ConsumptionNone (passive)Continuous draw (3.3–5 V)Moderate (RF field generation)
Durability / LifespanMechanical wear over time (≈10⁶–10⁷ cycles)Essentially infinite (no moving parts)Excellent (no contact)
Response SpeedSlow-moderate (1–2 ms)Very fast (µs)Moderate (10–100 ms)
Polarity SensitivityNone (any magnetic pole triggers)Can detect polarity and magnitudeNot magnetic-based
Noise / InterferenceImmune to EMICan pick up magnetic noiseSusceptible to RF coupling/interference
Ease of IntegrationEasiest (GPIO grid or mux)Moderate (requires calibration & power rails)Difficult (protocol handling, antenna tuning)
Unique IdentificationNo (only position detected)No (but analog value possible)Yes (unique ID per tag)
Best Use CaseSimple piece detection, early prototype boardsHigh-speed sensing or polarity-encoded piecesDistinguishing specific pieces or research demos
Main DrawbackFragile glass capsule, binary onlyNeeds continuous power, sensitive alignmentCost and wiring scale poorly

🧠 Summary

  • Reed switches: ideal for first prototypes — simple, cheap, and reliable enough for static piece detection.
  • Hall sensors: excellent upgrade path — durable, precise, and polarity-aware once power distribution is in place.
  • RFID: powerful for unique piece identification, but wiring, power, and cost make it best for advanced versions.

At this stage I’m prototyping the grid using Raspberry Pi Pico microcontrollers, each handling one section of the board and communicating position data to a Raspberry Pi 5 over serial or I²C.

The plan is to modularize it so that we can test the various different sensors. My bet right now is on the Hall sensors.


Inspiration

Commercial products like DGT Boards and open-source builds have proven the concept, but I want something more engineering-first: a platform that’s not only fun but also extensible for research in localization, path planning, and human-robot interaction.

The mechanical side — building a precise but affordable gantry — is just as interesting as the software. I’m borrowing techniques from CNC design, 3D printer kinematics, and my experience with motion planning to make the movement smooth and deterministic.

I also run one of the largest chess clubs in Brooklyn as mentioned above, and it would be cool to be the only one with a chess robot.


Current Status

Right now, the focus is on:

  • Testing sensor arrays and multiplexing options
    • Build Bill of Materials (BOM) for tests
    • Order Parts
    • Assemble and test
  • Validating sensor strength and detection distance
    • RFID
    • Hall effect
    • Reed switch
  • Planning the mechanical envelope for the gantry and frame
  • Modeling the board layout in CAD

Next Steps

  • Build a 3×3 (maybe bigger?) test section with real sensors
  • Design modular PCBs for sensor arrays
  • Prototype end effector with electromagnet and Z-axis lift
  • Maybe start with a CNC plotter design?
  • Integrate with chess engine (Stockfish) for full automation
  • Explore ROS2 interface for motion planning and visualization

Future posts will go into the details — electronics, wiring diagrams, PCB layout, and control firmware.
For now, Bert has some company in the workshop.

← Back to Projects

This post is licensed under CC BY 4.0 by the author.