

The TTP223 capacitive button, manufactured by Arduino, is a touch-sensitive switch that detects the presence of a finger or conductive object. This component enables user input without requiring mechanical movement, making it ideal for sleek, modern designs. It is widely used in touch-based interfaces, replacing traditional mechanical buttons for enhanced durability and aesthetic appeal.








The TTP223 capacitive button is a compact and efficient touch sensor module. Below are its key technical details:
The TTP223 module typically has 3 pins. Below is the pinout and description:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (2.0V to 5.5V DC). |
| 2 | GND | Ground connection. |
| 3 | OUT | Digital output pin. Outputs HIGH or LOW based on touch detection. |
VCC pin to a 3.3V or 5V power source and the GND pin to ground.OUT pin to a microcontroller input pin (e.g., Arduino UNO digital pin) or directly to a circuit that requires a digital signal.OUT pin goes HIGH when touched.OUT pin goes LOW when touched. This can be configured by soldering the appropriate jumper pads on the module.VCC pin to ensure stable operation.Below is an example of how to connect and use the TTP223 with an Arduino UNO:
VCC → 5V on ArduinoGND → GND on ArduinoOUT → Digital Pin 2 on Arduino// Define the pin connected to the TTP223 OUT pin
const int touchPin = 2;
const int ledPin = 13; // Built-in LED on Arduino UNO
void setup() {
pinMode(touchPin, INPUT); // Set touchPin as input
pinMode(ledPin, OUTPUT); // Set ledPin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int touchState = digitalRead(touchPin); // Read the state of the touch sensor
if (touchState == HIGH) {
// If touch is detected, turn on the LED
digitalWrite(ledPin, HIGH);
Serial.println("Touch detected!");
} else {
// If no touch is detected, turn off the LED
digitalWrite(ledPin, LOW);
}
delay(100); // Small delay to debounce the touch input
}
False Triggering or Unstable Output
VCC pin and ensure proper grounding.No Response to Touch
VCC and GND pins are properly connected. If needed, increase the sensitivity by replacing the onboard capacitor with a higher value.Output Always HIGH or LOW
Q: Can the TTP223 detect touch through non-conductive materials?
A: Yes, the TTP223 can detect touch through thin non-conductive materials like plastic or glass. However, the thickness and material type may affect sensitivity.
Q: How do I increase the touch sensitivity?
A: Increase the value of the onboard capacitor (default is 0.1µF). For example, replacing it with a 0.22µF capacitor will increase sensitivity.
Q: Can I use multiple TTP223 modules in the same circuit?
A: Yes, multiple modules can be used. Ensure each module has a stable power supply and is placed away from sources of interference.
Q: Is the TTP223 compatible with 3.3V systems?
A: Yes, the TTP223 operates within a voltage range of 2.0V to 5.5V, making it compatible with both 3.3V and 5V systems.