Instructables

Tic Tac Toe Machine

Picture of Tic Tac Toe Machine
SAM_5530.JPG
This is a simple machine that plays tic tac toe. It was made mostly form dead electronics, like a printer and a DVD reader.
How it works: First we have to put our mark, it is a black square of cardboard, then by pushing a button we send the information that we are ready (if you want the machine to star just press the button without putting any piece). The the machine scans the board using Ir light witch will not be reflected over our piece. The the machine goes to the last step we it decides where put its mark and the cycle repeats until it detects a winner.

 
Remove these adsRemove these ads by Signing Up

Step 1: Stuff you need

Basically you just need a dead printer and a dead DVD reader. The motor witch works with the cartridges in the printer and the one witch works with the laser in the DVD reader have to be bipolar steppers motors, so be sure of that.
The plastic parts where taken from the plastic of the printer, be sure to find some straight sheets a cut them from there.

Step 2: Electronics

Picture of Electronics
tateti.PNG
I choose the PIC 16F628A for the micro controller for this project and the L298D as the driver for all the motors, the DC one and the two steppers.
I didn't make a custom PCB, I reused the PCB from a previous ible and completed it with a protoboard, I will upload the files for the custom PCB when I finish it.

Step 3: Base

Picture of Base
SAM_4291.JPG
SAM_4314.JPG
SAM_4298.JPG
SAM_4301.JPG
SAM_4311.JPG
SAM_4310.JPG
SAM_4314.JPG
SAM_4317.JPG
SAM_5442.JPG
SAM_5450.JPG
SAM_5448.JPG
The cartridge tray of my printer was the only part made of metal and it was pretty easy to took it out.
Once out I removed the cartridges and cut the platform in order to make it flat, here is where the board will rest.
Finally add two pieces of plastic in the borders for stabilization.
Great project, nice recycling. Could you speed up the checking code by finishing the check sequence as soon as a new piece is found as there will only be one new piece each turn.
Arlekin851 year ago
Buen trabajo amigo... para jugar solitario :) Saludos desde Chile
rimar20001 year ago
Solo cinco palabras, Bruno: ¡IM PRE SIO NAN TE!
brunoip (author)  rimar20001 year ago
Muchas gracias rimar!