Skip to main content

Menu

Touch Sensor Red PCB KY-036 Arduino Compatible

ARD2-3020
Arduino Compatible ARD2 Touch Sensor Red PCB KY-036

$5.99

QTY Price
1 $5.99

Description

This Touch Sensor module includes an LED. Build a simple circuit that lights up the LED when it detects a touch input.

Test Code

int Led = 13; // define LED Interface
int buttonpin = 3; // define Metal Touch Sensor Interface
int val; // define numeric variables val

void setup() {
pinMode(Led, OUTPUT); // define LED as output interface
pinMode(buttonpin, INPUT); // define metal touch sensor output interface
}

void loop () {
val = digitalRead(buttonpin); // digital interface will be assigned a value of 3 to read val

// When the metal touch sensor detects a signal, LED flashes
if (val == HIGH) {
digitalWrite(Led, HIGH);
}
else {
digitalWrite(Led, LOW);
}
}

Features

  • Lights up an LED when a touch signal is detected

Specifications

Voltage

5VDC

Chip

LM383

Channel

Single

Output

Single

Material

PCB

Colour

Red

Weight

3g

Resources

You Might Also Like

All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.

We use cookies to ensure you have the best experience on our site. If you continue to use this site you consent to the use of these cookies. OK

Find out more in our Privacy Policy