Touch Sensor Red PCB KY-036 Arduino Compatible
ARD2-3020
$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.
Wiltronics Online only delivers overseas in rare circumstances. If you can not source your desired product elsewhere, contact us at sales@wiltronics.com.au. Please note that minimum order quantities and processing fees apply, which will vary depending on delivery location.
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.