an mbed tile music game using a capacitive touchpad and uLCD
Dependencies: SDFileSystem mbed wave_player
You are viewing an older revision! See the latest version
piano tiles game
Overview¶
This mbed mini-project creates a game called “Piano Tiles”, where the user has to tap on the black tiles while avoiding the white tiles. Each correct tap results in a musical tone played, and in quick succession plays famous song Fur Elise. The score is measured on the speed of the player. For more info on this game check out: https://en.wikipedia.org/wiki/Piano_Tiles and you can also play an online demo here: https://scratch.mit.edu/projects/21596393/
Hookup Guide¶
The mbed to different device hookups are shown below:
uLCD-144-G2¶
mbed | uLCD Header |
---|---|
VU = 5V | uLCD Header |
Gnd | Gnd |
TX=P28 | RX |
RX=P27 | TX |
P30 | Reset |
MPR121 I2C Capacitive Touch Sensor¶
mbed | Touch Keypad | Pullups |
---|---|---|
Gnd | Gnd | |
P9 | SDA | 4.7K |
P10 | SCL | 4.7K |
P26 | IRQ | |
Vout (3.3 V) | Vcc |
SDFileSystem¶
mbed | SDFileSystem |
---|---|
P8 | CS |
P5 | DI |
Vout | Vcc |
P7 | SCK |
Gnd | Gnd |
P6 | DO |
CD |
Speaker¶
mbed | TPA2005D1 | Speaker | Potentiometer |
---|---|---|---|
Gnd | Pwr - | ||
Vout (3.3 V) | Pwr + | ||
P21, P18 | In+ | ||
Out + | + | ||
Out - | - | ||
Vol | plug |