r/ArduinoProjects • • Mar 08 '22

Smart chessboard progress!

283 Upvotes

24 comments sorted by

12

u/TheJollyReaper Mar 08 '22

Think I'm going to need chess pieces with wider magnets, sensors have a pretty small radius. And something that diffuses the led light better

5

u/user_727 Mar 08 '22

Very curious to see the end result, keep us posted!

3

u/geeky-hawkes Mar 08 '22

Interesting, be good to see updates as you go.

1

u/An_Old_IT_Guy Mar 09 '22

You can get some 10mmx1mm 20mmx1mm disc magnets and they should do the job of triggering the hall effect sensors. I design and build escape room puzzles, and that's what I do for stuff like this.

4

u/Unique-Opening1335 Mar 08 '22

semi-trans acrylic instead to blur (diffuse) the light better probably.

so I get the mag/sensors, and using the neopixels to light up the current position.... but how does the real game play work then? Not talking about the RPi/Chess 'brain'.... but talking about game play? Is there supposed to be some sort of 'indicator' that tells you to move the piece to where the Rpi wants it to go? Is this going to be automated in the end somehow? I feel like I missing the bigger/end picture here..

5

u/TheJollyReaper Mar 08 '22

Yeah so once it's fully finished, the LEDs will light up in the checkerboard pattern by default. When it's the board's turn to move, it's going to light up the piece it wants to move, and the square to move it to. (which you have move manually)

Visually I'm basically making this, but with sensors that automatically track the pieces instead of manually needing to input moves https://youtu.be/Z92TdhsAWD4

2

u/Unique-Opening1335 Mar 08 '22

cool.. could have the top layer laser etched with lines/text.. and of course the diffused squares.

Cool project.. and seems like some linear programming as well (which makes it all a bit easier)..

1

u/So-I-Had-This-Idea May 02 '22

Cool. I have been thinking of doing something similar, but with two boards connected remotely. So I could move a piece on my board, and my brother's board 200 miles away would show the move. He'd update his board with my move, then he would move his piece, and my board would show the move. I can't decide if it's worth all of that work, though, when a phone app basically does that already. I'm glad you're giving it a try.

2

u/Padankadank Mar 09 '22

How does it know which piece is which? Or does it just remember how each piece moved and fill in the gaps?

3

u/TheJollyReaper Mar 09 '22

The software assumes the board is correctly setup at the start, so it knows the piece at square e8 has to be the black king, f8 is a black bishop, etc.

So from there it just keeps track of every new move, updating the positions it has saved and remembering which piece is which based on where it started

1

u/Bigben8242 Sep 27 '23

Hi I am doing a similar project for my college. I have a few questions. Can I dm you for help

1

u/TheJollyReaper Sep 27 '23

Yeah feel free! Might not get back to you until much later today or tomorrow but I'll try to answer when I can

1

u/Neopysiak Mar 08 '22

What are the sensors? I heard abou neopixel before, but never really read about it. Does it have sensors build in? Or maybe you have some Reed seitches, or something like Hall effect sensors? Althoigh I don't see any of them here...

1

u/TheJollyReaper Mar 08 '22

If you look closely you'll see hall effect sensors right next to each LED! Easier to see on the bottom strip that doesn't have chess pieces

I used a3144 hall sensors specifically. I thought about Reed switches but heard they can get stuck and be pretty unreliable

1

u/ivoidwarranty Mar 09 '22

I Took apart a broken electronic chess board (one of the original computer chess sets- Fidelity Corp circa 1988) and the position sensor was contact (the pieces had magnets on the bottom, but that was not for Hall effect, but so stick them to a metal base plate under the contacts to close the circuit (several sheets of thin plastic with metal contacts in a matrix). Very simple and tactile.

1

u/TheJollyReaper Mar 09 '22

Fitting username

Thanks for sharing though! Looks really clean

1

u/vivek5a Mar 05 '24

Just shot you a chat!

1

u/microhenrio Mar 09 '22

Good start, It could look good with the diffuser. Also with the sensor centred and the led in a side or ahead the piece will be seen better.

I'm doing something very similar but for an hexagonal board.

https://www.hexentronics.com/en/helvetios/

I'm trying to build the first prototypes but manufacturing cost are too high for me right now, maybe next year.

1

u/edgeofblade2 Mar 09 '22

I think this is a brilliant project. I’ve ordered a certain oft delayed smart chessboard that I won’t plug here, but I’m starting to wish I had attempted a project like this. I’m confident in their final product, but it would have been nice to have the satisfaction of building this myself.

1

u/[deleted] Jun 14 '22

yeee how about just ldr and simple scemw

1

u/eyeoverthink Mar 08 '22

this will be cool , if you have it connected to an app - and can play with a friend.

Don't worry about the pieces, look into open cv or cvzone - you can use python to make an app that uses a camera to show the moves you make to an app, and visa versa with someone else.

cool man. Nice job

I was going to do one, but I over thought it - lol, thus the name.

I was going to try to put the guts of a 3d printed in one to make it move.

Way more complicated than my skill level.

3

u/danlsn Mar 08 '22

Hall effect sensors are a much more elegant solution. There’s a reason the DGT boards are all magnetic!

1

u/eyeoverthink Mar 08 '22

Also, you can use wax paper, under the lights to give it diffusion and help to give you the grid you want.

0

u/[deleted] Mar 08 '22

[deleted]

15

u/TheJollyReaper Mar 08 '22

It's going to have a raspberry PI running a chess engine, so the board can basically play against you

Which I thought sounded pretty fun.

It's also my final project for a college class

Edit: the video is just testing that the sensors and LEDs are working correctly