Skip to content

Modified version of picochess to run with reed switch chessboard controlled via Arduino

Notifications You must be signed in to change notification settings

well69/Picochess-nonDGT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Picochess-nonDGT

Modified version of picochess to run with reed switch chessboard controlled via Arduino nano

This system communicates with the arduino over the usb port. It is currently set to run on windows for ease of programming, but it works on raspberry pi by changing the com port for arduino in picoches.py. The arduino scans the switch matrix of the chess board and send messages to picochess based on switch changes. Additionaly it scans 5 buttons to simulate the buttons on a DGT clock, used by picochess for setting engine, mode time etc.

The messages are L:square number when a chess piece is lifted. D:square number, when a chess piece is dropped B:button number when a button is pressed.

newgame:color starts a new game when all pieces are in starting position, and the last piece placed is the color to play.

The arduino can receive from picochess information to light leds on the board They are L:square_number led on F: square_number flash led c:anything all led's off.

The squares are numberd with 0 at botton left.

I added to picochess code to handle these messages, mostly in sensorboard.py, which used keyboard.py as a template. I also added rpidisplay.py, which displays game information, Picochess messages current graphical representation of the board, Level, Time clocks for both players Time control settings

About

Modified version of picochess to run with reed switch chessboard controlled via Arduino

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.0%
  • HTML 8.7%
  • C 8.5%
  • C++ 1.3%
  • Shell 0.9%
  • JavaScript 0.8%
  • Other 0.8%