Skip to the content
2 layers195 × 160 mmLechess, the printed circuit board in 3D

an early prototyping for smart chess board.

Size
195 × 160 mm
Copper layers
2
Thickness
1.6 mm
Parts
234
Nets
109
Pads
724
Tracks, vias
1,611, 12
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
17 Oct 2024
Updated
17 Oct 2024

Overview

Lechess is an open-source printed circuit board by trandongtruclam, from the trandongtruclam/lechess repository on GitHub. It is a 2-layer board of 195 × 160 mm with 234 parts on 109 nets, routed with 1,611 tracks and 12 vias.

It is built around the A3144, 74HC238D and 74LS151PC, with the WS2812B among its other parts. Its parts include 66 ICs, 66 diodes, 65 capacitors, 11 resistors and 4 switches.

Main components

4

README

readme.md

Lechess

  • An early prototyping for smart chess board.

Please refer to our planning

Hardware block diagram

Figure 1: Hardware block diagram

System Diagram

Figure 2: System diagram

LeChess Functionalities

1. User Authentication

text
Login: Allows users to log in to the app using their credentials (e.g., email and password). The app sends a request to the NodeJS server, which authenticates the user and provides a JWT token.
Register: Allows new users to create an account. The account data (username, email, password, etc.) is stored in the NodeJS server and MongoDB.
Logout: Allows users to log out of the app, clearing their session data.
Password Reset: Enables users to reset their password via email or SMS by sending a request to the NodeJS server.

2. Online Mode (App-Only Mode)

These functions are available when the user is online and connected to the NodeJS server:

2.1. Play with Computer

text
Start New Game: Users can start a new game against a cloud-based chess engine (e.g., Stockfish).
Make Move: Users can make a move, and the app sends the move to the NodeJS server to be processed by the chess engine.
Receive Move: The app receives the move from the chess engine and updates the board.
Offer Draw/Resign: Users can offer a draw or resign during gameplay.
Game Over: Displays the result of the game once it's finished (win/loss/draw), and save pgn to database

2.2. Play with Friend: 2 players

text
Record names of the two players.
Real-Time Move Updates: The app sends and receives real-time moves from the NodeJS server during a multiplayer game.
Game Over: Displays the result when the game is finished, and save pgn to database

2.3. Puzzle Mode

text
Select Puzzle: Users can choose chess puzzles from the server (e.g., checkmate in 2, etc.).
Solve Puzzle: The app displays the puzzle, and users try to solve it by making moves. The NodeJS server verifies whether the solution is correct.
Hints: Users can request hints from the server if needed.

2.4. PGN File Visualization

text
Choose PGN: choose a match from the matches the user played before.
View PGN: The app reads the PGN file and displays the game on the chessboard for the user to review.
Step Through Game: Users can move forward and backward.

3. Bluetooth Mode (Using the Physical Chessboard)

These functions are available when the user is connected to the physical chessboard via Bluetooth and the Flask server on the Raspberry Pi:

3.1. Play with Computer

text
Start New Game: Users can start a new game against a local Stockfish on Raspberry Pi.
Make Move on Physical Board: The physical chessboard detects the user's move and sends the move to the app over Bluetooth.
Receive bot Move: The Raspberry Pi processes the move via the chess engine and sends the bot's move back to the app and the physical board and give the pcb led data to light the move up.
Recommend Move: Moves recommended by the bot will be prcessed to LED data to be lighten up on the board.
Game Over: Displays the result of the game (win/loss/draw) once it’s finished, and save pgn to database.

3.2. Play with Friend (Over the Board)

text
Start New Game: Users can start a new game against a friend on the physical chessboard.
Real-Time Move Detection: The app updates the game state as moves are detected from the chessboard.
Recommend Move: Moves recommended by the bot will be prcessed to LED data to be lighten up on the board.
Game Over: Displays the result when the game is finished and saves the game locally on the app or syncs it to the cloud, and save pgn to database.

3.3. PGN File Visualization

