Skip to content

An arduino script to make a robot play chess with a magnet underneath the chessboard

Notifications You must be signed in to change notification settings

bskdany/ChessMagnetRobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

ChessMagnetRobot

An arduino script to make a robot play chess

Blogpost: https://bskdany.com/posts/chess-robot/

This was my first project in C++ and I did it to help a friend of mine with his high school graduaton project in robotics
There are two rails that move a magnet underneath the chessboard

The script works like that:

  1. a calibration sequence is started to find the limits of the magnet movement
  2. the user gives the arduino a start and a finish square, that input is translated to coordinates
  3. the magnet moves to the start square and takes the chess piece
  4. a pathfinding algorithm chooses a way to move the piece from the start square to the end square
  5. tha magnet releases the chess piece and gets to the starting position

This is the result (yeah we drew the chessboard unevenly)

finalvideo.mp4

This was made in three days after christmas while I was sick from covid, not gonna lie it turned out pretty good

About

An arduino script to make a robot play chess with a magnet underneath the chessboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages