← Projects

Connected Chessboard

Designing a chessboard that detects where the pieces are and guides the players with light, while keeping the look of a classic chessboard.

The finished connected chessboard: lit squares, pieces in place and the control box with its screen
The final result: the board and its control box (screen and chess clock buttons).

Background

FrameworkSAE (learning and assessment project), 3rd year of the BUT GEII degree

LocationIUT d’Angers

Year2025-2026

TeamLéni Landais and Adrien Michel-Jeannin

SupervisorMr Lucidarme

Provided hardwareAllegro A31301 magnetometers, WS2812B RGB LEDs, FireBeetle ESP32-E microcontroller, 3D printer

Chess is now played as much on a physical board as on online platforms such as Chess.com or Lichess. Connected boards bridge the two: you keep real pieces and gain the benefits of digital play (analysis, help for beginners, remote games). Existing solutions range from a simple connected clock to a robotic arm that moves the pieces.

Our project is the 4th edition of the IUT’s connected chessboard: each year group builds on the work of the previous one. The specifications require four functions:

  • Detect the position of every piece on the 64 squares, without any action from the player.
  • Guide with lighting under each square: possible moves, mistakes, help for learning.
  • Communicate the state of the game to an interface, wirelessly.
  • Stay hidden: the electronics must sit under the playing surface, in a case that fits the build volume of the 3D printer.

64magnetic sensors

192RGB LEDs

162SMD components soldered by hand

4identical boards assembled

Step 1

Building on previous groups’ work

We started by reading the reports of the three previous groups, to understand what had worked, what had stalled and why.

  • 1st group: a web interface for two-player games, using the chess.js JavaScript library to validate moves.
  • 2nd group: a study of the A31301 sensor on a small test board, and a program to drive the LEDs. Main obstacle noted: the sensor is so small that it is very hard to solder by hand.
  • 3rd group: 64 interlocking 3D-printed squares, each with its own electronics, driven by an ESP32. They suggested programming the sensors’ addresses into their EEPROM.

Our choices: keep the proven A31301 sensor, WS2812B LEDs and ESP32. On the other hand, drop the individual squares, which did not meet the expected look and brought no technical advantage.

Step 2

Defining the architecture

Before drawing a single circuit, we set the structure with our supervisor: two circuit boards. The control board, with the ESP32, reads the sensors over I²C and drives the LEDs. The board PCB, the size of the chessboard, carries one sensor and three LEDs under each square.

Block diagram: the control board connected to the four board sub-PCBs
The block diagram, the project’s first deliverable.

Step 3

Prototyping the sensor

First test: the magnetic field vector follows the magnet in real time.

Each piece hides a magnet. The A31301 magnetometer measures the magnetic field on three axes: it detects whether a piece is present, and even its colour.

The sensor comes in three sensitivities (600, 1,400 and 2,000 gauss). We tested all three with the final magnet, at the real height of the board. The most sensitive one, 600 gauss, gave the most reliable detection.

The real challenge: 64 sensors on a single bus

All the sensors share the same I²C bus, four wires for the 64 squares. But each one needs a unique address, and the address pins only offer 15. The solution: write the address directly into each sensor’s EEPROM.

This memory is protected. It has to be unlocked with an access code (0x43 0x55 0x53 0x54, i.e. “CUST” for customer in ASCII), then written through indirect write registers. After several exchanges with the manufacturer Allegro and help from our supervisor, the procedure works.

Step 4

Designing the boards in KiCad

The board PCB: one design, four times

The manufacturer JLCPCB has a minimum order of 5 boards. Rather than throwing 4 away, we split the 24 cm board into 4 identical 12 × 12 cm boards, each with 16 sensors and 48 LEDs. Rotated 90° from one another, their connectors end up face to face, and 0 Ω resistors select the data path.

PCB routing of the board PCB
The routing: 16 squares of 3 cm, each component placed to the millimetre.
KiCad 3D view of a board sub-PCB
3D view of a sub-board.
3D view of the control board with the ESP32

The control board

It holds the ESP32, the two chess clock buttons, the screen connector and the whole power supply. The 192 LEDs can draw up to 11.5 A. Since at most half of them are lit at once, a 5 V 9 A power supply is enough, with a 3.3 V LDO regulator for the sensors.

During routing, the ground plane avoids the ESP32’s antenna, so as not to turn it into a Faraday cage.

Step 5

Manufacturing and soldering

In industry, these components are placed by machines and then reflowed in an oven. The IUT does not have these machines, and outsourcing fell through: one month into the project, the sensors were out of stock at the supplier. So we assembled everything by hand, in three steps:

  1. Solder paste: spread with a spatula through a metal stencil.
  2. Placement: the 162 components placed one by one with tweezers, under a digital microscope.
  3. Reflow: on a hot plate, the solder melts and each component aligns itself on its pads.
Applying solder paste through the stencil
Solder paste, applied through the stencil.
Components a few millimetres in size, placed one by one by hand.
A quarter of the board PCB, with its sensors and LEDs soldered
A finished sub-board: 16 sensors and 48 LEDs.

Step 6

Modelling and printing the case

The board is custom-modelled to the size of the printer (25 cm per side, hence a 24 cm PCB). It consists of a case with inserts and slots for the PCB, a grid that keeps the light within a single square, and a lid held by magnets in the corners. Before printing, a virtual assembly checks that everything fits together.

3D model of the grid that separates the light between squares
The grid, so that each square lights up on its own.
Exploded view: the board PCBs slot into the case.

Step 7

Programming and testing

Software architecture: ESP32, server, screen and Lichess API

The ESP32 is programmed with Arduino (C++). A Python web server, connected over WebSocket, acts as a test bench: it lets us change the configuration, see the detected I²C addresses and follow the values of the 64 sensors live, with detection of white and black pieces.

Eventually, this server should connect the board to the Lichess API to play online on a real chessboard.

Result

The board in action

The assembled board detects pieces being placed and lifted, and lights up squares in colour to guide the player.

In play: lift a piece and the squares respond.
Light shines under each square.
The chessboard with two squares lit in blue to show a move
Squares light up in colour to show a move.

Outcome and next steps

The project consolidated the choices of previous groups and removed their two main obstacles: addressing the 64 sensors, thanks to the EEPROM, and soldering the SMD components, thanks to the stencil and reflow. Work remains for the future:

  • Finish the Wi-Fi web interface: game management, move history, learning modes.
  • Reduce the number of sensors by estimating a piece’s position from the field measured over several squares.
  • Move towards a multi-game board that can adapt to other board games.

Tools used: KiCad (schematics and PCB), Arduino / C++ on ESP32, Python and WebSocket, 3D modelling and printing. PCB and stencil manufacturing: JLCPCB.