TIIC 2016 North America: Memory Mismatch


University: University of Texas at Austin
Team Members: Anthony ElHabr, Elizabeth Joy 
TI Parts Used:

  • TM4C123 LaunchPad
  • TLV5616
  • LM4041

Project Description

The motivation behind our project was to design a game that can be enjoyed by all. We decided on a game similar to the classic card game “Memory” that challenges the player to pair cards together. Our implementation of this game called “Memory Mismatch” has a set of 20 cards. Each card has a  The user will pair the cards that have the same geometric shape and color.

The major modules of our system design are time, display, sound, LED, switches, and slide pot. The purpose of the time module is to create the timer needed to inform the user of the time remaining in the game as well as to define timers needed to ensure proper integration of all modules. The display module consists of the LCD screen that depicts the card layout during the game and shows the menu at start up and between games. The sound module includes the DAC, and this module produces sound notifications after the player has chosen 2 cards to indicate whether the cards chosen were a pair or not. The LEDs also indicate to the user whether the selected cards are a right pair. The switches and slide pot allow the user to interact with the system.

Features
  • Color LCD
  • 6 buttons
  • Sound
  • Hours of entertainment!

Resources

Please refer to our class report for our schematic and BOM.

User's Guide

The system resembles the one-player card game that goes by several different names, including “Memory”. In our implementation, we display 20 rectangles on a 5 by 4 grid on an LCD screen. Each rectangle represents a card. The “back” of each card is shown with the color cyan. The “face” of each card shows a colored shape with a white background. There are five different types of shapes: circle, triangle, square, diamond, and parallelogram. Shapes may be blue, yellow, orange, green, blue, red, or purple. The order of the cards is randomized on the grid every time the game is begun again. The game ends when all 10 pairs of cards have been correctly identified and the screen no longer shows any cards, or when the countdown timer reaches 0. The player is given 60 seconds to complete the game.

A sixth external switch can be pressed to start and stop the game. The player can press four external switches to move a cursor vertically and horizontally about the grid. A fifth external switch can be pressed to select a card. After a card is selected its face is shown. The same card cannot be selected twice. If two cards are chosen with the same color and rank, a match is made and the player can continue selecting cards after these cards are removed immediately from the screen; otherwise, the faces of the two cards are shown for one second before they are flipped so that the backs of each are re-shown, and the player can continue selecting cards. Even after a card has disappeared from the screen, the cursor will still be able to move to its “blank” location. Selecting a “blank” location does nothing. When a correct pair is identified, a green LED is flashed and a high-pitched ring is sounded for a second; when two cards that do not match are selected, a red LED is flashed and a low-pitched buzzer is sounded for a second. A yellow LED “heartbeat” alternates between flashing on and off every second. Sound can only be heard through headphones plugged into a headphone jack on the box.

When the system is turned on, a main menu appears on the LCD screen. The main menu has two primary options: “Play Game” and “Change Settings”. When the “Play Game” option is selected, the game described beforehand is initiated. Under the “Change Settings” option are three sub2 options: “Enable Sound?” and “Enable LEDs?” and “Change Card Back Color?”. If the first option is selected, then the current state of the audio (i.e. enabled or disabled) is toggled; if the second option is selected, then the current state of the LEDs (i.e. enabled or disabled) is toggled; if the last option is selected; then an external slide pot can be used to change the card back color.