

The XKC Y26 is a capacitive touch sensor module manufactured by Arduino. It is designed to detect touch input through capacitive sensing technology. This module is highly versatile and can be used in a wide range of applications, including touch switches, user interfaces, and interactive projects. Its compact design and ease of integration make it a popular choice for hobbyists and professionals alike.








The XKC Y26 module is designed to operate efficiently in low-power environments while providing reliable touch detection. Below are its key technical specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 2.7V to 6V |
| Operating Current | < 10 µA (standby mode) |
| Response Time | < 60 ms |
| Output Type | Digital (High/Low) |
| Touch Sensitivity | Adjustable via onboard potentiometer |
| Operating Temperature | -20°C to 70°C |
| Dimensions | 25mm x 20mm x 5mm |
The XKC Y26 module has a simple pinout, making it easy to integrate into various circuits. Below is the pin configuration:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (2.7V to 6V) |
| 2 | GND | Ground connection |
| 3 | OUT | Digital output pin (High when touch is detected) |
The XKC Y26 is straightforward to use in a circuit. Follow the steps below to integrate it into your project:
VCC pin to a 3.3V or 5V power source, depending on your system's voltage.GND pin to the ground of your circuit.OUT pin to a digital input pin of your microcontroller or directly to an LED for testing purposes.Below is an example of how to use the XKC Y26 with an Arduino UNO to detect touch input and control an LED:
// Define the pin connected to the XKC Y26 output
const int touchPin = 2; // Digital pin 2
const int ledPin = 13; // Built-in LED pin
void setup() {
pinMode(touchPin, INPUT); // Set touchPin as input
pinMode(ledPin, OUTPUT); // Set ledPin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int touchState = digitalRead(touchPin); // Read the touch sensor state
if (touchState == HIGH) {
// If touch is detected, turn on the LED
digitalWrite(ledPin, HIGH);
Serial.println("Touch detected!");
} else {
// If no touch is detected, turn off the LED
digitalWrite(ledPin, LOW);
Serial.println("No touch detected.");
}
delay(100); // Small delay for stability
}
VCC and GND to reduce power supply noise.No Output Detected:
VCC and GND connections).False Touch Detection:
Intermittent Operation:
Q: Can the XKC Y26 detect touch through thick materials?
A: The module can detect touch through non-conductive materials like glass or plastic, but the thickness should not exceed 3-5mm for reliable detection. Adjust the sensitivity as needed.
Q: Is the XKC Y26 compatible with 3.3V systems?
A: Yes, the module operates within a voltage range of 2.7V to 6V, making it compatible with both 3.3V and 5V systems.
Q: Can I use multiple XKC Y26 modules in the same project?
A: Yes, you can use multiple modules, but ensure proper grounding and avoid placing them too close to each other to prevent interference.
Q: How do I clean the module if it gets dirty?
A: Use a soft, dry cloth to clean the module. Avoid using liquids or abrasive materials.
By following this documentation, you can effectively integrate and troubleshoot the XKC Y26 capacitive touch sensor module in your projects.