Automated Chessboard.
An autonomous physical chessboard merging tactile craftsmanship with an under-board CoreXY electromagnetic gantry, 64-sensor reed switch tracking, and embedded Minimax intelligence for screen-free gameplay.

Physical Computing & Screen-Free Chess
Playing digital chess on smartphones and computers offers endless matchmaking and deep engine evaluations, yet it entirely eliminates the cognitive, tactile, and deliberate presence of a physical chessboard. Conversely, standard commercial electronic chessboards often either cost thousands of dollars as luxury novelties or merely illuminate LEDs—forcing human players to manually pick up and move the opponent’s pieces.
The Automated Chessboard bridges this divide. It is a completely autonomous electromechanical system that brings digital chess opponents directly into the physical world. Hidden beneath a handcrafted wooden board, a dual-axis belt-driven gantry guides an electromagnetic carriage that silently couples with magnetized pieces above, sliding them effortlessly between squares as if moved by an invisible hand.
The system operates seamlessly across two distinct operational modes:
- 01.Human vs. Computer: The player moves physical pieces. The board automatically detects the move via embedded magnetic sensors, passes the state to an onboard Minimax AI engine with Alpha-Beta pruning, and physically drives the electromagnetic gantry to execute its countermove in real time.
- 02.Human vs. Human: Tracks two physical players move-by-move, validating move legality, detecting illegal moves, flagging checks via the under-square LED matrix, and logging game history.
Mechanical Engineering & CNC Gantry
The physical motion system relies on a precision under-board XY table engineered to deliver whisper-quiet, rapid, and backlash-free 2D motion across the entire 8×8 playing surface.
Standard Cartesian plotters place a stepper motor directly on the moving carriage, introducing significant inertial mass that causes vibrations, resonance, and sluggish direction changes. To avoid this, the Automated Chessboard employs a CoreXY kinematic architecture. Both NEMA 17 stepper motors remain completely stationary on the outer aluminum frame, driving two continuous loops of 6mm GT2 fiberglass-reinforced timing belts through precision ball-bearing idler pulleys.
When both motors rotate in the same direction, the carriage moves along the X-axis ($X = A + B$). When they rotate in opposite directions, the carriage translates along the Y-axis ($Y = A - B$). Rotating a single motor causes clean 45-degree diagonal motion. This decoupled configuration dramatically lowers moving mass, enabling silky-smooth acceleration and precise positioning beneath the board.
Fig. 03Belt-Driven Gantry Assembly
Dual-belt transmission routing and linear motion carriage positioned beneath the playing field.
Fig. 04Sub-Surface CNC Gantry Carriage
Electromagnetic trolley and carriage riding along the cross-axis rail on precision V-wheel rollers.
Fig. 02Isolated Belt-Driven CNC Frame Assembly
Rigid 2020 V-slot aluminum extrusion chassis with 90° corner brackets forming the structural bed.
Fig. 05Primary GT2 Idler Pulley Assembly
Corner idler pulley bracket with dual shielded ball bearings for smooth GT2 timing belt travel.
Fig. 06Secondary Pulley Mount & Belt Tensioning
Close-up perspective of the secondary idler pulley mount and belt tension retention clamp.
Fig. 07Mechanical Bill of Materials
The structural BOM consists of five standardized 2020 V-slot aluminum extrusions (two 345mm, one 315mm, one 350mm, and one 395mm) connected via ten 90-degree corner gussets. Eccentric spacers on the trolley carriage allow sub-millimeter adjustment of wheel friction.
Fig. 08Chess Pieces Magnetic Coupling & Glides
Standard Staunton wooden pieces were modified by drilling cylindrical recesses into each base to seat axially magnetized N52 neodymium disc magnets. Felt glides were applied to dampen mechanical chatter and achieve low friction against the board surface without tipping.
Sensory Grid & Embedded Circuitry
An automated chessboard must track the physical state of every square without requiring clunky overhead cameras that suffer from lighting variances and hand occlusions. The solution engineered here relies on an under-board grid of 64 hermetically sealed magnetic reed switches.
Each switch is positioned exactly beneath the center of one of the 64 squares. When a magnetized piece rests on a square, its magnetic field pulls the internal ferrous reeds into contact, completing the circuit. Lifting a piece breaks the circuit instantly, triggering an interrupt-driven state change in the microcontroller firmware.
To monitor 64 switches without exhausting microcontroller GPIO pins, the switches are organized into a row-column matrix routed through CD74HC4067 16-channel analog/digital multiplexers with 1N4148 anti-ghosting isolation diodes. A state machine polls the entire 64-square matrix in under 5 milliseconds with software debouncing, registering lifts, drops, captures, and illegal moves with 100% determinism.
Fig. 09Hermetically Sealed Magnetic Reed Switch
Macro view of the glass-encapsulated magnetic reed switch used for tactile piece-presence sensing.
Fig. 108×8 Reed Switch Matrix Grid Wiring
Coordinate row/column matrix wiring with anti-ghosting isolation diodes routed under the 64 squares.
Fig. 11LED Matrix & Controller Wiring Schematic
Detailed electrical schematic outlining the interconnections between the microcontroller, A4988 motor driver boards, N-channel power MOSFET (controlling the 12V electromagnet coil), limit switch homing inputs, and the addressable WS2812B under-square LED matrix.
Fig. 12Hardware Bench Integration
Physical test-bench setup validating electromagnetic coupling through varying board thicknesses (1.5mm acrylic vs. lacquered wood) and measuring stepper current draw under microstepping loads.
Minimax Engine & Seam-Safe Pathfinding
The software intelligence driving the chessboard integrates two primary algorithms: an embedded Minimax engine with Alpha-Beta pruning for game reasoning, and a seam-boundary kinematic pathfinder for obstacle-free physical piece motion.
In a classical game tree, exhaustive search evaluates O(b^d) nodes—an impossible computational load for microcontrollers. By implementing Alpha-Beta pruning, the engine keeps track of two thresholds (α, the best score the maximizing player is assured of, and β, the best score the minimizing player is assured of). Whenever a branch is identified where β ≤ α, that entire subtree is pruned immediately without further exploration. This effectively halves the branching factor exponent, cutting evaluation complexity to O(b^(d/2)) and enabling the engine to comfortably search 3 to 5+ ply ahead in sub-second compute windows.
Fig. 13Minimax Decision Tree Hierarchy
Algorithmic decision tree visual representing recursive minimax state exploration for chess play.
Fig. 14Minimax and Alpha-Beta Tree Pruning Architecture
Branch pruning schematic showing how sub-optimal branches are eliminated to exponentially speed up search depth.
Half-Step Seam Boundary Pathfinding Solver
In a physical chessboard, a piece cannot be dragged straight through an occupied tile without knocking down adjacent pawns and rooks. Standard software engines assume pieces can jump or phase through space; physical robotics cannot.
To resolve this physical constraint, a specialized Seam-Boundary Motion Planner was developed in C++. Rather than translating pieces along square centerlines, the gantry first jogs the target piece by +0.5 square pitch onto the tile boundary seam (the narrow line dividing rows and columns).
The piece is then translated safely along these intermediate boundary channels before making a final 0.5-pitch lateral adjustment into the center of the destination square. In capture scenarios, the victim piece is first routed to an off-board graveyard gutter before the attacking piece executes its movement.
Final Assembly & Live Actuation Demo
Fig. 15Completed Prototype Assembly & Enclosure
Fully integrated automated chessboard prototype with wooden playing surface, chassis, and electronics. The structural chassis is enclosed in a precision wooden housing that maintains a rigid, calibrated 1.5mm air gap between the sub-surface electromagnet carriage and the underside of the playing tiles.
High-Resolution Photographic Gallery

