Touch Sensor Module

From LinkSprite Playgound
Revision as of 08:39, 24 February 2014 by Alvin (talk | contribs)
Jump to: navigation, search

Touch sensor.jpg


Sample

<syntaxhighlight lang="c"> int TouchPin=9; int ledPin=11; void setup() { pinMode(TouchPin, INPUT); pinMode(ledPin,OUTPUT); }

void loop() { int sensorValue = digitalRead(TouchPin); if(sensorValue==1) { digitalWrite(ledPin,HIGH); } else { digitalWrite(ledPin,LOW); } }


</syntaxhighlight>


Schematics

How to buy

Here to buy Touch Sensor Module on store