I am building an autonomous robot to display openings for chess games on a full-sized physical board. The robot is to be an x-y plotter similar to this mechanism that picks up and moves pieces:
The biggest difference between my robot on this one is that mine will not be interactive. A closed loop and sensorless script will replay a previously determined strategy for both black and white pieces. My device will be completely non-interactive and for demonstration purposes only.
I am very new to coding. I was wondering if there is a reference code available for an x-y plotter that will grab pieces and then move them around the board as told. Additionally, the device is to move them off the board to designated locations when taken by the opponent. The robot is to have one start button and a reset button to move the pieces back to their home locations at the end of the game. The whole point is to review the physical movement for various openings. Ideally, there would be multiple start buttons to show different openings. I would like the code to be coordinate-based and label the coordinates by the chess square title (example: E5).
Please let me know if there is an available code to reference for my project.
There seems to to be a BIG disconnect between this and your statement that you are very new to coding. If you have all the detailed logic in hand, there is no reason for you to not begin coding the program. BUT, do it one step at a time and test each step before continuing.
There might be, for some heavily modified plotter, but the chance that it would work for your x-y plotter is essentially zero. There are no standards for plotter control. In any case, plotters execute move and draw; they are not designed to pick up items and move them around. (That would be a pick and place machine).
What do you have that can reliably pick up a chess piece?
This is an enormous project for a beginner. Start small and get one segment of the project working at a time.
Note that the pieces on the board are significantly smaller than the squares on the board. This is necessary so pieces can be moved between squares without bumping into other pieces.