Components and supplies
Linear Bearing Block
Medium Density Fiberboard
Arduino UNO
Electromagnet
Steel Rod Stock
Capacitor 100 µF
Acrylic Sheet
Dual H-Bridge motor drivers L298
NEMA 17 Stepper Motor
Stepper motor driver board A4988
Micro Limit Switch
Tools and machines
Hacksaw
Power Drill
Project description
Code
Automated_chessboard
arduino
Code will: *Home magnet with end stops at position A1. *Receive square address (Letter, Number) from Serial Monitor for piece to be moved. *Translate input into number of steps to be completed by stepper motors. *Receive square address (Letter, Number) from Serial Monitor for new piece location. *Turn on electromagnet. *Translate input into number of steps to be completed by stepper motors. *Turn off electromagnet. Notes: *Stepper motors will run simultaneously (during zeroing and moving with the magnet off ) until one reaches its max steps and then the other will continue until it reaches the specified square. *When the magnet is on and moving a piece the steppers initially offset to the corner and moves along the line between squares to prevent pieces interfering with each other. For example, this allows someone to move their knight before moving the pawns in front of it.
Downloadable files
Automated_chessboard_Layout
Board powered from USB cable for all logic devices. Steppers and electromagnet (Solenoid) are powered from external power brick that is 9 volts and max 5 amps.
Automated_chessboard_Layout
Automated_chessboard_Layout
Board powered from USB cable for all logic devices. Steppers and electromagnet (Solenoid) are powered from external power brick that is 9 volts and max 5 amps.
Automated_chessboard_Layout
Comments
Only logged in users can leave comments
zakariyea_
2 years ago
I love this project, it exactly what I was looking for. But I have a question: what happen exactly when a piece took (eat) another piece ?
waifupower
2 years ago
Hello can i ask about the making and building of the project because I have a card time doing it. Can you show how u build the board?
Anonymous user
2 years ago
Can you mention that which stepper motor is X and which is Y in the code by comparing the structure?
Anonymous user
2 years ago
Hello! I really appreciated your project, seeing the pieces on the board moving by themselves. I'm trying to do the same thing, but the game happens between man and Alien (like E.T.). I have a problem; the chess engine loaded on Arduino Mega, sends to your Sketch "Automated chessboard" letter and number together, for example "a2a4" lowercase and all together, instead your Sketch, receives a letter and number at a time and uppercase . How can the string be modified? Serial.print("Piece to be moved letter adress: "); while (!Serial.available()); x1 = readSerialLetter(); Serial.print("Piece to be moved number adress: "); while (!Serial.available()); y1 = readSerialNumber(); Furthermore, if you are interested, I have solved the mechanical problems that you complain, and I also have the chess engine, and many photos. Let me know www.alvaropasseri.it
Mustafiz_mm
2 years ago
How to work on the automated car than is it similar like this ..I actually need to build an autonomous project. Anyone know where I can find such a project??
Anonymous user
2 years ago
ik heb deze schaakcomputer gemaakt en hij werkt zoals het hoort . doch ik heb een probleem . namelijk het volgende als ik een zet doe dan werkt de magneet zoals het hoort , bij de volgende zet werkt de magneet niet , bij de volgende zet weer wel en dit gaat zomaar door dus over andere wel en dan weer niet . ik veronderstel dat dit te maken heeft met de andere speler 1 speler wit en de andere zwart . U zegt dat er een computer is waarop 2 spelers zijn aangesloten ,dit is dus mijn probleem , hoe kan ik 2 spelers aansluiten op dit spel met arduino en een seriele monitor of maak ik hier een fout . wachtend op een gunstig antwoordt dank bij voorbaat m.v.g. remo
Anonymous user
2 years ago
Acrylic Sheet how much urgent... ?
Anonymous user
2 years ago
This is an amazing project and i cant wait to start building my own. one question about it that i had is would it be possible to add a microphone to make it voice controlled and if so how would i go about setting that up?
Anonymous user
2 years ago
Does this project use Big easy diver or easy diver to drive stepper motors? What is the use of Dual H-Bridge motor drivers L298? Please help me, thank you!
maguerero
2 years ago
Thanks! I'm not very familiar with implementing voice control but I did consider using it in a future version of this project. The best way to go about it would probably be using a WiFi or Bluetooth module and connecting to it with your phone or computer which already has voice recognition technology.
Anonymous user
2 years ago
Love it. Thanks for sharing. I also love the games on this site http://bringoldsports.com/. Check it out.
Anonymous user
2 years ago
Can you answer me a question? I want to know why I use the big easy diver and L298 to drive the stepper motor together? Please tell me in detail.Thank you!
Anonymous user
2 years ago
Thank you very much for your help, I understand. I will try my best to make this project complete and as a graduation design for my university in the future, I have already bought the parts and started debugging. Thank you again for your reply, your project is great!
Anonymous user
2 years ago
Thank you for your answer, I understand. But both your schematic and physical images use both A4988 and L298N. Please give me a detailed connection description, for example: STEP-Pin~5, DIR-Pin4. I am very interested in this project, but my personal level is limited, please help me, thank you very much!
Anonymous user
2 years ago
In addition, the electromagnet does not have sufficient suction to attract debris because the article adsorbed by the electromagnet requires a thickness of 8 mm and the electromagnet does not have sufficient suction across the board. How did you solve this problem?
maguerero
2 years ago
I can't think of what the exact pin connections were for the stepper drivers and I disassembled it a long time ago. There are dozens of good tutorials out there for the A4988 drivers that I followed that explain everything way better than I ever could so go check some of those out. I made this project with almost no background in electronics and using online forums and video tutorials for almost every component and the code. Learning by doing (and failing) is most of the fun for things like this. Good Luck : )
maguerero
2 years ago
The electromagnet worked for me because I was powering it with 9 Volts instead of 5. Also, the most important thing is to make the distance between the magnet and metal ball as small as possible. I used an acrylic sheet that was less than 2 mm thick and had the magnet almost touching the bottom side of it.
maguerero
2 years ago
I tried a bunch of different motor drivers but ended up using two A4988 drivers. I used cheap steppers that needed adjustable current limiting to work properly. I tried the L298N and L293D but they would get way too hot because there not rated for the Amp of current I needed for the steppers.
Anonymous user
2 years ago
It would have been better if there was a logic for the code used in this project
Anonymous user
2 years ago
An interesting project, i have seen a similar setup many years ago designed to include a chess computer with LEDs on the edges of the board to indicate the movement of the computer pieces. Also i noticed that the position of the board seems incorrect where the white square should be in the bottom right according to a players position. here is a reference: https://www.chessvariants.com/fidelaws.html 1.2 The chessboard is placed between the players in such a way that the near corner to the right of each player is white.
Anonymous user
2 years ago
A couple of (chained) shift registers should be enough to handle the LEDs. There are only 8 rows and 8 columns. See https://wcrsyyc.github.io/ardx/circ05.html for an example circuit and code. That code is only for standalone LEDs, so would need to be modified to work with 'delay', to be merged with the code that controls the piece positions.
Anonymous user
2 years ago
For the LEDs you could use the MAX7219 to control them combined with a microcontroller here is some information on the IC: https://tronixstuff.com/2013/10/11/tutorial-arduino-max7219-led-display-driver-ic/ As for the Chess computer i think they used a Z80 CPU here is one that i found for inspiration :) https://www.amazon.com/Sargon-Computer-Program-Dan-Spracklen/dp/0810451557
maguerero
2 years ago
Thanks for the heads up and checking out my project! I did notice the corners weren't correct when I was initially setting up the board but didn't think it was worth moving everything around and flipping it for the demo. I'll take better care to check next time. Also, the LEDs on the edges sounds like a cool idea; I just wasn't sure how to go about it without more I/O pins. The computer isn't the second player in the game though (that's way above my current ability), Its actually just two people playing each other sharing the computer. :)
Anonymous user
2 years ago
Hi, what changes do you think would need to be made in order to make it connect to another board somewhere else so you could have a 1v1 match with someone somewhere else?
Anonymous user
3 years ago
ik heb deze schaakcomputer gemaakt en hij werkt zoals het hoort . doch ik heb een probleem . namelijk het volgende als ik een zet doe dan werkt de magneet zoals het hoort , bij de volgende zet werkt de magneet niet , bij de volgende zet weer wel en dit gaat zomaar door dus over andere wel en dan weer niet . ik veronderstel dat dit te maken heeft met de andere speler 1 speler wit en de andere zwart . U zegt dat er een computer is waarop 2 spelers zijn aangesloten ,dit is dus mijn probleem , hoe kan ik 2 spelers aansluiten op dit spel met arduino en een seriele monitor of maak ik hier een fout . wachtend op een gunstig antwoordt dank bij voorbaat m.v.g. remo
Anonymous user
4 years ago
Can you mention that which stepper motor is X and which is Y in the code by comparing the structure?
atpd518
5 years ago
It would have been better if there was a logic for the code used in this project
Anonymous user
5 years ago
Hi, what changes do you think would need to be made in order to make it connect to another board somewhere else so you could have a 1v1 match with someone somewhere else?
Anonymous user
6 years ago
Hello! I really appreciated your project, seeing the pieces on the board moving by themselves. I'm trying to do the same thing, but the game happens between man and Alien (like E.T.). I have a problem; the chess engine loaded on Arduino Mega, sends to your Sketch "Automated chessboard" letter and number together, for example "a2a4" lowercase and all together, instead your Sketch, receives a letter and number at a time and uppercase . How can the string be modified? Serial.print("Piece to be moved letter adress: "); while (!Serial.available()); x1 = readSerialLetter(); Serial.print("Piece to be moved number adress: "); while (!Serial.available()); y1 = readSerialNumber(); Furthermore, if you are interested, I have solved the mechanical problems that you complain, and I also have the chess engine, and many photos. Let me know www.alvaropasseri.it
Jlucky711
6 years ago
hi
Anonymous user
6 years ago
Can you answer me a question? I want to know why I use the big easy diver and L298 to drive the stepper motor together? Please tell me in detail.Thank you!
maguerero
2 years ago
The electromagnet worked for me because I was powering it with 9 Volts instead of 5. Also, the most important thing is to make the distance between the magnet and metal ball as small as possible. I used an acrylic sheet that was less than 2 mm thick and had the magnet almost touching the bottom side of it.
maguerero
2 years ago
I can't think of what the exact pin connections were for the stepper drivers and I disassembled it a long time ago. There are dozens of good tutorials out there for the A4988 drivers that I followed that explain everything way better than I ever could so go check some of those out. I made this project with almost no background in electronics and using online forums and video tutorials for almost every component and the code. Learning by doing (and failing) is most of the fun for things like this. Good Luck : )
maguerero
2 years ago
I tried a bunch of different motor drivers but ended up using two A4988 drivers. I used cheap steppers that needed adjustable current limiting to work properly. I tried the L298N and L293D but they would get way too hot because there not rated for the Amp of current I needed for the steppers.
Anonymous user
2 years ago
Thank you for your answer, I understand. But both your schematic and physical images use both A4988 and L298N. Please give me a detailed connection description, for example: STEP-Pin~5, DIR-Pin4. I am very interested in this project, but my personal level is limited, please help me, thank you very much!
Anonymous user
2 years ago
In addition, the electromagnet does not have sufficient suction to attract debris because the article adsorbed by the electromagnet requires a thickness of 8 mm and the electromagnet does not have sufficient suction across the board. How did you solve this problem?
Anonymous user
2 years ago
Thank you very much for your help, I understand. I will try my best to make this project complete and as a graduation design for my university in the future, I have already bought the parts and started debugging. Thank you again for your reply, your project is great!
Anonymous user
6 years ago
Acrylic Sheet how much urgent... ?
Mustafiz_mm
6 years ago
How to work on the automated car than is it similar like this ..I actually need to build an autonomous project. Anyone know where I can find such a project??
tdawg101
6 years ago
This is an amazing project and i cant wait to start building my own. one question about it that i had is would it be possible to add a microphone to make it voice controlled and if so how would i go about setting that up?
maguerero
2 years ago
Thanks! I'm not very familiar with implementing voice control but I did consider using it in a future version of this project. The best way to go about it would probably be using a WiFi or Bluetooth module and connecting to it with your phone or computer which already has voice recognition technology.
Anonymous user
2 years ago
Does this project use Big easy diver or easy diver to drive stepper motors? What is the use of Dual H-Bridge motor drivers L298? Please help me, thank you!
Anonymous user
6 years ago
An interesting project, i have seen a similar setup many years ago designed to include a chess computer with LEDs on the edges of the board to indicate the movement of the computer pieces. Also i noticed that the position of the board seems incorrect where the white square should be in the bottom right according to a players position. here is a reference: https://www.chessvariants.com/fidelaws.html 1.2 The chessboard is placed between the players in such a way that the near corner to the right of each player is white.
Anonymous user
2 years ago
For the LEDs you could use the MAX7219 to control them combined with a microcontroller here is some information on the IC: https://tronixstuff.com/2013/10/11/tutorial-arduino-max7219-led-display-driver-ic/ As for the Chess computer i think they used a Z80 CPU here is one that i found for inspiration :) https://www.amazon.com/Sargon-Computer-Program-Dan-Spracklen/dp/0810451557
maguerero
2 years ago
Thanks for the heads up and checking out my project! I did notice the corners weren't correct when I was initially setting up the board but didn't think it was worth moving everything around and flipping it for the demo. I'll take better care to check next time. Also, the LEDs on the edges sounds like a cool idea; I just wasn't sure how to go about it without more I/O pins. The computer isn't the second player in the game though (that's way above my current ability), Its actually just two people playing each other sharing the computer. :)
Anonymous user
2 years ago
A couple of (chained) shift registers should be enough to handle the LEDs. There are only 8 rows and 8 columns. See https://wcrsyyc.github.io/ardx/circ05.html for an example circuit and code. That code is only for standalone LEDs, so would need to be modified to work with 'delay', to be merged with the code that controls the piece positions.
masa22
a year ago
Hello, can you please tell me what is the borders of the squares?