Completed Automated Chessboard & Architecture Collage
High-level overview showing the handcrafted wooden playing top, live piece positions, under-board CoreXY gantry mechanism, and electronic control integration.

Isolated Belt-Driven CNC Frame Assembly
Rigid 2020 V-slot aluminum extrusion chassis with 90° corner brackets forming the structural bed.

Belt-Driven Gantry Assembly
Dual-belt transmission routing and linear motion carriage positioned beneath the playing field.

Sub-Surface CNC Gantry Carriage
Electromagnetic trolley and carriage riding along the cross-axis rail on precision V-wheel rollers.

Primary GT2 Idler Pulley Assembly
Corner idler pulley bracket with dual shielded ball bearings for smooth GT2 timing belt travel.

Secondary Pulley Mount & Belt Tensioning
Close-up perspective of the secondary idler pulley mount and belt tension retention clamp.

All-Parts Hardware Bill of Materials
Comprehensive bill of materials including extrusions, corner brackets, steppers, pulleys, fasteners, and wiring.

Chess Pieces Magnetic Base Modification
Preparation of wooden chess pieces with embedded N52 neodymium disc magnets and low-friction felt glides.

Hermetically Sealed Magnetic Reed Switch
Macro view of the glass-encapsulated magnetic reed switch used for tactile piece-presence sensing.

