Automated Chessboard
Electromagnet chessboard with sensor grid and AI chess engine.
Project Overview
Electromagnet chessboard with sensor grid and AI chess engine.
Bill of Materials (BOM)
- A microcontroller (Arduino or Raspberry Pi)
- a grid of reed switches or hall effect sensors to detect piece locations
- an electromagnet mounted on a 2-axis gantry system to move pieces
- and a chess engine for AI.
Circuit Diagram & Component Arrangement
Follow the wiring diagram below. Each component connects to specific pins on the microcontroller. Use a breadboard for prototyping and ensure all connections are secure before powering on.
Wiring Summary: The sensor grid is multiplexed and read by the microcontroller to determine the board state. The microcontroller controls stepper motors for the X-Y gantry and an electromagnet to pick up and move the chess pieces based on moves from a chess engine.
Step-by-Step Procedure
- Step 1 - Prepare Components: Gather all components from the BOM. Inspect for damage and verify ratings.
- Step 2 - Breadboard Layout: Place the microcontroller on the breadboard. Arrange components for clear wiring paths.
- Step 3 - Power Connections: Connect VCC and GND first. Ensure proper polarity for polarized components.
- Step 4 - Signal Wiring: Connect sensors and actuators per the wiring table. Double-check pin assignments.
- Step 5 - Upload Code: Connect USB, load the sketch, and upload. Verify serial output if applicable.
- Step 6 - Test & Calibrate: Power on and test each function. Calibrate sensors if needed.
- Step 7 - Enclosure (Optional): Mount in a 3D-printed or custom enclosure for durability.
Safety Notes
- Always disconnect power before making wiring changes.
- Use appropriate eye protection when soldering.
- Adult supervision is required for makers under 16.
- Do not exceed voltage ratings of components.
Manish Bookreader
Electronics enthusiast, Embedded Systems Expert, Linux/Networking programmer, and Software Engineer passionate about AI, electronics, books, and cooking.


