ECE4180 LAB4
MBED RHYTHM GAME
Objective
To design a simple game on the mbed microcontroller chip similar to music rhythm games in the market today such as OSU, O2JAMm, or BeatX.
Program Description
In the beginning of this game, a user can choose their music in the beginning and there are 3 .wav files in the SD card. The 4 pushbuttons are used as the input while the music is being played. Since this is a simple game, the node blocks are coming randomly. There is numeric boards that showing the user's score. After 45 seconds of music playing, the game is over. Each hit node gives 1 score point. 5th push button is used for restarting the game.
Wiring
PinOuts
Mbed | uLCD | SDcard | Pushbuttons | Speaker | D Audio Amp |
---|---|---|---|---|---|
GND | GND | GND | GND | in- | |
Vout(3.3v) | +5V | VCC | |||
P13 | TX | GND | |||
P14 | RX | GND | |||
P15 | RESET | GND | |||
P5 | DI | ||||
P6 | DO | ||||
P7 | SCK | ||||
P8 | CS | ||||
P21 | PB5 | ||||
P22 | PB4 | ||||
P23 | PB3 | ||||
P24 | PB2 | ||||
P25 | PB1 | ||||
+ | out+ | ||||
- | out- | ||||
P18 | in+ | ||||
extern+ | pwr+ | ||||
extern- | pwr- |
DEMO
Program
Import program4180_lab4_SEVENTrial
4180 lab4
Please log in to post comments.