DFRobot_Capacitive_Touch_Sensor_SKU_DFR0030
Are you tired with clicking mechanic 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 the touch. And the sensetivity well decrease as isolation get thick. For detail of usage, please check our wiki. To exetreme user experience of our sensor module, we made following improvement. We can feel our care for customers.
- Wide voltage range from 3.3V to 5V
- Standard assembling structure (two 3mm holes with multiple of 5cm as interval)
- Icons to simplely illustrate sensor function
- High quality connector
- Immersion gold surface
- Supply Voltage: 3.3V to 5V
- Interface: Digital
- Size:22x30mm
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
}
}
After the uploader , if use finger or metal object touch the metal surface of the transducer , the red LED lights on the UNO will light.
More question and cool idea, visit DFRobot Forum
Version History
click to buy on dfrobot store category: Product Manual category: DFR Series category: Sensors category:source category:Diagram