Stufin
Home Quick Cart Profile

XD-621 Induction Touch Switch

Buy Now on Stufin

Component Name

XD-621 Induction Touch Switch

Overview

The XD-621 Induction Touch Switch is a state-of-the-art, non-invasive, and highly sensitive human-machine interface (HMI) component designed for various industrial and consumer applications. This induction-based touch switch offers high reliability, durability, and precision, making it an ideal choice for modern smart devices and IoT systems.

Functionality

The XD-621 Induction Touch Switch operates on the principle of electromagnetic induction, where it detects changes in the electromagnetic field caused by a user's proximity or touch. When a user approaches or touches the switch, the device detects the disturbance in the magnetic field and triggers a switching action. This action can be used to control various loads, such as LEDs, relays, or microcontrollers.

Key Features

  • High Sensitivity: The XD-621 Induction Touch Switch offers high sensitivity and accuracy, allowing it to detect even slight changes in the electromagnetic field.
  • Non-Invasive: The switch does not require any physical contact, making it convenient for use in applications where hygiene or aesthetics are a concern.
  • Water and Dust Resistant: The XD-621 is designed to operate in harsh environments, with a rating of IP67, ensuring protection against water and dust ingress.
  • Low Power Consumption: The switch operates with low power consumption, making it suitable for battery-powered devices and reducing overall system power requirements.
  • Adjustable Sensitivity: The sensitivity of the switch can be adjusted through an external resistor, allowing for fine-tuning to accommodate specific application requirements.
  • Multi-Functionality: The XD-621 can be used as a simple on/off switch or as a more complex gesture-recognition system, allowing for advanced HMI implementation.
  • Compact Design: The switch has a compact design, making it easy to integrate into a wide range of applications, from small consumer electronics to industrial control systems.
  • Operating Frequency: The XD-621 operates at a frequency of 125 kHz, ensuring reliable and accurate detection.
  • Output Signal: The switch provides a digital output signal, which can be easily interfaced with microcontrollers, PLCs, or other digital systems.
  • RoHS Compliant: The XD-621 is RoHS compliant, ensuring that it meets the EU's Restriction of Hazardous Substances Directive.

Technical Specifications

| Parameter | Value |

| --- | --- |

| Operating Frequency | 125 kHz |

| Sensitivity | Adjustable (5-50 mm) |

| Operating Voltage | 3.3 V to 5.5 V |

| Power Consumption | < 10 mA |

| Output Signal | Digital (TTL) |

| Response Time | < 10 ms |

| Temperature Range | -20C to 70C |

| Humidity Range | 20% to 80% RH |

| Dimensions | 12 mm x 12 mm x 2 mm |

Applications

The XD-621 Induction Touch Switch is suitable for a wide range of applications, including

Smart home devices

Industrial control systems

Medical devices

Consumer electronics

IoT devices

Automotive systems

Advantages

High sensitivity and accuracy

Non-invasive and water/dust resistant

Low power consumption and compact design

Adjustable sensitivity and multi-functionality

RoHS compliant and suitable for various applications

Pin Configuration

  • XD-621 Induction Touch Switch Documentation
  • Pin Description:
  • The XD-621 Induction Touch Switch has 6 pins, each with a specific function. Here is a detailed description of each pin:
  • 1. VCC (Pin 1)
  • Function: Power Supply
  • Description: This pin is used to connect the power supply to the switch. Typically, a 5V DC power source is recommended.
  • Connection: Connect to a 5V power source (e.g., a battery or a power supply module).
  • 2. GND (Pin 2)
  • Function: Ground
  • Description: This pin is used to connect the ground of the power supply to the switch.
  • Connection: Connect to the ground of the power supply (e.g., a battery or a power supply module).
  • 3. OUT (Pin 3)
  • Function: Output
  • Description: This pin is used to connect the output signal of the switch to a microcontroller or other devices.
  • Connection: Connect to a digital input pin of a microcontroller or other devices (e.g., a relay module).
  • 4. IN (Pin 4)
  • Function: Input
  • Description: This pin is used to connect an external trigger signal to the switch.
  • Connection: Connect to a digital output pin of a microcontroller or other devices (e.g., a button or a sensor).
  • 5. S (Pin 5)
  • Function: Sense
  • Description: This pin is used to connect a sensor or an electrode to detect touch signals.
  • Connection: Connect to a touch-sensitive electrode or a sensor (e.g., a copper plate or a capacitive sensor).
  • 6. R (Pin 6)
  • Function: Reset
  • Description: This pin is used to reset the switch to its default state.
  • Connection: Connect to a digital output pin of a microcontroller or other devices (e.g., a button or a reset switch).
  • Connection Structure:
  • Here is a suggested connection structure for the XD-621 Induction Touch Switch:
  • Connect VCC (Pin 1) to a 5V power source.
  • Connect GND (Pin 2) to the ground of the power supply.
  • Connect OUT (Pin 3) to a digital input pin of a microcontroller or other devices.
  • Connect IN (Pin 4) to a digital output pin of a microcontroller or other devices (optional).
  • Connect S (Pin 5) to a touch-sensitive electrode or a sensor.
  • Connect R (Pin 6) to a digital output pin of a microcontroller or other devices (optional).
  • Note:
  • Make sure to use proper wiring and insulation to prevent electrical noise and interference.
  • Use a suitable power supply and decoupling capacitors to ensure stable operation.
  • Refer to the datasheet and application notes for specific use cases and implementation guidelines.

