Pi Chess Board
readymag.website
readymag.website
> The Pi Board is an advanced automated chess system powered by a Raspberry Pi, utilizing an XY stepper motor mechanism and magnets to move chess pieces seamlessly across the board. The development process involved several key stages, including precise calibration of stepper motor coordinates, calculating the weight of each piece for accurate handling, integrating a robust chess engine, and optimizing piece-grabbing strategies and movement detection. Special attention was given to selecting the most efficient algorithm to minimize the stepper motors' power consumption.
Is there a reason for the marketing speech? I'm assuming most people interested in this would rather read engineering speech, like so:
> The Pi Board, as the name suggests, uses a Raspberry Pi under the hood to calculate engine moves from <Stockfish? Leela Zero?>, and move the pieces with a series of stepper motors and magnets. We spent a significant amount of effort minimizing power consumption, including weighing the individual pieces to get more efficient grabbing and moving motions for each one.
You can turn off the power when you're not moving it, assuming it doesn't need to hold anything in its place (like in this application).
E.g. https://www.allegromicro.com/-/media/files/datasheets/a5984-... describes how its current control in general works for this stepper motor driver in page 9 (certainly not using the same current always) and in page 12 how to use its ENABLE signal to control FETs and SLEEP to further reduce power usage.
> I much prefer reading something that is imperfect but written by a human to something auto-generated. That feels as if we someone would say "I'm busy, talk to my agent instead."
""
Section 2 has the words "Mars Science Laboratory" (the official name of the Curiosity Rover) printed vertically to the right for no discernible reason.
It's almost as if this were a patchwork of content from multiple sources, maybe glued together by an LLM.
It's hosted on a free hosting platform with no chain of custody. The author is only known as "Tamerlan". Why wouldn't an engineer have their own blog for a project like this?
Although it seemed like the author had other issues with using an electromagnet here (i.e. overheating / switching polarity).
Polishing the last 20% of functionalities will take him a lifetime. Maybe other chess/robotic enthusiast could join him to accelerate some border cases.
chess.com happily took regium's money to advertise their scam to their audience.
It eventually got kicked off kickstarter, and then kicked off some other kickstarter clones before self hosting their own kickstarter clone website. That was a wide ride. searching youtube for "regium chess board" will get a few hits.
Pi board looks like a fun project that I'm sure will be refined over the years.
I’ve thought of:
- RFID. Have 64 antennas and multiplex them to detect which piece is on which square (idk much about RF so this felt tough)
- Vision with a fiduciary mark under each piece, and an acrylic board
- Hall effect sensors, where instead of knowing which piece is which, it instead assumes the normal starting position and pays attention to which square was picked up from and which square was placed onto to infer which piece moved.
I think with any of these approaches it’d be fun to make a tiny, single-PCB board.
I did a project [0] a few years back that did this absolute encoding for senet, since there is only one type of figure and two players so just flipping the magnetic field worked really well once calibrated. I still need to make a proper writeup/video on that thing one day...
The professional-level boards by DGT use RFID and retail for about $500.
I looked into building a competitor some time ago. 64 RFID antennas alone would have eaten up that budget. I believe they do something smarter like having 8 antennas and arbitrating the signals. They have some patents in this area.
I've seen Hall effect and barcode-based systems too. They've always been a bit less reliable than DGT. Actually DGT is not all that reliable: if you are broadcasting a 20-player tournament you will need to manually update the broadcast around once per round. However I think the position detecting (hardware side) is solid and they could do with improving the move detection in software.
None of this is meant to deter you from building this as a hobby project! I think all the approaches would be fun to try.
Maybe use 6 different frequencies (one for the white King, one for white pawns, and one for the rest of white, and similar for black) to make it easier to handle moves that affect more than one piece.
The moves that involve more than one piece are captures (one piece of each color), castling (one King and one Rook), and pawn promotion (one pawn, one piece of the same color that the pawn promotes to, and possibly one piece of the opposite color if the pawn captures during the promotion).
There's also a really neat solution that involves a matrix of wires, one for each row and column, and then running a current through the wires. The pieces then each interact with the current in a unique way producing a signal. You then do some clever stuff to figure out all the pieces that are on a given wire. Cheaper than RFID, and you don't need a sensor for each square and can do some multiplexing. I think it possibly uses magnets in the pieces? You can tell electronics is my strong point!
Plus, you'd be able to move the pieces off the board when they're captured.
(But practically, yeah, what you linked is probably what would be required, otherwise I don't know if it could support it own weight.)
Could a hefty reverse magnetic pulse launch captured pieces off the board? And maybe with some precision by controlling the offset and power?
Sometimes an interesting idea is best left unimplemented.
It's kinda funny to see just HOW MANY of these automated chess things exist... it's like people really do want the physical experience while still playing "with" someone. As I'm guessing OP will discover, the devil with this is in the details, and getting all of the last mile mechanics to work quite right is probably a huge pain to truly be able to seamlessly play against the opponent with the pieces moving automatically.
Surely the "actual" answer to this is some robotic arm with good enough camera work? All the things that make this hard -- the pieces not being placed perfectly, the knight jumping / or pieces that are being captured in really crowded places gets theoretically solvable with that approach. Of course then you have a huge issue with the engineering precision on the grabber and camera lol.
The most interesting bit was probably near 1:50 where the pawn moved sideways.
Holy hell!
Also for those interested in auto-moving chess boards, see the Go Chess project:
https://www.indiegogo.com/projects/gochess-most-powerful-che...
It takes a different approach: 1-4 "robots" under the board moving pieces around - with the goal of being able to reset the board or setup a position super-quick!
1. How do captured pieces get removed? 2. How to handle pieces that move through other pieces (knights, castling)? 3. How to promote a pawn?
I have never seen these solved in something that is not awkward and neither seems to be the case here.
2. Personally I thought this implementation demonstrated this pretty reasonably both with castling and with moving the knight. He kinda "cheats" in that his squares are pretty large compared to the pieces, so the jumping piece can just travel /between/ ranks and files. Seems pretty nice to me.
A lot of them can't handle "contingent movements" where you need to displace piece X but in order to do so, you first have to displace piece Y, and then rewind the stack to restore the original pieces positions.
The second video where they demonstrate the actual gameplay footage exhibits some of these problems with this board, e.g. pieces that are displaced don't seem to re-center automatically, etc.
Side note: there are some typos in the last header :P
"knight Movemetns and Casstle?"
I wonder if another mechanism altogether could work a bit better -- a matrix of electromagnets embedded under the board, with a resolution of say 1/4", so that when deployed in sequence, they could move the pieces from one magnetic field to another and another, without any actual moving parts involved.
A standard chessboard has squares of 2-2.5”, so this would require at least 4096 electromagnets.
There was a kickstarter [1] for such a design a couple years ago. The conclusion in the chess community was that the kickstarter was a fraud [2] (with faked videos) and such a board would not be commercially feasible.
[1] https://www.kickstarter.com/projects/soontech/regium-automat...
[2] https://lichess.org/@/lichess/blog/regium-extraordinary-clai...