Bluetooth Controlled mBed Game

Description

This was a game to guess the number of triangles on a randomly generated map. The number would be input from Bluetooth using the Adafruit Bluetooth LE module. Effects and Graphics were accessed using the SDFileSystem library. The game gets more difficult for each round the correct number is identified. The game ends when either a player runs out of time or the number guessed is incorrect.

This project is mostly to demonstrate a simple game and how to process Bluetooth UART input for this purpose.

Future improvements would include other difficulty options, animations for each of the objects on screen, and multiplayer with either multiple bluetooth devices or WiFi connected devices.

Required Hardware:

board

128x128 uLCD Color LCD

https://developer.mbed.org/users/4180_1/notebook/ulcd-144-g2-128-by-128-color-lcd/

SparkFun microSD Breakout Board

https://developer.mbed.org/cookbook/SD-Card-File-System

Class D Audio Amplifier using PWM

https://developer.mbed.org/users/4180_1/notebook/using-a-speaker-for-audio-output/

Adafruit Bluetooth LE

https://developer.mbed.org/users/4180_1/notebook/adafruit-bluefruit-le-uart-friend---bluetooth-low-/

Gameplay Demo

title gameplay

Import programTriangleTrouble

Simple demo of mBed game with UART control via Serial Bluetooth interface


Please log in to post comments.