شحن مجاني للأوردرات فوق
1000 ج
رمضان كريم
Single-Key Touch Detection with Digital Output for Arduino and DIY Projects
The TTP223 is a capacitive touch sensor module that detects human touch through a small metal pad. This low-power module provides a digital output signal when touched and is commonly used in touch-controlled projects.

Sensitive human touch recognition
1.5-5.5V operation with low current consumption
Toggle or momentary output modes
Onboard sensitivity capacitor
| Operating Voltage | 1.5V – 5.5V DC |
|---|---|
| Current Consumption | 2.5μA (standby), 8μA (active) |
| Response Time | 60ms (typical) |
| Output Type | Digital (HIGH/LOW) |
| Output Mode | Toggle or momentary (jumper selectable) |
| Operating Temperature | -20°C to +70°C |
| PCB Dimensions | 15mm × 11mm |
| Pin Label | Function | Connection |
|---|---|---|
| VCC | Power Supply (1.5-5.5V) | 3.3V/5V |
| GND | Ground | GND |
| OUT | Digital Output | Digital Pin |
| A | Mode Selection | Jumper to GND/VCC |

// Basic Digital Connection:
// VCC → 5V
// GND → GND
// OUT → D2 (or any digital pin)
void setup() {
pinMode(2, INPUT);
Serial.begin(9600);
}
void loop() {
if(digitalRead(2) == HIGH) {
Serial.println("Touch detected!");
}
}

const int relayPin = 3;
const int touchPin = 2;
bool relayState = false;
void setup() {
pinMode(relayPin, OUTPUT);
pinMode(touchPin, INPUT);
}
void loop() {
if(digitalRead(touchPin) {
relayState = !relayState;
digitalWrite(relayPin, relayState);
delay(200); // Debounce
}
}
void loop() {
if(digitalRead(2)) {
Keyboard.press('A');
delay(50);
Keyboard.releaseAll();
}
}
const int touchPins[] = {2,3,4,5};
const int numPins = 4;
void checkTouches() {
for(int i=0; i<numPins; i++) {
if(digitalRead(touchPins[i])) {
Serial.print("Touch detected on pin ");
Serial.println(i);
}
}
}
No account yet?
Create an Account
Recent Comments