Skip to content

A music rhythm game designed to run on the Raspberry Pi 3 embedded in a guitar with sensors, which act as a controller.

Notifications You must be signed in to change notification settings

bathwaterpizza/Guitar-Pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guitar-Pi

A music rhythm game made to run on the Raspberry Pi 3 embedded in a guitar with sensors, which act as a controller. Final project for my Programming I (INF1034) course at PUC-Rio, in collaboration with design student Renato Coutinho, and his final project for Physical and logical interfaces (DSG1412).

This is a simple game written using Pygame 2.5, with several optimizations to run smoothly on the RPi3, and a modular code structure which allows it to be easily further developed. Supports keyboard input (Z X C V) if you want to run it on PC, simply change GAME_USEKEYBOARDINPUT to True in the cfg file. Our game window looks like this:

python_nhUKFpYuxH

For hardware, we use four TTP223 touch sensors, a HW-504 analog joystick which acts as the strum bar, and an Arduino Nano as an analog-to-digital converter, since the RPi has no analog inputs. All connected to the RPi's GPIO using jumper wires on a breadboard, which is zip-tied to a toy guitar, as shown below:

20230629_083859

Initial concept drawn on ICAD's whiteboard by game designer Renato:

renato

Playtest by developer Miguel at ICAD laboratory:

Untitled.mp4

About

A music rhythm game designed to run on the Raspberry Pi 3 embedded in a guitar with sensors, which act as a controller.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages