Picture of Tic Tac Toe Machine
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
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
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.
Arlekin852 years ago
Buen trabajo amigo... para jugar solitario :) Saludos desde Chile
rimar20002 years ago
Solo cinco palabras, Bruno: ¡IM PRE SIO NAN TE!
brunoip (author)  rimar20002 years ago
Muchas gracias rimar!