

Arduino UNO R3 Original

Jumper Wires 30cm M/F Pack of 10f 10

Pressure-Sensitive Conductive Sheet...

Low power consumption Capacitive Touch Sensor with four holes being easy to operate and install.
If you have any questions on this product please feel free to contact us.
*Disclaimer: The images are merely illustrative.
Operating Voltage: DC 2.0V ~ 5.5V;
VOH: VCC 0,8V;
VOL: VCC 0.3V;
Heatskin Current: 8mA @ VCC = 3V, VOL = 0.6V;
Source Current: -4mA @ VCC = 3V, VOH = 2.4V;
Response time: 220ms (in low power mode) and 60ms (in fast speed mode);
Size: 24 x 24 x 7.2mm
// 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);
}
Related products
Low power consumption Capacitive Touch Sensor with four holes being easy to operate and install.