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.
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
mbed | touchpad | pullup resistors |
---|---|---|
Gnd | Gnd | |
p28 | SDA | 4.7K ohm - from p28/SDA to Vout (not in series!) |
p27 | SCL | 4.7K ohm - from p27/SDA to Vout (not in series!) |
p26 | IRQ | |
Vout (3.3v) | Vcc |
Adafruit Bluetooth
mbed | Adafruit BLE |
---|---|
Gnd | Gnd |
VU(5v) | Vin |
nc | RTS |
Gnd | CTS |
p14 (Serial RX) | TXO |
p13 (Serial TX) | RXI |
uLCD
mbed | uLCD Header | uLCD cable |
---|---|---|
5V=VU | 5V | 5V |
Gnd | Gnd | Gnd |
TX=P9 | RX | TX |
RX=P10 | TX | RX |
P5 | Reset | Reset |
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.