Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A low-cost smart chessboard using ESP32 and reed switches that records physical moves to the cloud in real-time. Features PGN export, web-based replay, and Stockfish-powered analysis. Ideal for schools, clubs, and hobbyists.

Notifications You must be signed in to change notification settings

isanidhya/ChessTrace

Repository files navigation

๐Ÿง โ™Ÿ๏ธ ChessTrace: Low-Cost Smart Chessboard with Cloud-Based Algebraic Notation Recording

Project Banner

๐Ÿ“Œ Overview

ChessTrace is a low-cost smart chessboard designed to bring intelligent digital featuresโ€”such as automatic move detection and cloud-based recordingโ€”to traditional physical chess. Built using ESP32 and reed switch technology, this solution enables players to record and analyze games with ease and affordability.

๐ŸŽฏ Key Features

  • ๐Ÿงฒ Magnetic Piece Detection: 98%+ accuracy
  • ๐ŸŒ Real-time Cloud Sync: Via Firebase
  • ๐Ÿ“œ Automatic Notation: Algebraic & PGN generation
  • ๐Ÿ’ป Web Dashboard: For live game viewing & analysis
  • ๐Ÿ”‹ Rechargeable Battery: 8+ hours of portable use
  • ๐Ÿ“ฑ Cross-Platform Access: PC, Mobile, Tablet

๐Ÿ–ผ๏ธ Preview

โœ… Final Product

Final Smart Chessboard Final Smart Chessboard

โœ… Detection Technology

Final Smart Chessboard Final Smart Chessboard

๐Ÿ’ก System Architecture

System Architecture Diagram System Architecture Diagram

๐Ÿ”Ž Web Interface

Web UI Screenshot

๐Ÿ› ๏ธ Tech Stack

Layer Technologies
Hardware ESP32, Reed Switches, Magnets, MUX
Firmware C++ (Arduino)
Cloud Firebase Realtime Database
Frontend HTML, CSS, JavaScript, Stockfish.js

๐Ÿงฑ Architecture

[Chessboard (64 reed switches)]
 โ†“
[ESP32 Microcontroller]
 โ†“
[Firebase Realtime Database]
 โ†“
[Web UI with Stockfish.js for Analysis]

๐Ÿš€ Getting Started

๐Ÿ”ง Hardware Assembly

  1. Solder 64 reed switches to a multiplexer matrix.
  2. Insert magnets into the base of chess pieces.
  3. Connect multiplexers to ESP32.
  4. Enclose board and connect 18650 battery.

๐Ÿ’ป Firmware Setup

  • Install Arduino IDE.
  • Add ESP32 board manager.
  • Upload firmware with Wi-Fi and Firebase credentials.

โ˜๏ธ Firebase Configuration

  • Enable Realtime Database and Authentication.
  • Set up data structure (/users, /games, /moves).
  • Configure rules and paste API key in firmware.

๐ŸŒ Web App Setup

  • Open index.html in your browser.
  • Authenticate and link your board.
  • View and replay games in real time.

โš™๏ธ Hardware BOM (Total Cost โ‰ˆ โ‚น1,850)

Component Qty Price (โ‚น)
ESP32 WROOM 1 450
Reed Switches 64 640
CD74HC4067 MUX 4 200
Neodymium Magnets 32 320
Battery + Charger 1 200
Enclosure (MDF) 1 200
Total 1,850

๐Ÿ“Š Performance

Metric Result
Move Detection Accuracy 98.2%
Cloud Sync Latency < 500ms
Battery Backup 8+ hours
Setup Time < 5 minutes

๐ŸŽ“ Use Cases

  • ๐Ÿซ Schools: For chess-integrated CBSE classrooms.
  • ๐Ÿ† Clubs/Academies: Easy move tracking for coaches.
  • โ™Ÿ๏ธ Casual Players: Review games with friends or analyze with Stockfish.

๐Ÿ”ฎ Future Roadmap

  • ๐Ÿ“Œ Piece Identification via RFID
  • ๐Ÿ“ฑ Companion Mobile App
  • ๐Ÿค– AI-powered Coaching Suggestions
  • ๐ŸŸ๏ธ Tournament Mode with Arbiter View

๐Ÿ‘จโ€๐Ÿ’ป Authors

  • Anuj Jain - 0108IO221009
  • Akshat Jain - 0108IO221003
  • Sanidhya Sahu - 0108IO221053

Under guidance of Prof. Abhishek Mathur
Samrat Ashok Technological Institute, Vidisha (M.P.)

๐Ÿ“ License

This repository is open-source for educational and research purposes only. For commercial use, please contact the authors.

"Bringing smart play to every playerโ€”affordable, accurate, and accessible." ๐Ÿง โ™Ÿ๏ธ

About

A low-cost smart chessboard using ESP32 and reed switches that records physical moves to the cloud in real-time. Features PGN export, web-based replay, and Stockfish-powered analysis. Ideal for schools, clubs, and hobbyists.

Resources

Stars

Watchers

Forks

AltStyle ใซใ‚ˆใฃใฆๅค‰ๆ›ใ•ใ‚ŒใŸใƒšใƒผใ‚ธ (->ใ‚ชใƒชใ‚ธใƒŠใƒซ) /