The TTP223 touch switch is a tiny capacitive touch sensor module that replaces mechanical buttons with a simple finger tap. At under ₹30, it is one of the easiest ways to add touch input to your Arduino or ESP32 projects.
What Is the TTP223?
The TTP223 is a one-key capacitive touch detection IC made by Tontek Design Technology. The breakout module includes the IC, a touch pad, and supporting components on a small PCB. It operates on 2.0 V to 5.5 V, making it compatible with both 3.3 V and 5 V systems.
When you touch the pad, the module outputs a digital HIGH (or LOW, depending on configuration). No physical pressure is needed — just the proximity of your finger changes the capacitance on the pad, and the IC detects this change.
How Capacitive Touch Works
The touch pad forms one plate of a capacitor. Your finger, connected to earth ground through your body, forms the other plate. When your finger approaches the pad, the total capacitance increases. The TTP223 constantly measures this capacitance and triggers when it exceeds a threshold.
This is why capacitive touch works through thin non-conductive materials like acrylic, glass, or plastic — making it possible to create sealed, waterproof control panels.
TTP223 Operating Modes
The TTP223 module has two solder jumpers (A and B) that configure its behaviour:
| Jumper A | Jumper B | Mode | Output |
|---|---|---|---|
| Open | Open | Momentary | Active HIGH |
| Open | Bridged | Momentary | Active LOW |
| Bridged | Open | Toggle (latch) | Active HIGH |
| Bridged | Bridged | Toggle (latch) | Active LOW |
The default (both open) is momentary with active HIGH output — output goes HIGH when touched and returns to LOW when released.
Wiring to Arduino
The TTP223 module has just 3 pins:
- VCC → 3.3 V or 5 V
- GND → GND
- SIG (I/O) → Any digital input pin
const int touchPin = 2;
const int ledPin = 13;
void setup() {
pinMode(touchPin, INPUT);
pinMode(ledPin, OUTPUT);
}
void loop() {
if (digitalRead(touchPin) == HIGH) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
}
Creative Projects with TTP223
- Touch-activated lamp — Use the toggle mode with a relay to switch a desk lamp on and off by tapping a wooden surface.
- Secret door trigger — Hide the sensor behind a wall panel or bookshelf. Touch the right spot to trigger a servo-controlled latch.
- Musical touch pads — Array of TTP223 modules, each triggering a different tone through a piezo buzzer.
- Proximity hand sanitiser dispenser — Extend the touch pad with a wire antenna for contactless detection.
- Smart mirror buttons — Mount TTP223 modules behind a mirror glass for invisible controls.
Recommended Products from Zbotic
Digital Sensor TTP223B Module Capacitive Touch Switch
Capacitive Touch Switch HTTM Touch Button Sensor Module – White
Capacitive Touch Switch HTTM Touch Button Sensor Module – RED
5V 1 Channel Relay Module
Frequently Asked Questions
Can the TTP223 work through glass or acrylic?
Yes, it can detect touch through non-conductive materials up to about 5 mm thick. For thicker materials, you may need to increase the sensitivity by adding a larger copper pad connected to the sensor.
Does the TTP223 work with gloves?
Thin gloves may work, but thick winter gloves will not trigger the sensor. The sensor needs the capacitive coupling of your body, which is blocked by thick insulating material.
How many TTP223 modules can I connect to one Arduino?
As many as you have digital input pins — typically 14 on an Arduino Uno. Each module needs just one data pin plus shared VCC and GND.
Is the TTP223 affected by humidity?
Extreme humidity or water droplets on the pad can cause false triggers. For outdoor installations, coat the PCB with conformal spray and use the module in toggle mode to reduce sensitivity to transient moisture.
Add Touch to Your Projects
Capacitive touch modules starting at ₹25 on Zbotic.in!
Add comment