Skip to content

swift502/MagChess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagChess

Magnetic chess game interpreter and PGN exporter for the Lego Traditional Chess Set. Game PGNs can be copied to clipboard or uploaded as Gists via Github CLI.

Software

Setup:

pip install -r requirements.txt
rpi_install.sh

Run:

rpi_run.sh

Desktop shortcut

[Desktop Entry]
Type=Application
Name=MagChess
Icon=/home/pi/Documents/Github/MagChess/app/assets/icon.ico
Exec=/home/pi/Documents/Github/MagChess/app/rpi_run.sh
Category=Game

Autostart config

mkdir -p ~/.config/autostart
nano ~/.config/autostart/magchess.desktop

Hardware

The PCB in kicad/pcb is designed to fit a modified underside of the lego chessboard construction found in bricklink_studio/chessboard.io.

The PCB needs the following components soldered onto it:

  • 64x SS49E
  • 4x CD74HC4067
  • ADS1015
  • MP1584EN

Each lego chess piece has to be fitted with a magnet on the bottom. Round 5x2mm magnets happen to fit perfectly into the bottom of each piece.

Magnet polarity is important, if white pieces read magnetic north, black pieces should be flipped and read south. The hall sensors will then read colors as positive/negative voltage, which gives the app enough information to interpret chess moves correctly.

The app should be installed on a Raspberry Pi. The chessboard draws 5V and GND from the pi. Data pins are the I2C SDA and SCL pins and four mux selection pins, by default D21, D20, D16 and D12. An estimated 800mA is drawn by the hall sensors when powered.

About

Magnetic chess game interpreter and PGN exporter for the Lego Traditional Chess Set

Topics

Resources

License

Stars

Watchers

Forks