Chess Robot - Set Up

Are there any python libraries I can import from the AL5d code?

Not a library per se but there are some sample codes:

Python:


Arduino:

PS: @Solomon123 is also working on modifying the code to work with the AL5D so you may want to reach out to him.


I am having a Math Domain Error after the first manual move

Hello @dancrissco!

Did you set the dimensions in inches? If you did make sure it is possible to reach the desired position with the arm.

For reference these are the dimensions I used:

{“baseradius”: 1.77, “cbFrame”: 0.62, “sqSize”: 1.09, “cbHeight”: 0.79, “pieceHeight”: 1.97}

Thanks for your reply Geraldine.
I had my cbframe as 10 inches.
What is cbframe?
I thought it was one side of chess board. My mistake.
Here are my parameters
{“baseradius”: 2.0, “cbFrame”: 10.0, “sqSize”: 1.25, “cbHeight”: 1.0, “pieceHeight”: 1.5}
Regards
Daniel

cbframe means chessboard frame, so in this case, it would be what is marked in red:

Hi Geraldine. It is working now. I made a few chess moves to check it out. Will now work on it to make the movement smooth and repeatable. Once again thanks for the help.

1 Like

@dancrissco We hope you might be up to providing a video of your progress here! Happy it’s working!

image
The chess robot works well for about three moves and then comes with an invalid move announcement.
This happens after I have moved the chess piece. Kindly advise.
Screen shot of the code area is provided. Is this vision related?

A nice way to find out if this is what is happening is by adding some lines to the code you screenshotted to show the "prevIMG and “curIMG”. However, it is most likely that the picture is being taken when your hand is on the chessboard, please make sure that you wait until the robot is resting in its place, make your move, and press the clock when your hand is not on the way.

Let me know if that works :slight_smile:

Thanks Geraldine. I will try that.
Regards
Daniel

Hi Geraldine, the issue is when the robot picks the Bishop or Knight. It misses or topples adjacent pieces.
This causes the invalid move
The picking of pawns is clean. Wondering if I should play with gripper angle or open close?
I think the key now may be to master the robot pick and place.
Any suggestions?

Thanks for the detailed tutorial. Must try someday.

1 Like

Wondering if I should play with gripper angle or open close?

Yes, that’s a good idea.

You could also try making the arm go lower or higher. You can find that part of the code here:

Thanks Geraldine. Will try.

Video - LinkedIn

1 Like

I have posted a video of the Chess Robot in Linkdin. Opened the gripper and it is better now. Still work to be done but happy with progress so far.

1 Like

Appreciate the video! I thought pawns could only move forward by one space?
Someone’s idea of adding magnets underneath seems quite good to re-center each piece.

1 Like

Opened the gripper and it is better now.

Awesome! Looks great with the eyes :smiley:

I thought pawns could only move forward by one space?

They can move two spaces on their first move :slight_smile:

1 Like

Very nice project…!!

1 Like