Ks0031 keyestudio Capacitive Touch Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<br>
==Introduction==
==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!
Are you tired of clicking mechanic button? Well, try our capacitive touch sensor. You can find touch sensors mostly used on electronic device. So upgrade your Arduino project with our new version touch sensor and make it cool!!<br>
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 further improvement.
This little sensor can "feel" people and metal touch and feedback a high/low voltage level. Even isolated by some cloth and paper, it can still feel the touch. Its sensitivity decreases as isolation layer gets thicker.  
<br>[[File:311.png|500px|frameless|thumb]]<br>
<br>[[File:KS0031 (4).jpg|500px|frameless|thumb]]<br>


<br>
==Specification==
==Specification==
*Supply Voltage: 3.3V to 5V
*Supply Voltage: 3.3V to 5V
*Interface: Digital
*Interface: Digital
*Size: 30*20mm
*Weight: 3g


<br>
==Connection Diagram ==
==Connection Diagram ==
<br>[[File:Ks0031-1.png|700px|frameless|thumb]]<br>


<br>[[File:322.png|500px|frameless|thumb]]<br>  
<br>


==Sample Code ==
==Sample Code ==
<pre>
<pre>
int ledPin = 13;                // Connect LED on pin 13, or use the onboard one
int ledPin = 13;               // Connect LED on pin 13, or use the onboard one
int KEY = 2;                 // Connect Touch sensor on Digital Pin 2
int KEY = 2;                 // Connect Touch sensor on Digital Pin 2
 
void setup(){
void setup(){
  pinMode(ledPin, OUTPUT);      // Set ledPin to output mode
  pinMode(ledPin, OUTPUT);     // Set ledPin to output mode
  pinMode(KEY, INPUT);       //Set touch sensor pin to input mode
  pinMode(KEY, INPUT);       //Set touch sensor pin to input mode
}
}
 
void loop(){
void loop(){
   if(digitalRead(KEY)==HIGH) {      //Read Touch sensor signal
  if(digitalRead(KEY)==HIGH) {     //Read Touch sensor signal
        digitalWrite(ledPin, HIGH);   // if Touch sensor is HIGH, then turn on
        digitalWrite(ledPin, HIGH);   // if Touch sensor is HIGH, then turn on
     }
    }
   else{
  else{
        digitalWrite(ledPin, LOW);    // if Touch sensor is LOW, then turn off the led
        digitalWrite(ledPin, LOW);   // if Touch sensor is LOW, then turn off the led
}</pre>
    }
}
</pre>
 
<br>
== Result ==
Done wiring and powered up, upload well the code, then touch the sensor with your finger,  both D2 led on the sensor and D13 indicator on UNO board are on. Otherwise, those two indicators are turned off.
<br>[[File:Ks0031-2.png|800px|frameless|thumb]]<br>
 
 
<br>


==Resources ==
==Resources ==


'''Video'''
* '''Video'''<br>
http://video.keyestudio.com/ks0031/


http://www.keyestudio.com/wp/2016/05/ks0031-keyestudio-capacitive-touch-sensor/
* '''PDF and Code'''<br>
https://fs.keyestudio.com/KS0031


'''Datasheet'''


http://www.keyestudio.com/files/index/download/id/1463650164/
<br>


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


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
*[https://www.keyestudio.com/free-shipping-keyestudio-capacitive-touch-sensor-module-for-arduino-p0162.html    '''Official Website''']
 
*[https://www.aliexpress.com/store/product/Free-shipping-Capacitive-digital-touch-sensor/1452162_32222202754.html?spm=2114.12010615.8148356.1.20f11b6dia0AZU  '''Shop on aliexpress''']
 
 
 
[[Category: Sensor]]
[[Category: Sensor]]

Latest revision as of 14:50, 7 January 2021


Introduction

Are you tired of clicking mechanic button? Well, try our capacitive touch sensor. You can find touch sensors mostly used on electronic device. So upgrade your Arduino project with our new version touch sensor and make it cool!!
This little sensor can "feel" people and metal touch and feedback a high/low voltage level. Even isolated by some cloth and paper, it can still feel the touch. Its sensitivity decreases as isolation layer gets thicker.
thumb


Specification

  • Supply Voltage: 3.3V to 5V
  • Interface: Digital


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
     }
}


Result

Done wiring and powered up, upload well the code, then touch the sensor with your finger, both D2 led on the sensor and D13 indicator on UNO board are on. Otherwise, those two indicators are turned off.
thumb



Resources

  • Video

http://video.keyestudio.com/ks0031/

  • PDF and Code

https://fs.keyestudio.com/KS0031



Buy from