DEV Community

Cover image for Automated AI Live size Chess board
Vidhyanshu Jain
Vidhyanshu Jain

Posted on

Automated AI Live size Chess board

My Project

For my last project in my college life I wanted to do something Big, So I decided that I will work on something mechanical that has AI. Then the Idea to build a chessBoard that can move on it's own is a pretty good idea. And I was very happy with the results that I had achieved

Demo Link

https://www.youtube.com/watch?v=LfeKGcBt76M

Link to Code

https://github.com/MFOSSociety/Automate-AI-Chess

How I built it

TO build this board we had used lead screws steeper motors and aspberry pi to move the lead screws into an X and Y motion. This mechanism is pretty similar to the mechanism used by 3 printers. 3d printers have 3 motors and 3 lead screws to move in x,y and z dimensions.

But for a chess board we only needed 2 dimensions. And on the cross section of the lead screws we attached our electromegnet to it. We used raspberry pi to the the motors and the AI logic of the chessboard.

Then we scraped for materials such as wwood and all finally creating the chess enclosure. The chess pieces had magnet stuck underneath them, that when came into contact of electomagnets caused them to move along the board.

Additional Thoughts / Feelings / Stories

This was my first IOT project to be honest I had never made anythng with a pi. So while trying to make the stepper motors work with the pi I burned 3 motor drivers.
It was a very fun project as I got to do AI, woodWork, IOT all at the same time.
And with this project I realized the importance of precision.
If you clearly see the board you can see that the chess squares are drwan incorrect. that is becuase the edges of the board are not parallel, there is a difference of 0.5 mm and becuase of this difference I faced a lot of friction, fidgitting and noise in the board.

Final Note

Honestly speaking I believe that the AI for the chess board is not amazing (alpha-beta pruning) it could have been better I didnt focus on it.

Top comments (0)