Math Fun

Team Members

  • Tanmay Garg
  • Rushendrar Birudala

Import programMath_Fun

Initial test

Description

We will be creating a FUN math game because math is fun!! The project will include LCD screen, multiple LEDs, pushbuttons, audio/class D amp, the Adafruit Bluetooth module.

This will be a game where the player has to answer math questions correctly in a specified time to win. A video will play on the LCD when initially booting the game. The player can choose a level of difficulty which varies the number of questions and their difficulty for the player to win the game. The question and possible answer choices will pop up on the LCD and using the Bluetooth app the player will be able to choose one of the answer choices. There will be a timer displayed on the top left of the screen indicating the time left to answer the question. The player will have a set number of lives indicated by the LEDs. Once the player reaches 0 lives the game is over. A speaker will play theme music during the entire game.

Scores will be kept track of each game based on number of correct answers and difficulty. The top three scores will be shown gathered from data stored on the SD card.

Demo

Example Screens

Game Display

main

Question

question

Game Score

gamescore

High Scores Display

score

Hardware

Basic Block Diagram

blockdiagram

uLCD-144-G2

uLCD

mbeduLCD HeaderuLCD Cable
5V=VU5V5V
GNDGNDGND
TX=P9RXTX
RX=P10TXRX
P11ResetReset

Sparkfun PCB/Breadboard Speaker

pcb speaker

With Class D high-efficiency audio amp

Class D AMP

mbedTPA2005D1Speaker
GNDpwr- (GNF), in-
Vout (3.3V) or 5Vpwr+
p18in+
out++
out--
p17S(low for shutdown)

LED

RED LED

mbedLED
P16RED
GNDGND
mbedLED
P19RED
GNDGND
mbedLED
P20RED
GNDGND

RGB LED

RGB LED

mbedRGB LED
P21RED
GNDGND
P24GREEN
P23BLUE

Adafruit Bluefruit LE UART Friend

Bluetooth

With Bluetooth Controller

Bluetooth Controller

mbedAdafruit BLE
GNDGND
VU(5v)Vin (3.3-16V)
ncRTS
GNDCTS
p27 (Serial RX)TXO
p28 (Serial TX)RXI

Pushbutton

Pushbutton

mbedPB
P12Vin
GNDGND

Presentation

Slides

https://os.mbed.com/media/uploads/rushib1/4180_new.pdf


Please log in to post comments.