Whack-a-Mole

Members

  • Richmond Sua
  • Kailani Redding

Overview

  • A whack-a-mole game where a user tries to hit a mole that would pop up from random holes.
  • Each player will have to quickly and accurately hit the moles for 30 seconds!
  • A player is rewarded for hitting a mole and penalized for missing the mole or hitting the wrong area.
  • Final score and performance shout-out will be displayed once the game is over.
  • Features a colored LCD display and touch key for input to offer a great user interface.

Components

Pin Setup

uLCD-144-G2 128 by 128 Smart Color LCD

mbeduLCD
VU (5V)5V
GndGnd
p28 (TX)RX
p27 (RX)TX
p30Reset

Freescale MPR121 Touch Keypad

mbedTouch Keypad
GndGnd
p9SDA
p10SCL
p26IRQ
Vout (3.3V)Vcc

Note: Remember to provide two 4.7K ohm pullups to 3.3V on the SDA and SCL of the keypad.

Demo

Program

Import programLab4_Whack-A-Mole_4_final

Whack-A-Mole game created using the mbed, capacitive touchpad, and a vibration motor.

Future Implementation

Sound effects Vibration


Please log in to post comments.