tic,tac,toe

Posted on 24/02/2013 by screwdriver
Modified on: 13/09/2018
Project
Press to mark as completed
Introduction
This is an automatic import from our previous community platform. Some things can look imperfect.

If you are the original author, please access your User Control Panel and update it.

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 ...


tic,tac,toe

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.

 

Robot arm

 

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.

 

 

Arduino

 

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.

 

Plays "tic, tac, toe"

  • CPU: arduino 328
LikedLike this to see more

Spread the word

Flag this post

Thanks for helping to keep our community civil!


Notify staff privately
It's Spam
This post is an advertisement, or vandalism. It is not useful or relevant to the current topic.

You flagged this as spam. Undo flag.Flag Post