ECE 4180 - SimonSays

Overview

Simon says is a fun memory game usually implemented with lights.
Here is an example of the game.

We have made a Simon Says game using a joystick and arrows on a uLCD screen. This is slightly different from the usual game because it adds difficulty to the game. Normally players can remember patterns from the LEDs lighting up, but we took that away. Now players need to remember the directions from the uLCD. Part of the reason we chose to just use the joystick and uLCD was to resemble old cell phone games before touch screens became prevalent.

Example

Hardware

/media/uploads/hayden/2n3904.jpg

uLCD pinMbed pin
+5VVU
RXp27
TXp28
GNDGND
RESp29
JoystickMbed pin
+nc
Up25
Cp24
Lp23
Dp22
Rp21
-GND
MicroSDMbed pin
CDnc
DOp6
GNDGND
SCKp7
VCCVOUT
DIp5
CSnc
Mbed pin2N3904Speaker
VU+
p19B
GNDE
C-

Picture of Hardware

/media/uploads/hayden/img_8428.jpg The following hardware was used.

  1. uLCD-144-G2 128 by 128 Smart Color LCD - Visuals/menu for game.
  2. Analog Loudspeaker - Output sounds from the game.
  3. Transistor - Control power to the speaker. Allows mbed to control it.
  4. SD reader - Read in sounds for the game from an SD card.
  5. Joystick - Controller for game.

Code

The program below is the game. Feel free to try it out.

Import program4180Lab4SimonSays

simon says


Please log in to post comments.