ECE 4180 - Simon: A Memory Game
Overview
This cookbook details a small memory game, based on the 90's toy 'Simon'. For a some nostalgia, there is provided a youtube video advertising the old game.
https://www.youtube.com/watch?v=LkxXefb6YEo
For those who don't know, Simon played a random pattern of colored lights and sounds which the player had to repeat by pushing the corresponding buttons. As the player successfully completes the sequence, the level is complete and the game adds another element. As levels are completed difficulty is increased as there are more elements in the sequence.
The code written for this game was developed in C++ using the mbed cloud compiler.
Demonstration
As a demonstration of our game in action, a video has been recorded to show the game being played.
Hardware
Item | Pushbuttons | LEDs |
---|---|---|
Quadrant 1 | p25 | p7 |
Quadrant 2 | p26 | p9 |
Quadrant 3 | p23 | p8 |
Quadrant 4 | p24 | p6 |
Item | Pin |
---|---|
Power Transistor | p21 |
uLCD | tx p28, rx 27, rst 29 |
Volume Pot | p19 |
Voltage Analog In | p18 |
Picture of Our Implementation
The hardware that was used for this project included.
- NXP LPC1678 mbed microcontroller - powered via USB
- Analog Loudspeaker - Including a driver circuit comprised of a transistor to boost current levels to increase speaker volume.
- uLCD-144-G2 128 - 5 connections.
- 4 Uniquely Colored LEDs - Our colors used were green, red, blue, and yellow.
- 4 Pushbuttons - for user input.
- Potentiometer - Utilized for volume control.
Below is the wiring diagram of the entire project. In order to replicate this project correctly, it is important to note the pin crossovers that exist in the four quarters. The diagram exhibits these unsequencialities.
Code
To check out the projects code, the link for importing the code is below.
Import programSimon
Simon: A Memory Game
Please log in to post comments.