TTP229 16-key capacitive touch keypad with ESP32
Supply 3.3-5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| VCC | Power | 3V3 | |
| GND | Ground | GND | |
| SCL | Input (the ESP32 drives it) | D25 | Clock from the ESP32. Not I2C: a simple 2-wire serial |
| SDO | Output (the part drives it) | D26 | Key data out to an ESP32 input |
| OUT1 | Not wired to the ESP32 | — | Direct output for key 1 in 8-key mode, not needed with SCL/SDO |
| OUT2 | Not wired to the ESP32 | — | |
| OUT3 | Not wired to the ESP32 | — | |
| OUT4 | Not wired to the ESP32 | — | |
| OUT5 | Not wired to the ESP32 | — | |
| OUT6 | Not wired to the ESP32 | — | |
| OUT7 | Not wired to the ESP32 | — | |
| OUT8 | Not wired to the ESP32 | — |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- Tontek TTP229-BSF datasheet, 2-wire serial output (SCL, SDO); 8 or 16 keys by option pin (TP2 on the module); 2.4 to 5.5 V
- Common TTP229 module, Header order varies: check the silkscreen
Try it in 3D in BoardPilot
Related parts
1x4 membrane keypad (4 keys)433 MHz receiver (XY-MK-5V)4x3 membrane keypad (12 keys)4x4 membrane keypad5-way navigation button module74HC165 input shift register
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.