3.3V to 5V DC
3.3V to 5V DC
20mA
Active Low (0V = Touch Detected, 3.3V = No Touch)
Can be connected to any conductive metal surface
Onboard potentiometer
10ms
-20C to 70C
-40C to 80C
21mm x 15mm x 6mm
Applications
| The KY-036 Metal Touch Sensor is suitable for a wide range of IoT applications, including |
Smart Home Automation
Robotics and Mechatronics
Wearable Devices
Industrial Automation
Security Systems
Interactive Art Installations
Conclusion
The KY-036 Metal Touch Sensor is a reliable and versatile component that enables the creation of innovative touch-based interfaces for various IoT applications. Its compact design, low power consumption, and adjustable sensitivity make it an attractive choice for developers and hobbyists alike.
KY-036 Metal Touch Sensor DocumentationOverviewThe KY-036 Metal Touch Sensor is a capacitive touch sensor module that detects changes in capacitance when a metal object approaches the sensor. It provides a digital output signal when a touch is detected, making it easy to integrate into various IoT projects.Technical SpecificationsOperating Voltage: 2.5V to 5.5V
Operating Current: 1mA to 5mA
Sensitivity: Adjustable
Output Signal: Digital (TTL compatible)
Response Time: 10ms to 100ms (adjustable)PinoutVCC: Power supply (2.5V to 5.5V)
GND: Ground
OUT: Digital output signalCode Examples### Example 1: Basic Touch Detection using ArduinoIn this example, we will use the KY-036 Metal Touch Sensor to detect touches and turn on an LED when a metal object is detected.```arduino
const int touchPin = 2; // Connect OUT pin of KY-036 to digital pin 2
const int ledPin = 13; // Connect LED to digital pin 13void setup() {
pinMode(touchPin, INPUT);
pinMode(ledPin, OUTPUT);
}void loop() {
int touchState = digitalRead(touchPin);
if (touchState == HIGH) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
delay(50);
}
```### Example 2: Touch-Sensitive Button using Raspberry Pi (Python)In this example, we will use the KY-036 Metal Touch Sensor to create a touch-sensitive button that prints a message when touched.```python
import RPi.GPIO as GPIO
import timeGPIO.setmode(GPIO.BCM)
touch_pin = 17 # Connect OUT pin of KY-036 to GPIO 17
GPIO.setup(touch_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)while True:
if GPIO.input(touch_pin) == 0:
print("Touch detected!")
time.sleep(0.5)
```Note: In both examples, ensure that the KY-036 Metal Touch Sensor is properly connected to the microcontroller or single-board computer, and adjust the sensitivity of the sensor according to your specific requirements.### Additional ResourcesDatasheet: [KY-036 Metal Touch Sensor Datasheet](https://example.com/ky-036-datasheet.pdf)
Tutorial: [KY-036 Metal Touch Sensor Tutorial](https://example.com/ky-036-tutorial)