Details
It's a favourite for soft interfaces: embroidered keypads, touch-sensitive sleeves, musical garments, and interactive textiles. You can even detect touch through a thin layer of fabric, so the conductive parts can hide underneath. The chip handles filtering and calibration for you, so readings stay steady as the garment moves.
Specifications
- Chip: NXP MPR121
- Inputs: 12 capacitive touch / proximity electrodes (0–11)
- Interface: I2C — default address 0x5A (0x5B–0x5D selectable with ADD)
- Supply voltage: 3.3V (check the silkscreen on your board)
- Interrupt: IRQ pin signals when a touch changes
- Libraries: Adafruit_MPR121 (Arduino, ESP32, CircuitPython)
Pin Definitions
- 3.3V / VCC — Power in
- GND — Ground
- SCL — I2C clock
- SDA — I2C data
- IRQ — Interrupt output, goes LOW when a touch changes
- ADD — I2C address select
- 0–11 — Touch electrodes — connect to conductive fabric, thread, paint or foil
Project Ideas
A 12-note musical jacket, an embroidered keypad on a sleeve, a touch-controlled handbag, a soft storybook with touch-triggered lights and sounds, or a stroke-sensitive textile artwork.
Good to know
Keep electrode wires or thread traces short and apart from each other so they don't pick up each other's touches. After changing electrodes, reset or re-initialise the board so it recalibrates.
Pair It With
Make your electrodes from Durable Oxford Conductive Fabric or Silver Woven Stretch Conductive Fabric and connect them with stainless steel conductive thread. Add feedback with a coin vibration motor or single WS2812B pixels. For just a few buttons, the 4-Bit Capacitive Touch Sensor is a simpler option.
In the box
- MPR121 12-key capacitive touch board × 1
- Header pins × 1 set