Code Examples

XD-621 Induction Touch Switch Documentation
Overview
The XD-621 Induction Touch Switch is a capacitive touch sensor module designed for human-machine interface applications. It features high sensitivity, low power consumption, and resistance to electromagnetic interference (EMI). This module is ideal for use in IoT projects, home automation systems, and industrial control panels.
Pinout
| Pin | Function |
| --- | --- |
| VCC | Power supply (3.3V or 5V) |
| GND | Ground |
| OUT | Digital output (active low) |
| EN | Enable pin (active high) |
Operating Principle
The XD-621 Induction Touch Switch uses capacitive sensing technology to detect changes in capacitance when a user's finger approaches the sensor surface. The module's onboard microcontroller processes the sensor data and outputs a digital signal indicating the touch state.
Code Examples
### Example 1: Basic Touch Detection with Arduino
In this example, we'll use the XD-621 Induction Touch Switch with an Arduino board to control an LED.
```c++
const int touchPin = 2;  // Connect OUT pin to digital pin 2
const int ledPin = 13;  // Connect an LED to digital pin 13
void setup() {
  pinMode(touchPin, INPUT);
  pinMode(ledPin, OUTPUT);
}
void loop() {
  if (digitalRead(touchPin) == LOW) {
    digitalWrite(ledPin, HIGH);  // Turn on the LED when the touch sensor is triggered
  } else {
    digitalWrite(ledPin, LOW);  // Turn off the LED when the touch sensor is not triggered
  }
  delay(50);
}
```
### Example 2: Debounced Touch Detection with ESP32
In this example, we'll use the XD-621 Induction Touch Switch with an ESP32 board to control a relay module.
```cpp
const int touchPin = 32;  // Connect OUT pin to digital pin 32
const int relayPin = 15;  // Connect a relay module to digital pin 15
bool touchState = false;
bool previousState = false;
void setup() {
  pinMode(touchPin, INPUT);
  pinMode(relayPin, OUTPUT);
}
void loop() {
  touchState = digitalRead(touchPin) == LOW;
  if (touchState && !previousState) {
    digitalWrite(relayPin, !digitalRead(relayPin));  // Toggle the relay state on touch
  }
  previousState = touchState;
  delay(50);
}
```
### Example 3: Threshold-Based Touch Detection with Raspberry Pi (Python)
In this example, we'll use the XD-621 Induction Touch Switch with a Raspberry Pi to control a GUI button.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
touch_pin = 17  # Connect OUT pin to GPIO 17
button_pin = 23  # Connect a GUI button to GPIO 23
GPIO.setup(touch_pin, GPIO.IN)
GPIO.setup(button_pin, GPIO.OUT)
while True:
    if GPIO.input(touch_pin) == GPIO.LOW:
        GPIO.output(button_pin, GPIO.HIGH)  # Press the GUI button when the touch sensor is triggered
        time.sleep(0.1)
        GPIO.output(button_pin, GPIO.LOW)
    time.sleep(0.05)
```
Note: Make sure to adjust the pin connections and modify the code according to your specific hardware setup and requirements.
Troubleshooting Tips
Ensure that the XD-621 Induction Touch Switch is properly connected to the microcontroller or single-board computer.
 Adjust the sensitivity of the touch sensor by changing the capacitor values or adding a pull-up resistor to the OUT pin.
 Use a debouncing technique to filter out noise and false triggerings.
 Consult the datasheet for specific operating conditions, voltage levels, and current limitations.