The Piano HAT adds a full-octave capacitive touch piano to your Raspberry Pi. With 13 touch-sensitive keys, octave controls, and bright LED feedback, it turns your Pi into a compact musical instrument you can program with Python.
Inspired by Zachary Igielman's PiPiano, the Piano HAT uses capacitive touch sensing to detect key presses and can control software synthesisers, output MIDI commands, or trigger custom Python functions for each key.
Key Features
- 16 Capacitive Touch Pads – Each pad can trigger its own Python function
- 13 Piano Keys – A full octave of touch-sensitive keys
- Octave Up/Down Buttons – Shift pitch range on the fly
- Instrument Cycle Button – Switch between synthesisers and sounds
- 16 White LEDs – Light up automatically or control individually via Python
- 2× Microchip CAP1188 Drivers – Dedicated capacitive touch controller chips
- MIDI Output – Use with software synths or hardware synthesisers via USB-to-MIDI adapter
- Fully Assembled – No soldering required
Compatibility
- Raspberry Pi 3B+, 3, 2, B+, A+, Zero, and Zero W
Software
The Python library includes several examples to get you started: a learn-to-play mode where LEDs guide you through songs, a MIDI example for use with SunVox, Yoshimi and other software synthesisers, a PyGame example with piano and drum samples, and an 8-bit synth written in pure Python.
Package Contents
- 1× Piano HAT (fully assembled)
Resources
The Piano HAT appears in the following collections:
