Docsity

Electronic Memory Game - Hardware Description Notes | ETEC 474, Study Guides, Projects, Research of Engineering

Partial preview of the text

Download Electronic Memory Game - Hardware Description Notes | ETEC 474 and more Study Guides, Projects, Research Engineering in PDF only on Docsity!

Electronic Memory Game

Hardware Description

Jack Sullivan

April 30, 2007 Etec 474 Western Washington University

Introduction Since the mid 1970’s, game makers have taken the children’s game Simon Says into the electronic era in various forms. The first attempt was a memory matching arcade game in 1974. The player had to match tones to buttons that lit in a particular sequence. The arcade game was unsuccessful because the tones were harsh and all the buttons were the same color. A different company eventually improved on the design three years later. This unit was portable, with pleasing tones and color. The new memory game became an instant success and it still popular almost thirty years later. For my senior project, I propose to recreate the electronic memory game.

Hardware Overview The heart of the circuit consists of the microcontroller, the MC9S12DP512. The total unit will require twenty seven I/O’s from the microcontroller. The MC9S12DP was chosen because it has more than enough I/O ports for the memory game to utilize. Ten of those I/O’s will be used as button inputs. Another eight will be used for an LCD screen that will act as the UI for the players. A PWM port will be used with the unit’s audio circuitry to produce sound and the final eight I/O’s are connected to the LED display. The references for the I/O are 5V and ground. The crystal used will be 16MHz, which on top of normal operation, will be divided down using software for the PWM. Power to the system comes from a standard household outlet. It will be converted to 12V using a wall wart and 5V using a voltage regulator. Almost every component in the circuitry will use the 5V source. The only parts of the circuit that use the full 12V source are the audio power amplifier and the common pin on the Darlington Pair chip.

circuit. The output is attached to an 8Ω speaker. Because of standard values, the cutoff frequency will be roughly 19kHz.

LED Display The LED display is simple in design. The IC used for this section is an ULN2803A which is a simple circuit made up of eight Darlington Pairs. Each of their inputs will attach to a pin on an I/O port on the microcontroller (Port T). When the input is activated it will allow the LEDs on the output to light up. The LEDs are connected to the output of the chip, with a pull-up resistor and the 12V supply. The resistors are 576 Ω, allowing the maximum current for each LED to be 20mA, with each LED displaying over 1000mcd. In normal operation, there will be two LEDs associated with each color. For worst-case operation, the maximum output current is 130mA. This occurs when all eight LEDs are on with a 100% Duty Cycle.

LCD Display The LCD is a 2x16 character display. It will operate in 8-bit mode, using 8 I/O pins (Ports A and K). This was done because of extra I/O on the board, and so that data will only need to be written to it once. This display is part of the UI for the players. It will show them what difficulty they can play at as well as how many players can play. During a game, it will display will briefly display what color is active as the LEDs light up. It will also inform players if they have won or lost the current game.

Parts List for the Electronic Memory Game

  • 1 3 Ceramic Capacitor, 0.1μF C9,C10,C Number Qty Description Designator
  • 3 2 Ceramic Capacitor, 10μF C8,C
  • 5 1 Electrolytic Capacitor, 10μF C
  • 7 1 Ceramic Capacitor, 820pF C
  • 9 2 Ceramic Capacitor, 1μF C3,C
  • 11 2 Ceramic Capacitor, 22pF C4,C
  • 13 1 Ceramic Capacitor, 3nF C
  • 15 1 Ceramic Capacitor, 330pF C
  • 17 2 Red LED, 5mm D1,D
  • 19 2 Green LED, 5mm D3,D
  • 21 2 Blue LED, 5mm D5,D
  • 23 2 Yellow LED, 5mm D7,D
  • 25 1 MC34119 Low Power Amplifier IC
  • 27 1 +5V Regulator IC
  • 29 4 LM3915 LED Display Driver IC3-IC
  • 31 1 MAX6314 Low Voltage Reset IC
  • 33 1 16 MHz Crystal X
  • 35 1 1% Resistor, 2kΩ R
  • 37 1 1% Resistor, 4.7 kΩ R
  • 38 1 1% Resistor, 200 Ω R
  • 39 11 1% Resistor, 10 kΩ R2-R10,R21,R
  • 43 8 1% Resistor, 576Ω R11-R
  • 45 1 1% Resistor, 680Ω R
  • 47 1 1% Resistor, 18 kΩ R
  • 49 1 1% Resistor, 3.3 kΩ R
  • 51 10 NC Switch SW1-SW
  • 53 1 Buerklin 8Ω Speaker SP
  • 55 1 MC9S12PD512 μ-Controller U
  • 57 1 LM162, 2x16 LCD Screen LCD
  • 60 1 TL780-05 Voltage Regulator U
  • 61 1 ULA2803A LED Driver U
  • 63 1 MAX6314 Low Voltage Reset U
  • 65 1 MC34119 Low Power Amplifier U
  • 67 1 BMD Connection U