Ks0031 keyestudio Capacitive Touch Sensor

From Keyestudio Wiki
Jump to navigation Jump to search

Introduction

Are you tired of clicking mechanic button? Well, to have a try of our capacitive touch sensor. It can be found that touch sensors are mostly used for electronic device. So upgrade your Arduino project with our new version touch sensor to make it cool! This little sensor can "feel" people and metal touch and feedback with a high/low voltage level. Even isolated by some clothes and papers, it can still feel the touch. Its sensetivity decreases as isolation layer gets thicker. For detail of usage, please check our wiki. To perfect user’s experience of our sensor module, we has made a further improvement.
thumb

Specification

  • Supply Voltage: 3.3V to 5V
  • Interface: Digital
  • Size: 30*20mm
  • Weight: 3g

Connection Diagram


thumb

Sample Code

int ledPin = 13;                // Connect LED on pin 13, or use the onboard one
int KEY = 2;                 // Connect Touch sensor on Digital Pin 2
 
void setup(){
  pinMode(ledPin, OUTPUT);      // Set ledPin to output mode
  pinMode(KEY, INPUT);       //Set touch sensor pin to input mode
}
 
void loop(){
   if(digitalRead(KEY)==HIGH) {      //Read Touch sensor signal
        digitalWrite(ledPin, HIGH);   // if Touch sensor is HIGH, then turn on
     }
   else{
        digitalWrite(ledPin, LOW);    // if Touch sensor is LOW, then turn off the led
}

Resources

Video

http://www.keyestudio.com/wp/2016/05/ks0031-keyestudio-capacitive-touch-sensor/

PDF

https://drive.google.com/open?id=1IEYMxXBpD7jU1KyiP4AnSsh_o69iv0zK

Buy from

Official Website

http://www.keyestudio.com/keyestudio-capacitive-touch-sensor-for-arduino.html

Amazon Store

https://www.amazon.com/Keyestudio-Capacitive-Sensor-Arduino-raspberry/dp/B0172SKHDC/ref=sr_1_1?srs=13497667011&ie=UTF8&qid=1479953205&sr=8-1&keywords=keyestudio+Capacitive+Touch+Sensor+for+Arduino