week 12

Piano Tiles: Hand and Foot Rhythm Game

1. Concept

I’m building a two-input rhythm game that connects an Arduino button  (4 hand + 4 foot buttons) with a p5.js “Piano Tiles”

Goal: Hit falling tiles in time to the “Crazy Frog” melody.
Win: Complete the entire pattern before running out of lives.
Lose: Lose all 3 lives by hitting the wrong side (hand vs foot) or missing too many tiles.

2. Arduino to p5 Communication

-Inputs and Outputs

Inputs (Arduino): 8 buttons

Pins 2–5: “hand” buttons
Pins 6–9: “foot” buttons

Outputs (Arduino to p5):

On each press, Arduino sends a single integer ‘1…8’ over Serial:

3. Progress to Date

Arduino:

Wired 8 buttons with external pull-downs on pins 2–9

p5 Sketch detects presses and sends 1–8 over Serial

p5.js:

Created menu/info/song/difficulty screens with custom images
Implemented serial reading + tile engine + hit logic + lives/score UI
Integrated “Crazy Frog” sample playback and game over logic

Next Steps:

Fill out the full 44-step Crazy Frog pattern for a complete song

Leave a Reply