Stufin
Home Quick Cart Profile

KY-036 Metal Touch Sensor

Buy Now on Stufin

Operating Voltage

3.3V to 5V DC

Operating Current

20mA

Digital Output

Active Low (0V = Touch Detected, 3.3V = No Touch)

Touch Pin

Can be connected to any conductive metal surface

Sensitivity Adjustment

Onboard potentiometer

Response Time

10ms

Operating Temperature

-20C to 70C

Storage Temperature

-40C to 80C

Dimensions

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.

Pin Configuration

  • KY-036 Metal Touch Sensor Documentation
  • Pinout Explanation:
  • The KY-036 Metal Touch Sensor module has 3 pins, which are explained below:
  • Pin 1: VCC (Power Supply)
  • Function: Power supply pin for the sensor module
  • Description: Connect this pin to a positive voltage source (typically 3.3V or 5V) to power the sensor module.
  • Notes: Make sure to provide a stable voltage supply to ensure proper operation of the sensor.
  • Pin 2: GND (Ground)
  • Function: Ground pin for the sensor module
  • Description: Connect this pin to the ground of the circuit or the negative terminal of the power source.
  • Notes: A good ground connection is essential for the proper operation of the sensor.
  • Pin 3: OUT (Output)
  • Function: Digital output pin of the sensor module
  • Description: This pin provides a digital output signal (HIGH or LOW) indicating whether the sensor has detected a touch or not.
  • Notes:
  • + When the sensor detects a touch, the output pin goes LOW (0V).
  • + When the sensor does not detect a touch, the output pin goes HIGH (VCC level).
  • + The output pin can be connected to a microcontroller or other digital circuitry to read the touch detection state.
  • Connection Structure:
  • To connect the KY-036 Metal Touch Sensor module to a microcontroller or other circuitry, follow this structure:
  • VCC pin: Connect to a positive voltage source (e.g., 3.3V or 5V) through a breadboard or PCB.
  • GND pin: Connect to the ground of the circuit or the negative terminal of the power source through a breadboard or PCB.
  • OUT pin: Connect to a digital input pin of a microcontroller or other digital circuitry to read the touch detection state.
  • Example Connection Diagram:
  • Here's an example connection diagram for connecting the KY-036 Metal Touch Sensor module to an Arduino Uno microcontroller:
  • VCC pin: Connect to Arduino Uno's 5V pin.
  • GND pin: Connect to Arduino Uno's GND pin.
  • OUT pin: Connect to Arduino Uno's digital pin 2 (or any other available digital input pin).
  • Notes:
  • Make sure to use a suitable resistor or voltage regulator to step down the voltage to the required level (3.3V or 5V) if your power source is higher.
  • Use a breadboard or PCB to connect the sensor module to your circuit to prevent damage and ensure reliable connections.
  • Refer to the datasheet and technical documentation of your microcontroller or other circuitry for specific connection guidelines and pin assignments.

Code Examples

KY-036 Metal Touch Sensor Documentation
Overview
The 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 Specifications
Operating Voltage: 2.5V to 5.5V
 Operating Current: 1mA to 5mA
 Sensitivity: Adjustable
 Output Signal: Digital (TTL compatible)
 Response Time: 10ms to 100ms (adjustable)
Pinout
VCC: Power supply (2.5V to 5.5V)
 GND: Ground
 OUT: Digital output signal
Code Examples
### Example 1: Basic Touch Detection using Arduino
In 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 13
void 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 time
GPIO.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 Resources
Datasheet: [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)