And how do remove a captured piece from the board?
There would seem to be plenty of room to move pieces past each other on the same square - squares being 36x36mm while pieces are 15m diameter.
So you would need a system to guide pieces past each other while perhaps staying towards one side of a square and the moving pieces staying on the other side. Then you just need to deal with the moving mechanism getting past the wiring for the reed switches.
Maybe having a robot arm pick up the pieces and move them would be less problematic in terms of movement, example:
CrossRoads:
And how do remove a captured piece from the board?
The board having edges, I would move the captured piece on the edges and I would manually remove it.
CrossRoads:
Maybe having a robot arm pick up the pieces and move them would be less problematic in terms of movement, example:
I do have enough space between the pieces to pass a moving piece such as a knight. A robotic arm is a good solution but I'd like to keep the magical aspect of this project.
Does anybody have an idea of which sbs motors chose and how to place pulley on them ?
PaulRB:
How would you make a knight move? It can jump over other pieces.
The squares have a dimension of about 32mm (counting the edges) and the pieces have a diameter of 15mm (I edited my initial post) so a moving knight can pass between 2 other pieces.
I think you could have the reed switches and their wiring, acting as sensors for the pieces, sandwiched between the playing surface and a bottom plate; then the electromagnet that moves the pieces will have a clean surface to move under and not get caught up on wires and reed switches.
I googled drawing robot to find this on Amazon. You could also assemble your own version of one, with the electromagnet raised above the levels of motors and frame.
and the "eleksmaker mana se" card that drives it looks an awful lot like a Nano http://wiki.eleksmaker.com/doku.php?id=eleksmana_se
that could be reprogrammed to accept commands from whatever is playing as the computer to do things like
"go to this position"
"energize magnet"
"go to this position"
"release magnet",
maybe zigzagging along to move bishops, or the queen, or a pawn taking diagonally, or moving twice to remove a captured piece.
CrossRoads:
I think you could have the reed switches and their wiring, acting as sensors for the pieces, sandwiched between the playing surface and a bottom plate; then the electromagnet that moves the pieces will have a clean surface to move under and not get caught up on wires and reed switches.
The price of this (and other) drawing robots goes beyond my budget for this project.
Here is how my system works precisely:
Under the matrix of reed switches, there would be 2 travelling bars with carriages on them (links are at the end of this post). These 2 travelling bars would be parallel (and would take care of the y-axis). On the carriages of these 2 bars, I would place a third travelling bar (that would take care of the x-axis). At the end of the first bar, I would put a step-by-step motor with a pulley on it. I would also put a pulley at the other end of the bar, I would then link these to pulleys with a belt and attach to the carriage the ends of the belt. Like this, I can move my carriage with the sbs motor. As said previously, the third bar is on the 2 other carriages, so 1 is controled by a sbs motor but the other one would be "free" (to avoid an offset between the position of the 2 carriages). The third bar would work like the first (with a sbs motor, pulleys and a belt) to move the carriage with the electromagnet on it. I would then energize or not the magnet to move the pieces.
I think this system is the cheaper I can get for what I want to do. I was thinking of a Mega to control my chess game because the matrix takes 16 pins to control it.
I have no idea of what:
step-by-step motor (that needs to be cheap but enough powerful to move my carriages and take less than 1.5 sec, at least, to pass a square)
Thanks, awesome project but it uses an arm, which is probably more effecient and practical than my magnet system, but I am before everything else trying to give my project a magical effect.
Look for 28BYJ-48 steppers they are small and have decent torque, but they aren't very fast. The plus side is the ULN2003 boards you can find them with are ready to go in 5 minutes. I'm working on a project with them now. Arduino's built in library works well with them, but there are full libraries for them too. CheapStepper is a decent one.
As far as concerns about moving pieces just move them off to one side of the board and for knights program it to move pieces in front of the square out until there is an open path and then move them back. If you want to do that fast I would look at beefier motors. You basically have to weigh size and cost against speed.
One last thing to consider is how you will zero or home everything. anytime you want to store the position of your magnet you'll need to know how many steps you've taken and where you are on the board. Any time you plug in the board your motors won't know where 0 is. You'll need endstop switches or a laser/photoresistor setup. Whenever you trip one of those you'd set a value to 0 so you can always use it as reference like a 3d printer.
You may want to buy most of your parts based of 3d printers because your essentially making one and replacing the extruder with a magnet.
So you have chess pieces with magnets and an electromagnet that will drag a piece 3mm above across the board and it's not going to affect other pieces?
Maybe before building the rest it'd be a good idea to perfect that? You'd only need to magnet a few pieces and can move the coil by hand, saving parts and code and many hours time.
C_Laughrey:
Look for 28BYJ-48 steppers they are small and have decent torque, but they aren't very fast. The plus side is the ULN2003 boards you can find them with are ready to go in 5 minutes. I'm working on a project with them now. Arduino's built in library works well with them, but there are full libraries for them too. CheapStepper is a decent one...
I finally choose Nema 17 as stepper motors, they are a bit more expensive but way more powerful. I will control them with A4988s.
If you wan't more information about the pieces, I choose, take a look a this thread.
Thank you anyway !
PS:
C_Laughrey:
One last thing to consider is how you will zero or home everything. anytime you want to store the position of your magnet you'll need to know how many steps you've taken and where you are on the board. Any time you plug in the board your motors won't know where 0 is. You'll need endstop switches or a laser/photoresistor setup. Whenever you trip one of those you'd set a value to 0 so you can always use it as reference like a 3d printer.
GoForSmoke:
So you have chess pieces with magnets and an electromagnet that will drag a piece 3mm above across the board and it's not going to affect other pieces?
Maybe before building the rest it'd be a good idea to perfect that? You'd only need to magnet a few pieces and can move the coil by hand, saving parts and code and many hours time.
It will not affect the other pieces because their will be more than 3mm between the magnets of the pieces and the electromagnet (at least 6 mm). And I can always put my electromagnet further.
As for putting magnets only on a few pieces, it won't work because I have to record where each piece is at any moment. Maybe I didn't understand your point...
You don't. Only a few to test how a field strong enough to drag 1 piece between others won't affect the others.
It will not affect the other pieces because their will be more than 3mm between the magnets of the pieces and the electromagnet (at least 6 mm). And I can always put my electromagnet further.
Did you test your idea or are you prescient?
The farther below the board the coil is, the more powerful you have to make it and the bigger the field will be.
But tell ya what, it's your time and money so build it up and deal with any problems afterwards. You might as well do the same with the code, write the whole and only then start debugging. Just don't expect me to help, okay?