Tic-Tac-Toe Part-2 ( PIC16F627A )

by simpletronic in Circuits > Electronics

3626 Views, 34 Favorites, 0 Comments

Tic-Tac-Toe Part-2 ( PIC16F627A )

thumb 612.png

This is PART-2 of the Tic-Tac-Toe PIC16F627A project. On PART-1 I described the circuit operation, and the basic program flow. In this new section I will propose a possible "good looking" enclosure build for the device with large back-lit buttons. Here you will also find the links to the PCB, Hex code, Assemby (ASM) code, and the .cdr file for laser cutting the top panel.

PART-1 Video / Instructable

Tic-Tac-Toe Part-1 ( 3 in a row )

PART-2 Video

Tic-Tac-Toe Part-2 ( 3 in a row )

(this Instructable)

Materials

material.png
material1.png
material2.png
material3.png

Basic materials are:

1) Wood moulding for frame (details later)

2) Acrylic buttons (details later)

3) Acrylic top panel (laser cut)

other materials: circuit board, bottom cover, 3 AA cell holders, nuts&bolts, screws, varnish, glue etc.

Wood Moulding

material4.png
mould.png
mould1.png

Cross section dimensions of the moulding for the enclosure frame

Frame Assembly

mould2.png
mould3.png
glue.png
glue1.png

Cut 4 sides of frame at 45° angle on ends. Edge where panel rests should be 142 mm long. Glue parts together and hold in place with masking tape. Verify right angles.

Acrylic Top Panel

top.png
mount2.png
mould4.png

Download .CDR (corel draw) file for laser cutting of top panel. Panel is fastened to frame with 8 wood-screws.

PCB Board to Top Panel

panel62.png
mount1.png
mount3.png

PCB is attached to panel with (4) 1/8" thread, 1.5" length bolts & nuts. Clearance between PCB and panel is 7/8". Use spacers or double nut.

Acrylic Buttons

button3.png

Acrylic buttons are cut from 20 mm diameter transparent acrylic rod. Button length is 20 mm. All faces have a frosted finish for light diffusion, except the bottom face where LED light enters which is polished. Drill a 3 mm diameter & 3 mm deep hole on bottom face to fit the switch stem. Use a little silicone glue if necessary.

Battery Holders

gluebat.png
gluebat2.png

Glue the (3) AA cell holders around the inside of frame.

Bottom Cover

cover3.png

140 mm x 140 mm particle wood.

Game

tic.gif
wake.png
play4.png
play.png

Wake : Press center button. After splash, all buttons flash 3 times with player 1 color.

Reset : Press center button for 2 seconds anytime.

3-in-a-row : Winning pattern blinks. Reset with middle button.

Sleep : Game shuts down after 20 seconds of inactivity.

Links

pc.png

PCBoard & Hex code: https://goo.gl/2WcVBM

Top panel corel CDR: goo.gl/arD1j3

Part 1 video: https://youtu.be/DVL3ryTkjgI