Deal or No Deal Mbed Game
Overview
This project uses the uLCD-144-G2 smart color LCD screen along with an MPR 121 capacitive touch sensor and speaker to create a Deal-or-No-Deal inspired game for mbed. The game begins with a start screen prompting the user to hit the Deal button to begin the game. Once the game has begun, the user pushes uses the grid of capacitive touch buttons to select cases from those displayed on the screen. After selecting five cases, the "banker" makes an offer to the user to purchase their case, which the player can decide to take or decline and keep the mystery contents of their chosen case.
Pictures

Video
Components
- uLCD-144-G2
- MPR 121 I2C Capacitive touch Sensor
- Sparkfun Speaker with Amplifier
- Pushbuttons
- MicroSD breakout board
Circuit
| uLCD Pin | mbed Pin |
|---|---|
| +5v | Vu |
| RX | p28 |
| TX | p27 |
| GND | GND |
| RES | p30 |
| Amplifier | mbed Pin | Speaker |
|---|---|---|
| IN+ | p18 | |
| PWR - | GND | |
| PWR+ | Vout | |
| OUT+ | IN+ | |
| OUT- | IN- |
| Touch Keypad Pin | mbed Pin | Pullup Resistors |
|---|---|---|
| Gnd | Gnd | |
| p9 | SDA | 4.7K ohm - from p9/SDA to Vout |
| p10 | SCL | 4.7K ohm - from p9/SCL to Vout |
| p26 | IRQ | |
| Vout(3.3v) | VCC |
| Pushbuttons | mbed Pin |
|---|---|
| PB1 Gnd | Gnd |
| PB2 Gnd | Gnd |
| PB1 | p11 |
| PB2 | p12 |
Code
Import programdeal_or_no_deal_graphics
Gatech ECE 4180 Lab 4 Deal or No Deal Game -Alex Ferrara -Luke LeFeve
Please log in to post comments.
