Hangman
Overview
This project is two player version of hangman. It uses the bluetooth module to allow someone to choose a category and word/phrase for the game. The game is displayed on the LCD screen. The category and word/phrase is at the top and the letters the player can choose from and the letters they already chose are at the bottom. The hangman is on the bottom right corner. The player who is guessing uses the joystick to choose letters. With each correct guess, the letters are filled in. With each incorrect guess, a part of the hangman is drawn. After 6 incorrect guesses, the player loses and is brought to the end screen. If the player guesses the correct letters and fills in the word/phrase, he/she wins.
Components
- uLCD
- Joystick
- Adafruit Bluefruit LE UART-Bluetooth
- Speaker
- Class D Amplifier
- SD Card Reader
Circuit
uLCD
Mbed | uLCD Header | uLCD Cable |
---|---|---|
5V = VU | 5V | 5V |
Gnd | Gnd | Gnd |
TX = P9 | RX | TX |
RX = P10 | TX | RX |
P11 | Reset | Reset |
Joystick
mbed | Sparkfun Nav Switch Breakout |
gnd | - |
p26 | U - up |
p25 | C - center or fire |
p24 | L - left |
p23 | D - down |
p22 | R - right |
VU | + |
Adafruit BLE
Mbed | Adafruit BLE |
---|---|
gnd | gnd |
VU(5v) | Vin |
nc | RTS |
Gnd | CTS |
p27 (Serial RX) | TXO |
p28 (Serial TX) | RXI |
Speaker/Amplifier
Mbed | Amplifier | Speaker |
---|---|---|
gnd | pwr - (gnd), in - | |
Vout (3.3V) | pwr + | |
p18 | in + | |
out + | + | |
out - | - |
SD Card Reader
Mbed | SD Card Reader |
---|---|
p8 | CS |
p5 | DI |
Vout | VCC |
p7 | SCK |
gnd | GND |
p6 | DO |
CD |
Program
Import programHangMan
Hangman game
Pictures and Video Demo
Please log in to post comments.