
StockfishChess
Ajakovski/Chess-Master-Board
A chess board that sees every piece, lights every move, and thinks alongside you

A chess board that sees every piece, lights every move, and thinks alongside you
Upper PCB is an open-source printed circuit board by Ajakovski, from the Ajakovski/Chess-Master-Board repository on GitHub, published under the MIT licence. It is a 4-layer board of 288 × 288 mm with 219 parts on 227 nets, routed with 2,885 tracks and 504 vias.
It is built around the APA-102C-NEW. Its parts include 136 ICs and 1 connector. It belongs with the lEDs and displays boards of this library.
Chess Master Board
With the power of electro-magnetism this master board is capable of reading every move that the players are making. The powerfull chip with the built in machine gives us the power of a ~2000 ELO player that computes the best moves within 2 seconds and finally the built in RGB LED matrix sends light signals towards the player with the best move suggestions for you to beat every opponent.
A completely standalone project that requires no external connection gives us the ability to use this board anywhere that we want to. Thanks to the sleep-mode option we recieve a massive battery life extention and we can move on with the game just in case if we decided to pause it.
The chess machine follows every official chess rule and it has included every possible recommendation pattern thanks to the RGB LED matrix. Just put the pieces on their starting squares, press the two buttons for a short period of time and ENJOYYY
Built as an open-source hardware product - every schematic, PCB file and line of firmware is available to reproduce, modify and improve.
Some people (like me :)) want to play the game in real life but seem to lack the power of quick decision making while they lose to their opponent. Ofcourse you can achieve that on your smartphone or a PC with a helper like stockfish but what if you dont want to use your digital hardware for playing the game???
With that issue on my mind i created Chess Master Board with a different concept:
What if the board itself was the computer?
The helping buddy that you need! Hidden inside of the medium sized chess board with just a 5 second double hold on the buttons you awake the mastermind that will help you againts any enemy.
The design is inspired by the tactile satisfaction of phisical chess and will to win your opponents while they struggle for survial:
The project is also an increidible journey into embedded hardware and PCB design for any enthusiast willing to endulge himself into the type of engineering.
Notice: Always follow the order Main→Upper→Clock PCB for assembling the hardware
A visual representation of the whole project has been given with the file:
If you dont prefer via the files you can always refer to the visual representation via OnShape.
Hardware/FULLY_ASSEMBLED_PROJECT.stepNavigate to: (For PCBs)
Hardware/KiCad/Gerbers/Upload the included Gerber files to your preferred PCB manufacturer and order the boards.
Navigate to: (For 3D Model)
Hardware/3D_Printing/ (Both zip files)Due to github memory restrictions they are split into 2 files. G-code Pieces features the black/white collection of pieces ready for printing and the V3 Chess 3D.zip is equipped with the full set of information and g-code files for printing the board. There is also a step version of the files from V3 Chess 3D.zip file, use those also if you need them.
Upload the G-Code files to your preferred manufacturer and order the parts.
The latest version is recommended but if you prefer any older version feel free to use it.
Whether you want to order it trough a PCBA concept or to solder it manually you should refer to the BOM file.
Hardware/BOM.csv
Hardware/Component Libraries.zipAll of the files for the components are placed into a zip file due to memory constraints.
Order all parts before starting your assembly and sort them out because there will be a lot of them.
Considering that you have chosen to solder them personally you should follow the following steps:
Start with the smallest SMD passives before moving to ICs (Refer to the schematic alway before soldering):
Recommended tools:
Solder the power subsystem in order - validate each stage before starting the next:
Verify whether 5V and 3.3V rails are correct before including anything else.
Materials needed for assembling:
Steps for assembling
The main part of the assembling is sticking the magnets in their appropriate places. There are 2 places where they should be placed:
git clone --recursive https://github.com/espressif/esp-idf.git ~/esp/esp-idf
cd ~/esp/esp-idf
./install.sh esp32s3
source ./export.shFollow the official Espressif guide for WIndows and macOS variants.
git clone https://github.com/Ajakovski/chess-master-board.git
cd chess-master-board
cd Firmwareidf.py set-starget esp32s3
idf.py buildConnect via USB-C. If the board does not enter download mode automatically, hold BOOT and tap EN, then release BOOT.
# Linux
idf.py -p /dev/tty/USB0 flash
# macOS
idf.py -p /dev/cu.usbserial-XXXX flash
# Windows
idf.py -p COM3 flashidf.py -p /dev/ttyUSB0 monitorExit with 'Ctrl+]'.
If you are refering from the BOM.csv file please use a converter csv to table because it will be hard for you to read the documentation. And as always you can recall from my githubs BOM anytime you want
| Designator | Function | Value / Part | Package | Qty | Price (USD) | Link |
|---|---|---|---|---|---|---|
| U1 | MCU Module | ESP32-S3-WROOM-2 N32R16V | LCC-54 | 1 | $12 | Mouser |
| U79–U142 | Hall Effect Sensor | AH1806-W-7 | SOT-23 | 64 | $20 | Mouser |
| U6–U13 | Shift Register | 74HC165BQ_115 | QFN-17 | 8(10) | $2.21 | Mouser |
| U14–U77 | Addressable RGB LED | APA102C | SON-6 (5050) | 64(100) | $10.5 | AliExpress |
| U143 | Level Shifter | SN74AHCT125DR | SOIC-14 | 1 | $0.46 | Mouser |
| DS2 | OLED Display | 128×32 2.23" I²C | SSD1305 | 1 | $10 | AliExpress |
| BT1, BT2 | 18650 Battery Holder | Keystone 1043 | THT | 2 | $6.82 | Mouser |
| U3 | Li-Ion Charger IC | BQ24074RGT | VQFN-16 | 1 | $2.48 | Mouser |
| U4 | Boost Converter (5V) | TPS61023DRLT | SOT-6 | 1 | $1.4 | Mouser |
| 1uH1 | Power Inductor | XEL4030-102MEC (1µH) | XEL4030 | 1 | $2.17 | Mouser |
| U5 | 3.3V LDO Regulator | AP2112K-3.3TRG1 | SOT-25 | 1 | $0.25 | Mouser |
| U144 | USB ESD Protection | USBLC6-2P6 | SOT-666 | 1 | $0.63 | Mouser |
| U145, U146 | PTC Resettable Fuse | RUEF300 (3A) | Radial | 2 | $1 | AliExpress |
| TH1 | NTC Thermistor | NTCG103JF103FT1S | 0402 | 1 | $0.11 | Mouser |
| J2 | USB-C Receptacle | USB4110GFA | SMD | 1 | $1.27 | Mouser |
| J1, J3, J4, J7 | Board Connector | Samtec ZF1-15-02-X-WT-X | SMD | 4 | $6.8 | Mouser |
| S3, S4 | Player Clock Button | TL3315NF250Q | SMD | 2 | $0.28 | Mouser |
| SW2 | Boot Switch | Omron B3FS | SMD | 1 | €0.62 | Mouser |
| D1, D2 | Charging LED | Q65111A7377 | 0402 | 2 | $0.92 | Mouser |
| R3, R4 | USB-C CC Resistor | 5.1kΩ | 0402 | 2 | $0.20 | Mouser |
| R5 | Charge Current Set | 800Ω | 0402 | 1 | $0.10 | Mouser |
| R6 | Charge Set | 1.2kΩ | 0402 | 1 | $0.10 | Mouser |
| R7, R107, R108 | Charge Set | 2kΩ | 0402 | 3 | $0.30 | Mouser |
| R8, R11, R13, R35, R36 | Pull / Bias | 100kΩ | 0603 | 5 | $0.50 | Mouser |
| R9 | Pull / Bias | 100kΩ | 0402 | 1 | $0.10 | Mouser |
| R12 | Bias | 750kΩ | 0805 | 1 | $0.10 | Mouser |
| R10 | Current Limit | 330Ω | 0402 | 1 | $0.10 | Mouser |
| R16–R19, R23, 39,40, R43, R44, R45-R106 | Pull-up / Pull-down | 10kΩ | 0402 | 71 | $0.77 | Mouser |
| R34 | Pull-up / Pull-down | 10kΩ | 0201 | 1 | $0.10 | Mouser |
| R14, R15, R22, R24, R25, R30, R31, R41, R42 | Series Damping | 33Ω | 0402 | 9 | $0.9 | Mouser |
| R37 | Voltage-divider | 3.3kΩ | 0402 | 1 | $0.1 | Mouser |
| R38 | Voltage-divider | 6.8kΩ | 0402 | 1 | $0.27 | Mouser |
| C (various) | Decoupling / Bulk | 100nF, 1µF, 4.7µF, 10µF, 22µF | 0402/0603/0805/1206 | 105 | $16 | Amazon |
| C17, C18 | CP_EIA-7343-20_Kemet-V | 100µF | 2917 | 2 | $8.68 | Mouser |
| Neodymium magnets | Circle | N35-N52 | 20x5cm | 32(40) | $20 | Amazon |
| Neodymium magnets | Rectangular | N35-N52 | 5x10x2mm | 6(100) | $7.6 | Amazon |
| BT1, BT2 | Li-ion Battery | 3.7V 3400mAh | 18650 | 2 | $5.76 (I have them) | AliExpress |
| X | FFC Connector | 15-pin | 500mm | 3 | $6.82 | Amazon |
| X | M3 Screws | M3 | 10mm | 50 | $5.5 | AliExpress |
| X | M3 Nuts | M3 | 25 | $3.5 | AliExpress | |
| X | Main PCB | PCBWAY as second alternative | 5 | 70$ | JLCPCB | |
| X | Upper PCB | 5 | 130$ | JLCPCB | ||
| X | Clock PCB | PCBWAY as second alternative | 5 | 58$ | JLCPCB | |
| X | Main Chess Board 3D | 1 | $80 | 3dprintmk | ||
| X | Chess Board Lid 3D | 1 | $15 | 3dprintmk | ||
| X | Buttons 3D | 2 | $7.5 | 3dprintmk | ||
| X | Chess Pieces 3D | 2 | $15 | 3dprintmk | ||
| Mouser Total | $105 | with cargo | ||||
| Amazon Total | $71.79 | with cargo | ||||
| AliExpress Total | $56 | with cargo | without batteries | |||
| PCB Printing | $332 | with cargo | ||||
| 3D Printing | $120 | with cargo | ||||
| TOTAL | approx. $680 |
Notice: Theese shipping costs are for a 3rd world country so if you are from the EU or USA there are high chances of having lower shipping costs
Notice: These are just recommendations that i have found to be secure and hopefully the cheapest option. Do your own research if you think that better deals exist on the current market depending on when you are buying it.
| Subsystem | Component | Description |
|---|---|---|
| MCU | ESP32-S3-WROOM2 | 32MB Flash, 16MB PSRAM, Xtensa LX7 dual-core |
| Sensors | AH1806-W-7 x 64 | Active-LOW hall effect, SOT-23 |
| Sensor Interface | 74HC165BQ x 8 | Parallel-in shift registers, daisy-chained |
| LEDs | APA102C x 64 | Addressable RGB, SPI-compatible, 5V |
| Level Shifter | SN74AHCT125D | 3.3V → 5V for APA102C DATA + CLK |
| Display | 128x32 OLED 2.23' | I²C Interface |
| Battery | Li-Ion 18650 batteries | |
| Charger | BQ2407RGT | Single-cell Li-ion, USB-C input, NTC-monitored |
| 5V Rail | TPS61023DRLT + XEL4030-102MEC | Boost converter for LED chain |
| 3.3V Rail | AP2112K-3.3TRG1 | LDO for ESP32 and logic |
| USB Protection | USBLC6-2P6 | ESD protection on USB-C lines |
| Fusing | REUF300 x 2 | 3A PTC resetable fuses on power rails |
| Firmware | ESP-IDF (FreeRTOS) | C, HAL + state machine architecture |
| Chess Engine | mcu-max | MIT, pure C, negamax + alpha-beta, depth 8 |
The PCB was designed specifically for this project and its layout.
Key design requirements met:
Some pictures may have been deformed in order to adjust their dimensions
Refer to the PDF file for better overview PDF
Sorry for not including every 3D model (2.23" OLED, 2 push buttons and the BQ2407RGT charger). The folders that i managed to find from the web didn't have a 3D .step model
Feel free to change the material type according to your desire but PETG is most recommended for transparency
Firmware features:
Chess-Master-Board/
|--- Firmware/
| |--- main/
| |--- hal/ # LED, sensor, OLED, button, battery drivers
| |--- engine/ # mcu-max integration
| |--- game/ # FreeRTOS state machine + chess rules
| |--- main.c/
| |--- CMakeLists.txt
| |--- partitions.csv
| |--- sdkconfig
|--- Hardware/
| |--- 3D_Printing/
| |--- KiCad/
| |--- BOM.csv
| |--- Component Libraries.zip
|--- Pictures/
|--- LICENSE
|--- README.md
|--- Chess Master Board Zine.pdf
|--- chess-master-board-journal.mdContributions, suggestions and feedback are welcome!!!
If you'd like to improve Chess Master Board:
git clone https://github.com/Ajakovski/chess-master-board.git
cd chess-master-boardFor significant hardware changes, open an issue first to discuss before investing time in layout work. Any new HAL driver must be self-contained in its own .c/.h pair.
If you build one, open an issue with photos.
Hey my name is Andrej and im from Macedonia, Kratovo. Im 17 years old and i really enjoy making cool project which are all posted on my github.
Main focus while building the project:
This project is licensed under the MIT License - see LICENSE for full terms.
Chess engine: mcu-max - MIT License
| Qty | Value | Footprint | References |
|---|---|---|---|
| 64 | AH1806-W-7 | AH1806-W-7:TRANS_SSM3J325F_LF | U100, U101, U102, U103, U104, U105, U106, U107, U108, U109, U110, U111, U112, U113, U114, U115 +48 |
| 64 | APA102C | APA102C:SON160P500X500X140-6N | U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29 +48 |
| 64 | R_0402_1005Metric | Resistor_SMD:R_0402_1005Metric | 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm, 10Kohm +48 |
| 10 | C_0603_1608Metric | Capacitor_SMD:C_0603_1608Metric | 100nF, 100nF, 100nF, 100nF, 100nF, 100nF, 100nF, 100nF, 100nF, 100nF |
| 8 | 74HC165BQ_115 | 74HC165BQ_115:QFN50P350X250X100-17N | U6, U7, U8, U9, U10, U11, U12, U13 |
| 4 | MountingHole_3.2mm_M3 | MountingHole:MountingHole_3.2mm_M3 | DL, DR, UL, UR |
| 2 | C_0805_2012Metric | Capacitor_SMD:C_0805_2012Metric | 1uF, 1uF |
| 2 | C_1206_3216Metric | Capacitor_SMD:C_1206_3216Metric | 22uF, 22uF |
| 1 | ZF1-15-02-X-WT-X | ZF1-15-02-X-WT-X:SAMTEC_ZF1-15-02-X-WT-X | J3 |

Ajakovski/Chess-Master-Board
A chess board that sees every piece, lights every move, and thinks alongside you

Ajakovski/Chess-Master-Board
A chess board that sees every piece, lights every move, and thinks alongside you


Shootingmaker/MIDI-Lighting-Keyboard-teensy
MIDI -> LED Lighting-Keyboard with Teensy3.2



embeddedos-org/eCAD-Hardware-Products
Hardware designs + EE docs + Board datasheets of Multiple products


psychogenic/asic-necklace-pcbs
Schems and PCBs for Matt's awesome ASIC necklace, in collaboration with Adam Zeloof

It measures 288 × 288 mm and has 4 copper layers, 1.46 mm thick.
219 parts, built around the APA-102C-NEW. 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.
From the Ajakovski/Chess-Master-Board repository on GitHub, at the commit this page was made from: the board is Hardware/KiCad/Schematic-PCB/Master Chess Board/Upper PCB.kicad_pcb and its schematic Hardware/KiCad/Schematic-PCB/Master Chess Board/Clock PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).