Skip to the content
2 layers83.7 × 50.9 mmCNChess KiCad, the printed circuit board in 3D

Automated Chess System

Size
83.7 × 50.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
32
Nets
40
Pads
111
Tracks, vias
307, 83
Pours
70
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
13 Jan 2026
Updated
3 May 2026

Overview

CNChess KiCad is an open-source printed circuit board by LepTho2233127, from the LepTho2233127/CNChess repository on GitHub, published under the GPL-2.0 licence. It is a 2-layer board of 83.7 × 50.9 mm with 32 parts on 40 nets, routed with 307 tracks and 83 vias.

It is built around the ESP32-C3F. Its parts include 6 resistors, 5 connectors, 4 capacitors, 4 diodes and 3 switches. It belongs with the ESP32 and RISC-V boards of this library.

Main components

1

README

README.md

CNChess - Automated Chess System

Automated chess board for playing against chess engine. For more information concerning the hardware needed visit the wiki Image (4)

IMG_8428 (online-video-cutter com) (2)

Get Started for Software Development

1. Clone project

text
git clone <REPO_URL>

2. Install Ubuntu WSL (only if on windows)

Instructions

3. Open WSL inside project folder

4. Install docker

bash
sudo apt update && sudo apt upgrade

Instructions

5. If on WSL, give access to USB port to WSL

bash
winget install --interactive --exact dorssel.usbipd-win

[!IMPORTANT] Run the following commands as admin in PowerShell. You also need to keep a WSL active

PowerShell
usbipd list
usbipd bind --busid 4-4
usbipd attach --wsl --busid <busid>

In WSL, check if you see the device you just attached

bash
lsusb

6. Build docker image

bash
sudo docker compose build

7. Give docker access to window

bash
xhost +local:docker

8. Run code

bash
sudo docker compose run cnchess

9. Close docker (or ctrl-c)

bash
sudo docker compose down

[!NOTE] If you are on a Linux operating systems, it is possible to not use Docker by following this procedure

1. Install Stockfish at default location

bash
sudo apt update
sudo apt install stockfish
which stockfish

[!IMPORTANT] If path obtained when running which command is not /usr/games/stockfish, you need to change it in CNChess.py file manually

2. Install Python libraries

Inside CNChess directory run :

bash
cd python
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

3. Run the project

With right hardware, run this command in python directory with virtual environment activated

bash
python main.py

If no camera or serial port is detected, you might need to change it respectively inside Cam.py or Communication.py.

Documentation

Additional software documentation is available and generated using MkDocs docs. Run mkdocs build inside project directory to build it. Located inside docs_build directory, open in a browser to access it.

Parts

32
QtyValueFootprintReferences
3270Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_HorizontalR2, R3, R5
20.1uFCNChess_footprints:CAP0_1uC1, C2
21000uFCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC3, C4
247kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_HorizontalR4, R6
2DriverCNChess_footprints:TMC2209TMC1, TMC2
2MountingHoleMountingHole:MountingHole_3.2mm_M3_PadH1, H2
11000Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_HorizontalR1
112V LEDConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalD1
13V3 LEDConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalD2
1Barrel_JackCNChess_footprints:BarrelJack_HorizontalJ1
1ESP32C3CNChess_footprints:Esp32-C3U1
1FanConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ5
1LSW1Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalSW1
1LSW2Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalSW2
1Motor1Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ2
1Motor2Connector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ3
1OOSWConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalSW3
1Power_RegulatorCNChess_footprints:Reg_12VU2
1ServomotorConnector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ4
1TP12VTestPoint:TestPoint_Pad_D1.5mmTP1
1TP5VTestPoint:TestPoint_Pad_D1.5mmTP2
1TPSW1TestPoint:TestPoint_Pad_D1.5mmTP3
1TPSW2TestPoint:TestPoint_Pad_D1.5mmTP4
1XConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalD3
1YConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalD4

Similar boards

  • 2 layers168.9 × 123.3 mmOEM ECU, the printed circuit board in 3D

    OEM ECU

    aeonSolutions/AeonLabs-AI-Volvo-MKII-Open-Hardware

    Volvo MKII Open Hardware

    296 parts161CC0-1.0
  • 2 layers40 × 40 mmTiny slime, the printed circuit board in 3D

    Tiny slime

    gorbit99/tiny-slime

    A tiny and cheap module based SlimeVR tracker design

    12 parts42MIT
  • 2 layers40.3 × 75.7 mmMusiq player hardware, the printed circuit board in 3D

    Musiq player hardware

    bytecod3/MusiQ-Player

    An MP3 player clone built on ESP32

    64 parts7
  • 4 layers50 × 46 mmInternet radio speaker, the printed circuit board in 3D

    Internet radio speaker

    sini6a/internet-radio-speaker

    An open-source ESP32 Internet Radio Player with simple programming, USB charging, and on-the-go capability using a single-cell Li-ion battery.

    72 parts5GPL-3.0
  • 2 layers62 × 30 mmECG, the printed circuit board in 3D

    ECG

    NguyenThanhHuy-debug/PCB_IoT-Heart-rate-ECG-Monitoring-Device

    The PCBIoT-Heart-rate-ECG-Monitoring-Device repository provides open-source hardware design files for an IoT-enabled electrocardiogram (ECG) and heart-rate monitoring device.

    100 parts4
  • 4 layers14 × 44 mmTraffic light, the printed circuit board in 3D

    Traffic light

    fabiobaltieri/traffic-light

    45 parts3
  • 2 layers57 × 22 mmAERIS Breakout Board, the printed circuit board in 3D

    AERIS Breakout Board

    Alexander-T-Moss/AERIS

    Open-source air quality monitor built around an ESP32 microcontroller, SEN55 module and custom breakout board.

    10 parts1GPL-3.0
  • 2 layers43 × 50 mmEsp pmsa, the printed circuit board in 3D

    Esp pmsa

    neggles/esp-pmsa

    Makefile uses Jan Mrázek's KiKit, which I cannot recommend enough, and therefore has to be available on your system.

    28 parts1CC-BY-SA-4.0

Questions

How big is the CNChess KiCad PCB?

It measures 83.7 × 50.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the CNChess KiCad use?

32 parts, built around the ESP32-C3F. 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 CNChess KiCad KiCad files?

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

Can I use the CNChess KiCad design in my own project?

Its repository publishes it under the GPL-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).