Mancala Game w/ Touchpad, UART Bluetooth, and uLCD

Mancala

Created by Daniel Loo and Darshawn Patel

Description

For our project we made a Mancala game that uses a MPR121 I2C Capacitive Touch Sensor, Adafruit Bluefruit LE UART Friend, and a uLCD-144-G2 128. Mancala is a two player turn based board game. The objective is to take turns and try to get the most marbles in ones own goal pit. The players take turns selecting one of their pits to move marbles from. When picked, the selected pits' marbles are picked up and moved in a counter clockwise, dropping one marble for each pit passed.

/media/uploads/dloo3/img_2379.jpg

Controls

Player 1 uses the touchpad to choose their pits (pads 1-6). Each pad corresponds to a pit and player 1 chooses one pit with marbles each turn. Player 2 uses a bluetooth connected phone and pads 1, 2, 3, 4, up (5), and down (6) to choose their pit.

Parts

x1 Touchpad: https://developer.mbed.org/users/4180_1/notebook/mpr121-i2c-capacitive-touch-sensor/
x1 Adafruit Bluetooth: https://developer.mbed.org/users/4180_1/notebook/adafruit-bluefruit-le-uart-friend---bluetooth-low-/
x1uLCD: https://developer.mbed.org/users/4180_1/notebook/ulcd-144-g2-128-by-128-color-lcd/
x1 smartphone
x2 4.7k ohm resistors

Pin Connections

Touchpad

mbedtouchpadpullup resistors
GndGnd
p28SDA4.7K ohm - from p28/SDA to Vout (not in series!)
p27SCL4.7K ohm - from p27/SDA to Vout (not in series!)
p26IRQ
Vout (3.3v)Vcc

Adafruit Bluetooth

mbedAdafruit BLE
GndGnd
VU(5v)Vin
ncRTS
GndCTS
p14 (Serial RX)TXO
p13 (Serial TX)RXI

uLCD

mbeduLCD HeaderuLCD cable
5V=VU5V5V
GndGndGnd
TX=P9RXTX
RX=P10TXRX
P5ResetReset

Code

Libraries/Demos

uLCD: https://developer.mbed.org/users/4180_1/code/4DGL-uLCD-SE/
Bluetooth: http://developer.mbed.org/users/4180_1/code/MPR121_Demo/
Touchpad: https://developer.mbed.org/users/4180_1/code/SerialPassthrough_LPC1768/


Please log in to post comments.