The heart of the project is Microchip's PIC16F627A microcontroller. I have included the links to a PCBoard PDF, components layout guide, Hex code for the MCU burning, and the .ASM source code written with Microchip's MPLAB IDE software. In a future post, I will propose a "good-looking" enclosure with large back-lit buttons.
Quick Tour VideoResourcesLink To PCBoard PDF, Hex code & ASM source code: Download link.
This project is built on a single-sided PCBoard.
Component Placement Guide
Basic Flowchart
Device enters SLEEP (power down) after 20 seconds of inactivity. Pressing the center button wakes the processor and displays a short splash sequence pattern with all LEDs. Finally, 3 blinks indicate the starting color (player). Device can be reset at any time by pressing the center button for 2 seconds. When 3-in-row (winner) is detected, the 3 LEDs will blink continuously while all the rest will turn off. Pressing the center button resets the game and toggles the starting color.
Circuit detailsCircuit diagram
Circuit operation details
18-pin DIL socket recommended.
Breadboard time
I used a piece of wire to emulate the 9 switches. Small board top right is the PIC programmer. If you don't have a dedicated PIC programmer and are an ARDUINO user, you can use it to program the PIC. (search the web)
Gallery
Comments