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

MbeduLCD HeaderuLCD Cable
5V = VU5V5V
GndGndGnd
TX = P9RXTX
RX = P10TXRX
P11ResetReset

Joystick

mbedSparkfun Nav Switch Breakout
gnd-
p26U - up
p25C - center or fire
p24L - left
p23D - down
p22R - right
VU+

Adafruit BLE

MbedAdafruit BLE
gndgnd
VU(5v)Vin
ncRTS
GndCTS
p27 (Serial RX)TXO
p28 (Serial TX)RXI

Speaker/Amplifier

MbedAmplifierSpeaker
gndpwr - (gnd), in -
Vout (3.3V)pwr +
p18in +
out ++
out --

SD Card Reader

MbedSD Card Reader
p8CS
p5DI
VoutVCC
p7SCK
gndGND
p6DO
CD

Program

Import programHangMan

Hangman game

Pictures and Video Demo

/media/uploads/sreddy47/12596592_454880334711821_23604794_o.jpg /media/uploads/sreddy47/12722272_454884521378069_1732980923_o.jpg /media/uploads/sreddy47/12499554_454880341378487_468552145_o.jpg


Please log in to post comments.