8×8 Reed Switch Matrix Grid Wiring
Coordinate row/column matrix wiring with anti-ghosting isolation diodes routed under the 64 squares.

LED Matrix Controller Wiring Diagram
Schematic diagram detailing microcontroller connections, addressable LED data lines, driver stages, and power rails.

Workbench Integration & Calibration Testing
Hardware prototyping and sensor bench calibration on the electromechanical assembly table.

Minimax Decision Tree Hierarchy
Algorithmic decision tree visual representing recursive minimax state exploration for chess play.

Minimax and Alpha-Beta Tree Pruning Architecture
Branch pruning schematic showing how sub-optimal branches are eliminated to exponentially speed up search depth.

Completed Prototype Assembly & Enclosure
Fully integrated automated chessboard prototype with wooden playing surface, chassis, and electronics.
Verified Technical Specification Matrix
| Subsystem | Component / Architecture | Engineering Metric & Specification |
|---|---|---|
| Kinematics & Motion | CoreXY Dual-Belt Transmission | Stationary dual NEMA 17 steppers (1.8° step angle); GT2 6mm timing belts; decoupled motor inertia |
| Structural Chassis | 2020 V-Slot Aluminum Extrusions | Rails: 345mm (×2), 315mm (×1), 350mm (×1), 395mm (×1) assembled via 10× 90° corner brackets |
| Carriage & Bearings | V-Wheel Rollers with Eccentric Spacers | Zero mechanical backlash on linear grooves; dual shielded ball bearing idler pulley assemblies |
| Sub-Surface Actuator | 12V DC Electromagnet | Switched via N-channel power MOSFET with flyback diode; calibrated 1.5mm air gap through board surface |
| Chess Piece Prep | Magnetized Staunton Wooden Set | Embedded axial N52 neodymium disc magnets sealed with low-friction felt glides (friction coeff < 0.15) |
| Sensing Matrix | 64× Magnetic Reed Switches | Hermetically sealed NO contacts in an 8×8 grid; CD74HC4067 multiplexers with anti-ghosting diodes |
| Visual Feedback | WS2812B Addressable RGB LEDs | Under-square illumination indicating source, destination, capture alerts, and check warnings |
| Decision Intelligence | Minimax Search + Alpha-Beta Pruning | Lookahead depth: 3–5+ ply; static piece-square tables; O(b^(d/2)) pruned computational complexity |
| Collision Avoidance | Seam-Boundary Kinematic Solver | Translates pieces along 0.5-pitch square borders; clears captured pieces to off-board discard ranks |
| Power Infrastructure | Dual-Rail DC Distribution | 12V 5A main bus for steppers & electromagnet; regulated 5V bus for microcontroller, logic & LEDs |
Open-Hardware Inspiration & Reference Guide
This electromechanical project draws technical design inspiration from the renowned open-hardware build “Automated Chessboard” by Greg06 on Instructables. Greg06's tutorial established the feasibility of under-board CoreXY electromagnetic actuation for physical chessboards.
Note: The Instructables article is cited as the foundational maker-community reference for the mechanical concepts, component dimensions, and actuation principles implemented in this portfolio case study.
Read Original Instructables Guide