303 points by GordonS 8 months ago | 81 comments
programjames 8 months ago
> 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.
jstanley 8 months ago
metal_am 8 months ago
addaon 8 months ago
_flux 8 months ago
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.
dymk 8 months ago
throw_pm23 8 months ago
alykhalid 8 months ago
throw_pm23 8 months ago
seplox 8 months ago
> 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."
evoke4908 8 months ago
""
RIMR 8 months ago
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?
jihadjihad 8 months ago
mda 8 months ago
dankwizard 8 months ago
gizajob 8 months ago
freetonik 8 months ago
themanmaran 8 months ago
Although it seemed like the author had other issues with using an electromagnet here (i.e. overheating / switching polarity).
sebastiansm 8 months ago
Polishing the last 20% of functionalities will take him a lifetime. Maybe other chess/robotic enthusiast could join him to accelerate some border cases.
SamBam 8 months ago
ekianjo 8 months ago
pavel_lishin 8 months ago
crashbunny 8 months ago
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.
johtso 8 months ago
stevenpetryk 8 months ago
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.
dmurray 8 months ago
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.
thrtythreeforty 8 months ago
stevenpetryk 8 months ago
awfulneutral 8 months ago
moffkalast 8 months ago
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...
tzs 8 months ago
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).
oneseven 8 months ago
johtso 8 months ago
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!
stevage 8 months ago
nojs 8 months ago
rylan347 8 months ago
pavel_lishin 8 months ago
Plus, you'd be able to move the pieces off the board when they're captured.
sitkack 8 months ago
pavel_lishin 8 months ago
(But practically, yeah, what you linked is probably what would be required, otherwise I don't know if it could support it own weight.)
robomartin 8 months ago
https://www.youtube.com/watch?v=ITSXPdfxesU
http://www.chesscomputeruk.com/html/milton_bradley_phantom.h...
twarge 8 months ago
robomartin 8 months ago
lambdaone 8 months ago
Tspace123 8 months ago
jtxt 8 months ago
Could a hefty reverse magnetic pulse launch captured pieces off the board? And maybe with some precision by controlling the offset and power?
II2II 8 months ago
Sometimes an interesting idea is best left unimplemented.
dhosek 8 months ago
jtxt 8 months ago
ChicagoBoy11 8 months ago
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.
dr_kiszonka 8 months ago
beardyw 8 months ago
gmiller123456 8 months ago
bitwize 8 months ago
omoikane 8 months ago
The most interesting bit was probably near 1:50 where the pawn moved sideways.
MarcelOlsz 8 months ago
Holy hell!
davidpfarrell 8 months ago
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!
BlindEyeHalo 8 months ago
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.
inanutshellus 8 months ago
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.
vunderba 8 months ago
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.
darepublic 8 months ago
solarized 8 months ago
jojobas 8 months ago
GianFabien 8 months ago
realslimjd 8 months ago
tantalor 8 months ago
makoto12 8 months ago
TylerE 8 months ago
_flux 8 months ago
noyesno 8 months ago
yunohn 8 months ago
ramon156 8 months ago
Side note: there are some typos in the last header :P
katdork 8 months ago
"knight Movemetns and Casstle?"
tap-snap-or-nap 8 months ago
BiteCode_dev 8 months ago
btbuildem 8 months ago
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.
CrazyStat 8 months ago
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...
residualmind 8 months ago
tristramb 8 months ago
getToTheChopin 8 months ago
8 months ago
alexfromapex 8 months ago
phorkyas82 8 months ago