text
Choose PGN: choose a match from a matches list the user have played before using the phone.
Raspberry Pi server processed PGN and output LED data.
User can choose to go forward on their phone, or set an automatic mode to go to next move every certain amount of time.

Parts

234
QtyValueFootprintReferences
640.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC2, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C24 +48
64A3144Package_TO_SOT_THT:TO-92FlatU10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25 +48
64WS2812BLED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmD10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23, D24, D25 +48
15MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4, H5, H6, H7, H8, H9, H10, H11, H12, H13, H14, H15
810kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR4, R5, R6, R7, R8, R9, R10, R11
4SW_PushButton_Switch_THT:SW_PUSH_6mm_H5mmSW1, SW2, SW3, SW4
3TestPointTestPoint:TestPoint_Pad_2.0x2.0mmTP1, TP2, TP3
22.2kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2, R3
2LEDLED_THT:LED_D5.0mmD1, D2
1100Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
12.2uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1
174HC238Package_DIP:DIP-16_W7.62mmU1
174LS151Package_DIP:DIP-16_W7.62mmU2
1BuzzerBuzzer_Beeper:MagneticBuzzer_ProSignal_ABT-410-RCBZ1
1Conn_01x02_FemaleConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ1
1Conn_02x05_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x05_P2.54mm_Verticale1
1RPi_GPIOBoard:raspberry_pi_socketJ3

Similar boards

  • 2 layers137.2 × 88.8 mmGPU SCH, the printed circuit board in 3D

    GPU SCH

    snippyrow/-816-board

    A retro computer motherboard for the W65C816S CPU. Dual-core expandable, 16mb extended memory, four expansion ports.

    67 partsMIT
  • 2 layers76.5 × 109.1 mmRD40 display V1, the printed circuit board in 3D

    RD40 display V1

    lhm0/rotating_display

    A DIY 40 LED rotating display with Arduino nano and ESP-01s microcontrollers

    32 parts71
  • 2 layers95 × 66 mmScan controller, the printed circuit board in 3D

    Scan controller

    CoraBeanz/linescan-hyperspectral-splatting

    A homebuilt pushbroom spectrograph rides a robot arm, and the 3D Gaussian splat it trains stores a full 500–950 nm spectrum in every Gaussian instead of an RGB color.

    28 parts3MIT
  • 2 layers57.1 × 456.8 mmSensors+LEDs, the printed circuit board in 3D

    Sensors+LEDs

    aaronluebbert/ChessLink

    houses code from our Microcontroller Project Lab from Summer 2026 at TTU

    41 parts1
  • 2 layers95 × 95 mmEspac, the printed circuit board in 3D

    Espac

    metehus/espac

    ESP32 AC controller

    82 parts1
  • 2 layers200 × 200 mmChess quadrant, the printed circuit board in 3D

    Chess quadrant

    adeludedperson/smart-chessboard

    DIY smart chessboard: 64 Hall-effect sensors, ESP32, web app with engine + Lichess online play

    50 parts
  • 4 layers51.6 × 42.4 mmLED DisplayV2, the printed circuit board in 3D

    LED DisplayV2

    Aitthikit/POV_Display_PCB

    ที่ 2000 RPM: - 33 รอบ/วินาที = 33 FPS - 240 พิกเซลต่อรอบ - 125 µs ต่อพิกเซล

    105 parts
  • 2 layers90 × 143.5 mmCerradura, the printed circuit board in 3D

    Cerradura

    AndyPecotche/tallerProyectoI

    22 partsBSD-3-Clause

Questions

How big is the Lechess PCB?

It measures 195 × 160 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Lechess use?

234 parts, built around the A3144, 74HC238D, 74LS151PC and WS2812B. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Lechess KiCad files?

From the trandongtruclam/lechess repository on GitHub, at the commit this page was made from: the board is board/board.kicad_pcb and its schematic board/board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Lechess design in my own project?

Its repository states no licence, so its author keeps all rights: ask trandongtruclam before reusing the design.