ECE 4180 Lab 4 "Revenge of the Mouse"
Overview
Simple game modeled after the 1991 game "Rodents Revenge". The goal of the game is to trap the cat (yellow square) with out being touched by it.
Components
- Mbed Microcontroller
- Analog Joystick
- Class D Amplifier
- Speaker
- uLCD-1.44" LCD Display
Circuit
- uLCD
LCD pin | Mbed Pin |
---|---|
+5V | VU |
RX | p10 |
TX | p9 |
GND | GND |
RES | P11 |
- Class D Amplifier
mbed | TPA2005D1 | Speaker |
---|---|---|
gnd | pwr - (gnd), in - | |
Vout | (3.3V) or 5V pwr + | |
p26 | (any PWM or D/A) | in + |
out + | + | |
out - | - | |
Any DigitalOut px(optional) | S (low for shutdown) |
- Joystick
Joystick pin | Mbed Pin |
---|---|
+ | 3.3V |
- | GND |
U | p22 |
D | p23 |
R | p21 |
L | p24 |
C | P25 |
Program
Import program4180lab4
Revenge of the Mouse
Please log in to post comments.