Greetings, this is my entry to the "tic, tac, toe" robot challenge by Odd-Bot. Moves are made by placing different coloured marbles into a wooden grid. The robots frame is made from 7mm plywood, cut to shape on my scroll saw. Sadly, due to my lack of programming skills, I am using the same algorithm as "rick100" which only allows the robot to make the first move. The robot will always win or tie. My video uploaded to youtube in strangly low quality for unkown reasons , sorry about that.
The robot has a chute that holds its marbles, and two standard servos move the tip of the chute over the playing board. Because I decided it would be to hard to make it move linearly, one servo sort-of skids the other one around allowing the tip to be placed over any place in the board. One micro servo drops the marbles onto the board. There is an infrared reflective sensor underneath the tip of the arm, that allows the robot to detect if there is a marble in a particular space in the board. After the player places their marble, they press a microswitch, and the robot scans the board to find where they have placed their marble, before making its move.
The robot is controlled by a atmega328, with a arduino bootloader,on a home etched pcb. This is the first pcb I have etched, and I am very pleased with the results. The video may be slightly hard to follow, sorry, my video editing skills and time are limited, as my mums trying to get me to go to bed for school in the morning. Three games are played; a win to the robot, a draw, and then another win to the robot.
Edit: just noticed we were meant to post code, so I have added mine.