DFRobot_Capacitive_Touch_Sensor_SKU_DFR0030-DFRobot

Introduction

Are you tired of clicking mechanical button? Try our capacitive touch sensor. Right now we can find touch sensor on most electronic device. So uprade 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 still can feel a touch. However, the sensetivity will decrease as isolation becomes thicker.

For better understanding of our user's experience of our sensor module, we made following improvement. We can now "feel" our care for customers.

Improvement List

Specification

Tutorial

Connection Diagram

connection diagram

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

After the uploade , if you use finger or metal object touch the metal surface of the transducer , the red LED lights on the UNO will light up.

Trouble shooting

More question and cool idea, visit DFRobot Forum

More Documents

Version History