back to dashboard
HC Spark Logo
HC SPARK
Case Study & Specifications

E-Chess Smart Board

Hardware + Android Project

A smart chessboard that detects real chess piece movements, guides legal moves using RGB LEDs, and lets you play offline with Stockfish or online on Lichess / Chess.com via Android app.

System Specs

App CategoryHardware + Android Project
Sensors Grid64 Hall Effect Sensors
LED Array64 WS2812B RGB LEDs
MicrocontrollerESP32 Dev Board
Detection Latency< 10ms Real-Time

Compiled Stack

JavaAndroid SDKESP32ArduinoStockfishWebSocketsLichess APIChess.com API
E-Chess Smart Board
🔍Real Piece Detection
💡LED Move Guidance
🤖Offline Stockfish
🌐Online Play
📱Android App

Project Overview

E-Chess is a DIY smart chessboard built using ESP32 and Hall Effect sensors to detect piece positions in real-time. RGB LEDs show legal moves, captures, checks and special animations. The Android app allows offline analysis and online gameplay synchronization.

System Architecture

♟️Chess PiecesNeodymium Magnets
🎛️64 Hall SensorsA3144 Matrix Array
ESP32 MCUShift Registers & LEDs
📱Android AppJava & WebSockets
🌐Stockfish & CloudLichess / Chess.com

Hardware Components

ESP32 Dev Board
64 x Hall Effect Sensors (A3144)
64 x WS2812B RGB LEDs
74HC165 Shift Registers
Neodymium Magnets in Chess Pieces
Li-ion Battery (18650)
TP4056 Charging Module
Custom PCB & Wiring
Custom Hardware PCB

LED Animations & Preset Modes

💡

Startup

Serpentine rail sweep sequence

💡

Move Guidance

Green origin & Cyan destination

💡

Capture

Pulse flash warning on target

💡

Check

Pulsing crimson on King square

💡

Checkmate

Victory flash sweep sequence

💡

Victory

Golden outer stroke matrix glow

Technologies Used

📱

Mobile Development

  • Java
  • Android SDK
  • WebSockets
  • OKHttp Network Client

Embedded Systems

  • ESP32
  • Arduino C++
  • C / C++
  • 74HC165 Shift Registers
♟️

Chess & Communication

  • Stockfish 16 Engine
  • Lichess API
  • Chess.com Connected Board API

⚠️ Challenges

  • Reading 64 sensors in real-time without latency
  • Avoiding false triggers and noise in sensor data
  • Efficient communication between ESP32 and Android
  • Synchronizing online moves with the physical board
  • Power management for long battery life

Key Achievements

  • 100% real-time piece detection accuracy
  • Smooth LED animations & move guidance
  • Offline Stockfish analysis engine integration
  • Online play on Lichess & Chess.com platforms
  • Custom-built hardware PCB & native Android app

Future Improvements

  • Robotic arm for auto piece movement
  • OLED display on physical board bezel
  • Interactive puzzle training mode
  • Voice assistant & tactical move hints
  • Bluetooth + Wi-Fi dual mode switching
Code Access & Guidance Support

Want to build this or acquire the source?

Whether you are looking for the full production source code, circuit schematic diagrams, component list guidance, or custom feature integration, feel free to reach out. We are happy to help you build or customize this project.

HC Spark | Igniting Innovation