303 points by GordonS 6 months ago | 81 comments
programjames 6 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 6 months ago
metal_am 6 months ago
addaon 6 months ago
_flux 6 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 6 months ago
throw_pm23 6 months ago
alykhalid 6 months ago
throw_pm23 6 months ago
seplox 6 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 6 months ago
""
RIMR 6 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 6 months ago
mda 6 months ago
dankwizard 6 months ago
gizajob 6 months ago
freetonik 6 months ago
themanmaran 6 months ago
Although it seemed like the author had other issues with using an electromagnet here (i.e. overheating / switching polarity).
sebastiansm 6 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 6 months ago
ekianjo 6 months ago
pavel_lishin 6 months ago
crashbunny 6 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 6 months ago
stevenpetryk 6 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 6 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 6 months ago
stevenpetryk 6 months ago
awfulneutral 6 months ago
moffkalast 6 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 6 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).