







Pimoroni Piano HAT: touch keyboard for Raspberry Pi
10,58 € INCL. VAT
- 16 capacitive touch keys: 13 notes from C to C, octave up, octave down and instrument selection
- 16 white LEDs, two Microchip CAP1188 touch controllers over I2C, supplied fully assembled
- Python library and examples from Pimoroni, to play music or control a project
Business, school or public body? business account Education offers

Pimoroni Piano HAT: touch keyboard for Raspberry Pi
10,58 € INCL. VAT
- Description
- Additional information
Description
The Pimoroni Piano HAT (ref. PIM095) is a small touch keyboard for Raspberry Pi. It has 16 capacitive keys: 13 form a piano octave, from C to C, and the other three are used to go up or down an octave and to change instrument. Each key has its own white LED, which can be lit from a program.
As the back of the board states, it is inspired by Zachary Igielman's PiPiano. You can use it to play music in Python, to control software synthesizers with the MIDI examples provided, or as a simple row of 16 touch buttons for another project. The official Raspberry Pi magazine describes it as compatible with any Raspberry Pi with a 40 pin header, supplied fully assembled.
Highlights
- 16 capacitive keys: 13 notes, octave up, octave down and instrument selection.
- 16 white LEDs: to show the note played or guide you while learning a tune.
- Ready to plug in: supplied assembled, it sits on the 40 pin GPIO header.
- Python library: key detection and LED control, with MIDI and PyGame examples.
- HAT form factor: with an ID EEPROM, according to pinout.xyz.
Technical specifications
| Features | Value |
|---|---|
| Manufacturer reference | PIM095 |
| Keys | 16 capacitive touch keys: 13 notes (C to C), octave up, octave down, instrument |
| LED | 16 white LEDs |
| Touch controllers | 2 Microchip CAP1188 |
| Interface | I2C, addresses 0x28 and 0x2b, plus alert and reset pins |
| Power supply | 5 V and 3.3 V, through the GPIO header |
| Format | HAT with ID EEPROM |
| Compatibility | Raspberry Pi with a 40 pin header |
| Assembly | Supplied assembled, no soldering |
| Software | Python library (pianohat) and examples from Pimoroni |
What you need to know
The Piano HAT does not make any sound itself: the Raspberry Pi plays the notes on its audio output or on a software synthesizer, or sends them over MIDI. The I2C bus must be enabled in the Raspberry Pi configuration. Pimoroni has archived the code repository for this HAT, last modified in 2023: the library is still available, but it is no longer being developed. On a Raspberry Pi 5 or a recent operating system, expect to adapt the code a little.
Box contents
- 1 Pimoroni Piano HAT, assembled
The Raspberry Pi and the case shown in a photo are not included.
See also:
Frequently asked questions
Does the Piano HAT make sound?
No, it has no speaker. The Raspberry Pi plays the sounds on its audio output or on a software synthesizer, or sends them over MIDI, with the examples provided by Pimoroni.
Which Raspberry Pi models does it work with?
The official Raspberry Pi magazine says it is compatible with any Raspberry Pi with a 40 pin header. As its library is no longer updated, a Raspberry Pi 5 or a recent operating system may require some code changes.
Is soldering required?
No, the Piano HAT is supplied assembled and sits directly on the 40 pin GPIO header.
Can it be used for anything other than music?
Yes. Its 16 touch keys and 16 LEDs are controlled in Python: they can serve as buttons for any project.
Additional information
| Product type | Touch keyboard HAT |
|---|---|
| Keys | 16 capacitive keys, including 13 notes |
| LED | 16 white LEDs |
| Interface | I2C, two CAP1188 at addresses 0x28 and 0x2b |
| Compatibility | Raspberry Pi with a 40 pin header |
| Manufacturer reference | PIM095 |









