16 Keys Capacitive Touch TTP229 I2C Module

Discontinued RobotDyn SKU: RD-TTP229-I2C
16 Keys Capacitive Touch TTP229 I2C Module

Overview

The RobotDyn TTP229 module is a 16-channel capacitive touch sensor based on the TTP229BSF IC. It detects touch on any conductive material connected to its 16 input pads — including custom PCB touchpads, metal objects, conductive ink prints, or even fruit (great for educational projects like MaKey MaKey-style demos).

The module communicates with microcontrollers via a 2-wire serial protocol (often called “I2C” though it’s not strictly I2C-compliant — it’s a custom SCL/SDO clock-and-data scheme).

Operating Modes

The module supports two modes, selected via the TP2 solder jumper:

8-Key Mode (TP2 open)

16-Key Mode (TP2 shorted)

Pinout

PinFunctionNotes
VCCPower supply2.4–5.5 V
GNDGround
SCLSerial clockI/O — pulse to read next bit
SDOSerial data outBit 1 = key pressed
TP1/TP2Mode jumpersTP2 short = 16-key mode
OUT1–OUT8Direct outputs (8-key mode only)Active HIGH

Reading 16 Keys (Arduino)

In 16-key mode, you read the keys by pulsing SCL 16 times and sampling SDO on each pulse:

#define SCL_PIN 2
#define SDO_PIN 3

uint16_t readTouch() {
  uint16_t data = 0;
  for (int i = 0; i < 16; i++) {
    digitalWrite(SCL_PIN, LOW);
    delayMicroseconds(2);
    digitalWrite(SCL_PIN, HIGH);
    delayMicroseconds(2);
    if (digitalRead(SDO_PIN) == LOW) {
      data |= (1 << i);   // active LOW on press
    }
  }
  return data;
}

void setup() {
  pinMode(SCL_PIN, OUTPUT);
  pinMode(SDO_PIN, INPUT);
  digitalWrite(SCL_PIN, HIGH);
  Serial.begin(9600);
}

void loop() {
  uint16_t keys = readTouch();
  if (keys) {
    Serial.print("Keys: 0x");
    Serial.println(keys, HEX);
  }
  delay(50);
}

For a more polished implementation use the TT_TouchKeypadTTP229 library.

Sensitivity Adjustment

The capacitor at C4 (typically 10 nF) sets sensitivity. Replace with:

For touchpads under glass or thick plastic, start with 4.7 nF.

Auto-Calibration

The TTP229 self-calibrates roughly every 4 seconds against the current baseline capacitance. This means:

Common Uses

Where to Buy in 2026

The TTP229 IC is still in production, and RobotDyn-compatible modules are widely cloned. Look for boards with the TTP229BSF marking (not the older TTP229B without “SF” — those are 8-key only).

Documentation