Touch Sensor Module TTP223B

: SEN19010
€2.85

Low power consumption Capacitive Touch Sensor with four holes being easy to operate and install.

Quantity

If you have any questions on this product please feel free to contact us.

*Disclaimer: The images are merely illustrative.

Specifications

  1. Operating Voltage: DC 2.0V ~ 5.5V;

  2. VOH: VCC 0,8V;

  3. VOL: VCC 0.3V;

  4. Heatskin Current: 8mA @ VCC = 3V, VOL = 0.6V;

  5. Source Current: -4mA @ VCC = 3V, VOH = 2.4V;

  6. Response time: 220ms (in low power mode) and 60ms (in fast speed mode);

  7. Size: 24 x 24 x 7.2mm

 

Sample Code:

// Capacitive Touch Sensor Tutorial

// When Sig Output is high, touch sensor is being pressed
#define ctsPin 2 // Pin for capactitive touch sensor

int ledPin = 13; // pin for the LED

void setup() {
  Serial.begin(9600);
  pinMode(ledPin, OUTPUT); 
  pinMode(ctsPin, INPUT);
}

void loop() {
  int ctsValue = digitalRead(ctsPin);
  if (ctsValue == HIGH){
    digitalWrite(ledPin, HIGH);
    Serial.println("TOUCHED");
  }
  else{
    digitalWrite(ledPin,LOW);
    Serial.println("not touched");
  }
  delay(500);

}

SEN19010

Related products